Support

Admin Tools

#11908 geo block blank screen

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, 11 April 2012 07:14 CDT

surveillance
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.4
PHP version: 5.3.8
MySQL version: 5.1.61
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.5

Description of my issue:
Hi Nicholas,
this is a fresh joomla.
i get an warning message in the backend:
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/home/.sites/120/site1646/webplugins/system/admintools/admintools/main.php) is not within the allowed path(s): (/home/.sites/120/site1646/web:/home/.sites/120/site1646/tmp:/usr/share/pear) in /home/.sites/120/site1646/web/libraries/joomla/filesystem/file.php on line 523 (- I would not see this warning with usual error-reporting)

If i enable block by country (- no matter which one -) theres an blank screen and i get an error-message:
Notice: Uninitialized string offset: 4 in /home/.sites/120/site1646/web/administrator/components/com_admintools/helpers/geoip.php on line 445

the only thing I did is to update GeoIP (it was only possible manually). Any advice?
Thanks in advance. Dan

nicholas
Akeeba Staff
Manager
This is a server misconfiguration. What has happened is that the site's plugins path is not in the allowed paths PHP can read files from. This should never happen on a properly configured server. Please contact your host. Unfortunately, I can not offer any kind of assistance on a broken server.

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!

surveillance
Hi Nicholas,

my provider said:

"File(/home/.sites/120/site1646/webplugins/system/admintools/admintools/main.php)
is not within the allowed path(s):

(/home/.sites/120/site1646/web:/home/.sites/120/site1646/tmp:/usr/share/pear)
in

There is an missing "/" between "web" and "plugins" and I should tell you this"

I have (older) sites running and used geoblock 1 or 2 month ago working properly.

Dan

nicholas
Akeeba Staff
Manager
Given that this path is generated by Joomla! itself, I can't see how that's possible? Can you try uninstalling and reinstalling Admin Tools?

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!

surveillance
So I found the main problem. By downloading a file my mac re-zipps files - and showed that status for the GEOIP file (that would not work to download in the admintools backend). But the GEOIP file was not re-zipped and would produce the error messages that I think mean nothing in this context.
Seems to be something like a mac bug. And yes, I know, in your tutorial you tell how to re-zipp...

I could block my home country for the frontend (very dramatic new design :), after that I was not able to logout in the backend with the logout button, getting new error messages about AdmintoolsViewCpanel. I will check this, I didn´t fill out the Download ID for the test, maybe thats the reason.

So one question - If I block my country, is it right that the backend is further accesible for me?

Thanks, Dan

(Sorry Nicholas my client wants this blocking soooo much)

nicholas
Akeeba Staff
Manager
Actually, it's not your Mac, it's Safari :) It has a very liberal interpretation of your actions. That's why I ditched it for Chrome. It's pretty much the same browser engine, without the annoying assumptions about what I meant to do.

If you block your own country, yes, you will be blocked from front- and back-end. The only workaround is renaming files, as per our troubleshooter's instructions.

Well, your client is always right (that's what we are told about clients), but in this particular case he may not be understanding in full what he's signing up for. GeoBlocking is not 100% accurate and will only block requests to Joomla!, not any other web-accessible PHP script on the site. Not to mention that by using proxy servers a clever hacker can bypass this blocking. Make sure that your client understands that this is not a silver bullet. Informed clients are happy clients in the long run ;)

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!