Magento incorrect 404 redirect - php

Magento is redirecting any 404 errors to the admin login. In the admin settings I have the no route setting set to a CMS page that I confirmed exists.
I have been fighting with this for a week. Cleared cache, reindex, rebuilt url rewrites, etc...
If there is a way to completely bypass magento handling 404 I can do this through htaccess just to get it working.
Ideas?
I also went through and disabled any custom modules I had installed to see if they were affecting it. No luck there.
Checked apache/php logs as well as both exception and system logs generated from Magento. Nothing.

If you had experienced a "4xx Error", it means the error occurred on the user/client side.
If you had experienced a "5xx Error", it means the error occurred on the server side.
404 Not Found
The requested resource could not be found but may be available again
in the future.[2] Subsequent requests by the client are permissible.
I'm not sure, but it sounds like the error is in your controller. You are calling a controller action that doesn't exist.

You has checked the settings?
Admin->System->Config->Web->Default Pages
Default No-route URL should be set to 'cms/index/noRoute'
The drop down beneath that show be your 404 page.
Of course you can put the noRoute to your own module, simply put 'yourmodule/yourindexcontroller/whateveraction' in the box.

Related

Openshift PHP7 wordpress app throws “404 Page not found error” with custom domain name

I have a wordpress app based on PHP7 catridge on Openshift. I added two alias to the app(e.g, www.xyz.com & xyz.com) and I also updated the CName in my Zone file. When I enter www.xyz.com, it redirects me to www.xyz.com/app and throws a 404 NOT FOUND error (nginx/1.11.6).
But I can access the administration page without any problem (www.xyz.com/wp-admin)
Can anyone please help?
Enter the www.domain.abc first. Use CloudFlare to configure your domain. Make things pretty easy.
After this you will get the pretty permalinks error related to ngnix.
I am too getting the same error. I can access the home page and most of the things. This error only arises when I decide to use Pretty Permalinks in WordPress.
Till now I have figured it out that we have to edit the ngnix file. But there are several files out there.
Has made me even more confused.
This may not be the solution but you can access post and other stuff in plain permalinks.

Joomla 404 error in Admin Panel

I am having a strange thing happening to my Joomla site. I am unable to save anything in the Admin Panel. For instance, if I go to "Global Settings" and make any changes (eg site name or even email) and click on Save, I get a 404 Error:
The requested page can't be found.
Error: 404 - View not found [name, type, prefix]: jgive, html, jgiveView
I am using Joomla 3.4 (latest version). Please see the screenshot attached. Is anyone getting any similar error and any idea how to solve this? I have .htaccess enabled in my backend, with SEF Urls turned on. This seems to be happening randomly because the site has been working just fine and suddenly started this behaviour.
Thanks for any help!

Unable to access the admin section of my Wordpress site

This is the URL of the site I am referring to: http://www.nagorik.org/
The site seems to be working fine.
However, when I am trying to access the admin site through http://www.nagorik.org/wp-login.php, I get the following message in Firefox:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
Any idea why this might be happening?
Some notes:
I checked the error log file; nothing new in it.
I have nagorik.org redirecting to www.nagorik.org
Firefox has detected that the server is redirecting the request for
this address in a way that will never complete. This problem can
sometimes be caused by disabling or refusing to accept cookies.
Let's try to check the cookie settings to see if it helps.
https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences
One issue I see is you're missing a ton of Wordpress files in /wp-admin/. You might want to consider reinstalling wordpress or at least re-uploading the /wp-admin/ directory.

Joomla 2.5 no 404 page

I'm having issues with my Joomla installation.
It's a rather vanilla J! 2.5 (latest version) installation with K2 (I don't think it is related to my problem).
The problem is that any URL I make up (such as http://www.mysite.com/No-Such-URL-At-All) gives me the following error:
Error
Article not found
You are not authorised to view this resource.
I created an error.php file that should handle it in the template, but it is not used at all by Joomla, as I don't think it is really handled as error but as a permission redirection :\
So I tried adding this code to my template:
Code:
if (($this->error->code) == '404') {
header('Location: /404.html');
exit;
But no error was detected and the code was also ignored.
I inspected the response headers from the server, but I actually get a response 200, OK response :.
Some additional data that could be usefull
- It's hosted on a godaddy dedicated centos server
- SEF is enabled (problem continues also when disabled)
Let me know if any other information could help...
I really have no other direction I can think of, maybe someone has any idea why any 404 is turned into a permission redirection?
Check to see if when you have a 404 if Joomla is hitting the "com_content" component ( check the $_REQUEST variable). I had this problem and it turned out that it wasn't, it was hitting one of my custom components. If this is the case, here is what you need to do to fix it. For this example, lets say that its hitting 'com_home' instead of 'com_content'.
1). Copy components/com_content/router.php into components/com_home
2). Open components/com_home/router.php and replace all instances of "Content" with "home"
3). Open components/com_home/home.php and add the following lines near the top of the file:
JHtml::_('behavior.tabstate');
require_once JPATH_COMPONENT.'/helpers/route.php';
4). Copy the entire components/com_content/helpers into components/com_home
When that's done, the url mysite.com/does-not-exist should redirect to the error.php page you've set up in your template.

Drupal Migration - Error 404's

I've set up a Drupal 7 site locally and have ftp'd the site over to my ISP's server which is a linux box running PHP and MySQL.
I've never successfully logged into the site before and I have locked myself out. When I go http://www.example.com/?q=user and click on request New Password then I get this error:
Not Found
The requested URL /user/password was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
One thing I've been confused about and that is the .htaccess file. I never had one locally on my Mac and I did not need it (I know it is hidden) - so I downloaded one and deployed it to the web site but then I got 500 errors, it made it worse. I've since deleted that file and at least I get some content - but not very much - just the front page. I overrode the themes name in settings.php as I have user access errors there. I changed it back to one of the default themes and that allowed me to get some content and not the 'white screen of death'
Advice welcome!

Categories