PDA

View Full Version : PHP4.3.10 Warning: Illegal offset type in Common.php on line


cYon
02-10-2005, 07:51 PM
I had 1and1 re-image my server because an attempted upgrade to the newest plesk left my server not booting. Now my problem is that my PHP scripts are no longer working properly. I get the following errors:
Warning: Illegal offset type in Common.php on line 91

The problem is due to Zend/IonCube being outdated. Does anyone know how I can update them without causing Plesk any grief. Any help is appreciated.

mindblender
02-10-2005, 08:11 PM
cYon,
Have you tried replaing the ioncube file? DOn't know if that would help or not.

I downloaded it from here:
http://www.ioncube.com/beta/ioncube..._lin_4.3.tar.gz

This fixed a Horde problem after upgrading to MySQL4, maybe it will help you.

Here's what I did:
SSH into your server then execute the following commands:
# cd /usr/lib/php4
# ls (should see a "ioncube_loader_lin_4.3.so" file)
# mv ioncube_loader_lin_4.3.so ioncube_loader_lin_4.3.so.bak (just a precaution)
# wget http://www.ioncube.com/beta/ioncube..._lin_4.3.tar.gz
# tar -xzvf ioncube_loader_lin_4.3.tar.gz
# chmod 644 ioncube_loader_lin_4.3.so

Then restart Apache from Plesk or you do:
# /etc/rc.d/init.d/httpd stop
# /etc/rc.d/init.d/httpd start

note: if you don't see the ioncube_loader_lin_4.3.so file you can do a "locate ioncube" and it should find it for you.

That should update the Zend/IonCube file. If that fixes it then you can delete the "ioncube_loader_lin_4.3.tar.gz" and the "ioncube_loader_lin_4.3.so.bak" files.

Hope that helps

cYon
02-10-2005, 08:48 PM
mindblender, thanks for the info, in the end I needed to run a new version of ioncube. Your information led me in the right direction to my answer.

I basically needed to edit /etc/php.d/ioncube.ini and have it point to the new ioncube module, reloaded apache and all is well again.

sholzy
02-11-2005, 03:55 AM
Thanks, this fixed my Horde login and default language problem. :D

planetjay
02-11-2005, 04:45 PM
FYI this fixes Mambo, Gallery, and other php scripts too. Someone should make this one sticky for a while.