Website is downloading when typing the URL in browser

When there’s an update of the theme available, the site is not accessible via my browser. Instead it downloads a document named with the URL. Everything works fine after the update done.
Is there a plugin or a setting to change to avoid that ?
Thanks

Hey @patjoller,

I’m sorry but I’m currently not sure what the exact issue is based on your description. Would you mind providing more details and screenshots to give us an idea of what exactly is happening. You could also record a screencast using a service like https://www.useloom.com/

Update issues usually are caused by third party factors.

  1. If you’re using a caching plugin, clear all caches including browser cache then deactivate your caching plugin and other optimization plugins.

  2. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  3. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  4. If you’re using a child theme, please switch to the parent theme and remove custom CSS and Javascript codes.

  5. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.

  6. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Thanks.

Thanks. Will try the solutions mentioned.
Can’t do a screenshot now as the problem was solved by updating the plugins (looks like it’s with the cornerstone plugin that there’s a problem)
But when I entered the URL of my website on my browser it downloaded a file (document type) and I had a blank page on my browser.

Hi @patjoller,

What browser you’re using? It could be related to this https://gundersen.net/chrome-downloading-file-instead-of-displaying-page-solved/. The cornerstone or the theme has no capability to change of how the browser handles the response. Like changing it to octet-stream in which download is applicable. Example https://stackoverflow.com/questions/11175933/headercontent-type-application-octet-stream-cause-0-byte-files

This is also my first time seeing this issue as there are no other users having this, not even on my installations. Perhaps you could contact your hosting provider and get more information what’s really happening when it downloads it (like access logs)

Thanks!

I’m using Safari.
Apparently it’s not a problem with cornerstone, I have the problem again now and there’s only 4 plugins to update.
If someone wants to have a look and tell me if the problem is happening on your side too ?
www.bloomdesign.ch

Hi There,

Thanks for the URL and I can confirm the issue on my end.
One possible cause is that there is a problem with your server configuration that is giving the visiting browser the wrong mime type.

The correct mime type for html is: text/html The mime type that your server is sending is: application/x-httpd-php

You appear to be running Apache. As a result there are two possible files that could be causing this, either in .htaccess or in one of Apaches configuration files.

Try adding the text below to a .htaccess file in your directory, or look for a mention of application/x-httpd-php

AddType text/html .html

also you can try adding this

AddHandler application/x-httpd-php .php

If that doesn’t help please contact your hosting provider to help on this.

Thanks

Hi.
Thanks for the tip, I added the text/html in my .htaccess and it works.
Thanks

Glad to hear that. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.