Support

Admin Tools

#15998 "403 Forbidden" when trying to put Google analytics in site template

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 Thursday, 09 May 2013 02:00 CDT

user71441
Hi Nicholas,

I am using JSN Epic PRO temlate, which has Google Analytics integration: http://www.joomlashine.com/blog/google-analytics-integration-with-joomlashine-templates-for-joomla-newbies.html

I did everything as explained in article linked above, but when I click on "Save and Close", error occurs:

Forbidden



You don't have permission to access /administrator/index.php on this server.



Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Is it possible that it has something to do with Admin Tools Professional?

Thanks in advance!

nicholas
Akeeba Staff
Manager
Very unlikely as Admin Tools doesn't apply its protection to the back-end.

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!

user71441
Thank you,

I tested 1. and 2. - the same problem still exists.

As for 3. - can I just delete .htaccess file, and then try this with Google analytics code - and then (whether it works or not) just go to .htaccess maker in Admin Tools and "Save and create" new one?

nicholas
Akeeba Staff
Manager
Regarding number 3, yes, you can do that

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!

user71441
Hi Nicholas,

I just tried 3. and, although my website is not on GoDaddy, I waited 30 minutes... at the same time, I disabled "System - Admin Tools" plugin again - and the same problem still exists. Definitely nothing to do with Admin Tools Professional.

I will try to change permissions of index.php in /administrator, then try to do this again and restore permissions to 644...

Anyway, thank you very much!

Best regards,
Filip

nicholas
Akeeba Staff
Manager
You're welcome!

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!