Support

Admin Tools

#14355 404 error suggestions - possible cause

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 11 December 2012 15:41 CST

user39895

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 2.5.8
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.4.3

Description of my issue: I am recieving a 404 error when I attempt to "check connectivity" in a specific component. In the documentation of it, it says that minimum requirements:

"you must have enabled at least one of the following functions cURL , fsockopen , fopen , file_get_contents. In case your hosting provider doesn't allow loopback connections, then head to the second option."

I contacted my host, and they say that all of these functions are allowed.

Is the admin tool blocking any of these?  If so, can I run the PHP exec function? That is the "second option"

 

In an effort to find the problem with this 404, which I believe is caused by an SEF component, I am trying to eliminate the 404 page that is created by the template I am using. The template creator is suggesting that I rename the .htaccess file back to htaccess.txt.  This seems like a bad idea to me, but I can do it for testing purposes.  I can see that move creating all kinds of other problems on the site.

 

Any ideas on both of these would be a lot of help to me. Thank you.

nicholas
Akeeba Staff
Manager

If in doubt, follow the standard Admin Tools debugging steps. Let's make sure that the problem is indeed caused by Admin Tools. In order to do so, try the following:

1. Try setting the Error Reporting level in your Global Configuration to "None". Many errors are caused by harmless PHP Notices and Warnings being output to the browser, breaking anything which requires HTTP header manipulation such as Joomla!'s session management, AJAX calls and download systems.

2. Try to replicate the issue after disabling the "System - Admin Tools" plugin. If you can still replicate the issue, it is not caused by Admin Tools. Disabling that plugin means that Admin Tools code (including the Web Application Firewall) is not running on your site.

3. If you suspect an issue with the .htaccess file, replace its contents with the contents of the stock htaccess.txt file shipped with every version of Joomla!. If you are on GoDaddy please wait for 1-30 minutes for the changes to be effective. Then, retry loading the problem page. If you can still reproduce the error, then it is not caused by .htaccess Maker.

If doing any of the above resulted in the issue still occurring, it's not related with Admin Tools and I can't help you. If doing any of the above did stop the issue from occurring, we'll have to do some troubleshooting.

First go to Admin Tools, Web Application Firewall, Configure WAF. Make sure "Log security exceptions" is set to Yes; if it's not, set it to Yes and click on Save. Now try reproducing your issue. Immediately after that, please go to Admin Tools, Web Application Firewall, Security Exceptions Log and go to the last page. The last log entry should have the date and time of when the issue occurred. Please copy the Reason and Target URL here so that I can help you.

If, however, you do not see a log entry, or the Date and/or IP address do not match your last access, this problem is not caused by Admin Tools' WAF. In this case, you will have to do some .htaccess troubleshooting. You may need to read the general .htaccess troubleshooting page, as well as the page on finding out necessary .htaccess exceptions.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user39895

Will do, thanks. I am just trying all options here. I cannot say that I think "Admin Tools caused the problem". Just trying everything I can think of.

My site is no Bluehost btw.

Trying your suggestions now...

user39895

Ok, I tried everything you reccomended and the end result is that it is not caused by admin tools.

Is the /logs folder supposed to have a 755 permission? As far as I know, the "owner" having write permissions is enough to create a file in there... Your component is able to write into that folder as I see your file in there.

The reason I ask, is the template maker has a custom 404 setup, and the SEF component is supposed to save a log file there when I have a 404. I am guessing that somehow the template 404 implimentation bypasses the trigger for the creation of that log file. In asking them how to shut down their custom 404, I was told to rename the .htaccess file all together. This just seems like a bad idea.. Maybe I will try it just for the heck of it.

 

 

Thank you for your ideas.

user39895

Nicholas, I have multiple problems running right now... I went ahead and tested your suggestions for my other problem (on accident) and that relates to my other problems.

 

I did the connectivity test, with the plugin disabled, and it worked.

 

Not working message:

Could not connect using "fopen,file_get_contents" but could connect with "cURL,fsockopen"

 

Working message:

Connection with "cURL,fsockopen,fopen,file_get_contents" successfully

 

I then did your reccomended test for the exception log. I got 3 exceptions, all of them say:

"Required header 'Accept' Missing"

 

Could you please make this ticket private and I will give you the information you need to log into my administrator side? The url is inside of the administrator in a component configuration.

nicholas
Akeeba Staff
Manager

Disable the Bad Behaviour integration from the Configure WAF page

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!