Support

Admin Tools

#13554 Custom template for site blocking - backend error

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 on Tuesday, 16 October 2012 18:00 CDT

dkdb
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.7
PHP version: 5.3.6
MySQL version: 5.0.96
Host: blanye.dk
Admin Tools version: 2.5.7

Description of my issue:
I've used your 'default.php' and placed it in the /html/com_admintools/blocks
Modified it a bit to include an image.
It is being used as it should, though it doesn't display the danish letters properly?

But from the backend, I see this strange page:
Forbidden

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.dkdb.dk Port 80

And as you can see the URL is: /administrator/dministrator/
??

I've attached the template below.

Best regards Kenneth

nicholas
Akeeba Staff
Manager
Regarding the front-end, remember that you are editing a full HTML page, including its head section. It's up to you to provide the correct content-type header to denote that the contents of the page are in UTF-8 or ISO-8859-1. Admin Tools will simply output the file. It will not even think about doing anything with its encoding :)

In the back-end you are never supposed to have a customisable error template because no security exceptions are actually thrown after you have logged in to your site's back-end. I am not sure what the conditions were which led to this strange URL, so I can't comment on 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!

dkdb
Ahh, ok, I'll see about the content-type.

To test the error page I locked myself out from the site, and it was when I did that (when I saved my IP to the block list) I got the above URL / error.

Best regards Kenneth

nicholas
Akeeba Staff
Manager
Hm, I'm not sure about the strange redirection. Have you tried enabling the RewriteBase / line in your .htaccess file or setting the live_site parameter in your configuration.php file?

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!

dkdb
The .htaccess has these lines:
##### RewriteEngine enabled - BEGIN
RewriteEngine On
##### RewriteEngine enabled - END

##### RewriteBase set - BEGIN
RewriteBase /
##### RewriteBase set - END

I tried setting the live_site to 'www.dkdb.dk'

No change, same result.

I have the Joomla SEF set to 'yes'.

Best regards Kenneth

nicholas
Akeeba Staff
Manager
The live_site variable also needs the http:// in front. AFAIK, it won't work without it.

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!

dkdb
Ahh, sorry, tried both, and yes, it didn't work at all without the http:// :-)

Best regards Kenneth

nicholas
Akeeba Staff
Manager
I ran out of ideas :( I do try to replicate this locally, but I can't.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!