Support

Admin Tools

#13598 Fatal error load shared memory

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, 19 September 2012 07:27 CDT

user67910
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 (all pages)? Yes
Joomla! version: 1.5
PHP version: 5.2.12
MySQL version: (unknown)
Host: InMotion Hosting
Admin Tools version: 2.2.1o Pro

Description of my issue:

In some of the contebt pages, I get a
Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /home/MYWEBSITE/public_html/administrator/components/com_admintools/helpers/geoip.php:236) in /home/MYWEBSITE/public_html/includes/geoip/geoip.inc on line 258

Thank you!

nicholas
Akeeba Staff
Manager
You have a third party plugin, component or module which is trying to load the GeoIP functions. These functions are already loaded by Admin Tools' plugin. Our code DOES check if these functions are loaded and does not stupidly try to load them again in order to avoid throwing a PHP Fatal Error. Unfortunately we cannot guarantee that other developers are not doing something as stupid as that. Even worse, the extension which does this stupid thing has done one even bigger stupidity: it placed its file (geoip.inc.php) inside the includes directory. This is a directory reserved for Joomla! system files. No extension should ever write into that directory. Please try finding the buggy third party extension and tell its developer that he's doing two extremely stupid things:
1. Loading geoip.inc.php without checking if these functions are already defined because another extension loaded them or because the GeoIP PHP extension is loaded.
2. He is writing files to the "includes" directory which must NOT be used for third party code.

I'm sorry, I can't fix buggy code produced by third party developers who don't understand how Joomla! is supposed to 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!

user67910
Thank you very much Nicholas for the fast and thorough reply. I guess it is RS Firewall... - I used it since I thought you no longer support J1.5 but switched to AdminTools once I found you are:)
I already uninstalled RS Firewall. Any advice on how to remove that error as well?
I appreciate you reply and I will understand if you can't or don't want to relate to it.

Thanks again

nicholas
Akeeba Staff
Manager
If you have removed RS!Firewall it should have also removed its system plugin. The easiest workaround is to open the includes/geoip/geoip.inc file on your site and remove all of its contents.

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!

user67910
Man, you're fast!
Did it.
Problem solved.
You're the best.

Thanks a lot

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!