Support

Admin Tools

#16851 Problems with 404 error page component ?

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 Wednesday, 24 July 2013 08:58 CDT

Chacapamac
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.11)
PHP version: (5.4)
MySQL version: (unknown)
Host: (bluehost)
Admin Tools version: (2.5.6)

I have a component that control the error page, this demand to add something like that in the htaccess.
ErrorDocument 400 /index.php?qlue404=1
ErrorDocument 401 /index.php?qlue404=1
ErrorDocument 403 /index.php?qlue404=1
ErrorDocument 404 /index.php?qlue404=1
ErrorDocument 500 /index.php?qlue404=1


When I include in my admintools htacess (I try top and bottom of htaccess) I cannot acces my administration and I see the title of the page being 404 ?

nicholas
Akeeba Staff
Manager
If you remove those lines does your site work? If it does, it is possible that your host doesn't allow you to define the error documents in your .htaccess files. Please contact your host.

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!

Chacapamac
Just find this on Bluehost

They seem to allowed custom error pages



Customizing your error pages

When manually editing your .htaccess file you will need to add the following entry to fit your site:



ErrorDocument error-number /Your-Error-file.html



For example if I had the file notfound.html in the root directory of my site and I wanted to use it for a 404 error I would use:

ErrorDocument 404 /notfound.html



I investigate and come back....

Chacapamac
• I reinstall that same code in the Admintools Htaccess Maker
— At the end of the htaccess.

ErrorDocument 400 /index.php?qlue404=1

ErrorDocument 401 /index.php?qlue404=1

ErrorDocument 403 /index.php?qlue404=1

ErrorDocument 404 /index.php?qlue404=1

ErrorDocument 500 /index.php?qlue404=1


I take out the errors files that was in the root directory (created automatically by blue host with a new account) (400,401, 403..... .shtml)

When I try to reach my administration

http://www.mysiteweb.com/administrator/?specialadmintoolsurlcode

I end up at the front of the site with my custom 404 error page

nicholas
Akeeba Staff
Manager
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!

Chacapamac
I’m working on that right now.

Should I try to reach the administration with

http://www.mywebsite.com/administrator/?admintoolsurl

or

http://www.mywebsite.com/administrator?admintoolsurl

nicholas
Akeeba Staff
Manager
http://www.mywebsite.com/administrator/index.php?admintoolsurl is the one that will most likely work

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!

Chacapamac
Thanks Solved

I make 5 different htaccess

1— Joomla basic (with php 5.4 CGI call from Bluehost) —Working perfectly

2— Joomla basic (with php 5.4 CGI call from Bluehost) +404 code — Not Working (going to front site 404)

3— AdminTools htaccessMaker (with php 5.4 CGI call from Bluehost) — Working perfectly

5— AdminTools htaccessMaker (with php 5.4 CGI call from Bluehost) +404 code — Not Working (going to front site 404)
I try top & bottom of htaccess.


• I try —> www.mywebsite.com/administrator/index.php?admintoolsurl

• Put the error reporting to none = No difference

Note: This redirection seem to appear without any addition in the administration and joomla error logs

When the problem occurs I don't see the ftp username/password from the joomla administration (setup in Admintools)


I try with admintools disabled and the problem occurs again…



The problem come from the addition of the 404 code in the htaccess… Not AdminTools


I investigate and come back with the name of extension and fix...

nicholas
Akeeba Staff
Manager
OK, this looks like BlueHost claiming they support custom error messages but in practice not allowing them :s

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!