Skip to main content
37 votes
Accepted

Static Content is not loading after upgrade

The main issue was caused by the incorrect rewrites work ( as @Marius told ). There was no RewriteBase in my directory pub/static/ and Apache could not find the files because searched for them from ...
Siarhey Uchukhlebau's user avatar
11 votes

Getting 404 - Page Not Found after upgrading to 1.9.3.7

My solution, go to file app/Mage.php on line 808, replace $file = empty($file) ? 'system.log' : basename($file); to $file = empty($file) ? 'system.log' : $file; and comment the following line /...
Ansyori's user avatar
  • 842
10 votes
Accepted

Magento 1.9.3.1 404 Product page

This looks to be a new feature of 1.9.3.1 :) The issue is being caused at the bottom of: Mage_Core_Model_Session_Abstract_Varien::_validate() - app\code\core\Mage\Core\Model\Session\Abstract\Varien....
J Duke's user avatar
  • 116
9 votes

Static Content is not loading after upgrade

If you are running Nginx, here is the fix. You probably have your own conf file, you need to update the /static/ part with this, they have updated part of it specifically: # Remove signature of the ...
Kevin Chavez's user avatar
7 votes

Static Content is not loading after upgrade

Go to the database and insert a row in core_config_data table: INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0');
Saphal Jha's user avatar
  • 1,883
6 votes
Accepted

Magento 2: "404 Not Found" when calling a controller

You need some little modification. Jurgis/Twilio/registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, '...
Sohel Rana's user avatar
  • 36.1k
6 votes
Accepted

Magento 2 404 on all pages/files (except homepage)

Seems like your URL_Rewrite isn't enabled. Try using these commands in your folder /var/www/html: alias mage="php -d memory_limit=-1 -f bin/magento"; chmod -R 775 pub/static/ var/ pub/media/ &&...
Rafael Corrêa Gomes's user avatar
6 votes

Magento 2 404 on all pages/files (except homepage)

If you use Enterprise edition (Magento Commerce), maybe staging module data is screwed up. Try to remove staging row from the flag table.
Roman Snitko's user avatar
5 votes

Static Content is not loading after upgrade

There shouldn't be a version* folder in the static folder. This most probably happens because you don't have mod_rewrite enabled in your instance. The path pub/static/version1234/some/asset.js should ...
Marius's user avatar
  • 199k
5 votes
Accepted

Magento2 Product Page 404 Error Caused by URL Rewrite Not Working As it Should

I've worked out how to fix this for our particular situation. It was a corrupt database table issue. So error from system.log file relevant is below: main.CRITICAL: PDOException: SQLSTATE[23000]: ...
MagentoMac's user avatar
  • 1,062
5 votes

Magento 2: CSS & JS not found (404)

Most likely the rewrite-module doesn't work at yours web server or you have specified incorrect rewrite settings in the pub/static/.htaccess file. Try to change rewrite base to the: /pub/static The ...
Siarhey Uchukhlebau's user avatar
4 votes

Static files aren't deploying in developer mode

You have "Sign Static Files" options set to Yes in your backend : http://docs.magento.com/m2/ce/user_guide/system/static-file-signature.html Magento 2 add versionXXXXXXX to his URL to avoid "...
Matthéo Geoffray's user avatar
4 votes

Static Content is not loading after upgrade

It seems like the 2.1.3 release assumes the default value for Stores => Configuration => Developer => Static Files Settings => Sign Static Files is set to Yes. So instead of changing the ...
nbjohan's user avatar
  • 521
4 votes
Accepted

The URL is getting concatenated

Please find my understanding below: ninja is parent category and swithces is child category, we need to remove ninja from child category URL, Go to the Magento Admin Panel -> System -> ...
Ram Pratap Singh Gour's user avatar
4 votes
Accepted

Magento2: How to modifiy http header of page?

This is implemented in the Mage2 Module Experius PageNotFound which can be found on Github https://github.com/experius/Magento-2-Module-PageNotFound For more information see the following commit ...
Mr. Lewis's user avatar
  • 1,951
4 votes
Accepted

Consistent 404 from custom module URL... Why?

Can you please add before attribute and try again. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
Abhishek Panchal's user avatar
4 votes
Accepted

Magento2 : How To Solve Controller 404 Not Found Error On Live Server

remove your var/cache folder then execute this command in your command promt php bin/magento setup:di:compile Hope This Will Help You !!!
pankaj parmar's user avatar
4 votes
Accepted

Error 404 on Magento 2.4.2 on Localhost

You are missing the apache configuration for your specific magento domain. To create it, you create a file in /etc/apache2/sites-available/ named after your domain followed by .conf. In your case: /...
Mario's user avatar
  • 498
4 votes

frontend and admin not working magento 2.4.2 upgrade

I am really amazed that Magento pushed this to release without documenting it in the release note or "backwards incompatible" changes, but they did. They mention it in the installation notes,...
iphigenie's user avatar
  • 1,769
3 votes

Static Content is not loading after upgrade

If you're using apache. You mustn't delete the .htaccess from pub/static. You can get a replacement here.
Eamonn's user avatar
  • 508
3 votes

404 not found magento 2 static and media files not loading

Magento 2.2.2 Apache/2.4.6 (CentOS) I tried: rm -rf pub/static/* generated/* var/page_cache/* var/cache/* var/view_preprocessed/* chown -R apache:apache .* find . -type d -exec chmod 0770 {} \; ...
Bernard's user avatar
  • 155
3 votes
Accepted

Custom module admin panel section gives 404 error on save

in your config.xml in (or adminhtml.xml) you should have <acl> <resources> <all> <title>Allow Everything</title> </all> &...
Yiorgos Moschovitis's user avatar
3 votes
Accepted

Product page 404 error only sometimes

See if your issue is related to the latest "Known issues" for magento installations. They mention it for the version above yours, but it does not mean that the issues originated in that version ...
augsteyer's user avatar
  • 271
3 votes
Accepted

Magento 2: How to redirect 404 to home?

A simple way of doing this, log in to the admin and go to Stores > Configuration > General > Web and change the drop-down value for CMS No Route Page in the Default Pages section. You should be able ...
Rafael Corrêa Gomes's user avatar
3 votes

How to Redirect 404 page to homepage

You can use below settings from admin panel: Admin -> System -> Configuration -> Web -> Default Pages -> CMS No Route Page and select Home page from drop-down.
Ansar Husain's user avatar
  • 3,479
3 votes
Accepted

Magento 2 CSS/JS error in frontend and backend

If you deployment script not working for you, then there is something missing in your .htaccess file. Download same Magento version on your local system, and replace following .htaccess files ROOT/....
Shoaib Munir's user avatar
  • 9,572
2 votes

Magento2 installation, admin page 404 during installation

First of all enable rewrite mode sudo a2enmod rewrite For Ubuntu edit the file /etc/apache2/apache2.conf To edit this file use sudo vi /etc/apache2/apache2.conf command <Directory /var/www/&...
Prince Patel's user avatar
  • 22.9k
2 votes

404 not found magento 2 static and media files not loading

Sometime it is a hosting settings issue - its try to find "static" folder directly in magento root "/" but not in "pub/" To fast fix it try to make symbol link in magento root directory $ ln -s pub/...
kmv's user avatar
  • 51
2 votes

Magento2 Product Page 404 Error Caused by URL Rewrite Not Working As it Should

Well, most important thing to notice is your products must have positive stock, they must be enabled and there visibility should becatalog search. Assuming you have this run php bin/magento indexer: ...
Abhishek Jakhotiya's user avatar
2 votes

Magento Admin Issue: "admin/url/custom" missing from "core_config_data"

Can you check if your core_config_data entries for path: admin/url/use_custom and admin/url/use_custom_path are both set to a 0 value. If you don't want to use the custom URL added from the admin ...
Rob Hoehn's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible