Using PHP 5.6 ?Addon worked fine before
Now all I get is this:
However, you load the image url in another window works fine.
If you hover over the img in the inspecter, it shows too.
Always been on 5.6 and has never worked for me.
https://www.webgurubb.com/threads/how-to-large-theme-solarwind.5211/Do you have a sample URL?
Looks like your web server is kicking back an invalid HTTP Status Code.
header('Cache-Control: public, max-age=31536000');
header('Cache-Control: public, max-age=31536000', true, 200);
This seems to not fix the issue.Looks like your web server is kicking back an invalid HTTP Status Code.
Specifically, your server is serving up the image just fine, but instead of a "200 OK" response, it's giving a "404 Not Found" response. Which is confusing the browser... it doesn't try to embed the image since the server said it's not there and it just assumes the content being returned in the error page. But opening it directly shows the content, because the browser thinks you are viewing the error page.
Ultimately you probably need to talk to your server admin and see if you have a weird rule somewhere in your Apache config (or .htaccess files) that are forcing the 404 HTTP header. Maybe at the application level if you have something like an add-on that is changing the HTTP status header for some reason.
As a test, if you go to the DigitalPointImageProxy/ControllerPublic/Proxy.php file and find this:
and change it to this:PHP:header('Cache-Control: public, max-age=31536000');
PHP:header('Cache-Control: public, max-age=31536000', true, 200);
That should force an HTTP 200. It doesn't solve the problem of something weird setting the 404 somewhere in your config, but let me know if it fixes it for you. Might be worth it to add it to the source on my end to make less support issues for me.
Here's an example of an image that always returns 404:Do you have a sample image URL hat it happens with?
Oh oops, sorry. Updated previous post with the original for each.No, I mean the actual image URL that is being proxied.
// $extension = 'png';
Maybe something in your Apache config that sees it's a ".png" file, then looks in the file system for it, doesn't find the file (since it's not an actual file), then overrides the HTTP status code since ti couldn't find it.
You could probably test that by commenting out this line in the DigitalPointImageProxy/Route/Prefix/Proxy.php file:
PHP:// $extension = 'png';
If you want to actually fix the root of the problem and stop your web server from trying to be smarter than the application being run (and stop trying to validate the existence of files with certain extensions), you probably will need to talk to your server administrator.
What Apache modules are you running on that server?
root@ [~]# httpd -M
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
deflate_module (static)
log_config_module (static)
logio_module (static)
env_module (static)
expires_module (static)
headers_module (static)
unique_id_module (static)
setenvif_module (static)
version_module (static)
proxy_module (static)
proxy_connect_module (static)
proxy_ftp_module (static)
proxy_http_module (static)
proxy_scgi_module (static)
proxy_ajp_module (static)
proxy_balancer_module (static)
ssl_module (static)
mpm_itk_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
info_module (static)
suexec_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
passenger_module (shared)
disable_suexec_module (shared)
bwlimited_module (shared)
cloudflare_module (shared)
security2_module (shared)
Syntax OK
We use essential cookies to make this site work, and optional cookies to enhance your experience.