Web Hosting Talk







View Full Version : PHP 4.3.10 = Bad News


ResellerPlanet
12-25-2004, 02:51 PM
Hello everyone,

I've upgraded PHP on 3 of my servers from 4.3.9 to 4.3.10. As you can read on www.php.net, I've upgraded Zend to 2.5.7. However I'm still having problems:

First of all, I'm still receiving those "Invalid argument supplied for foreach()" even though I'm running ZendOptimizer 2.5.7 (phpinfo(); verified this).

Also:


Warning: session_start(): open(/tmp/sess_bd0982bdafa57d9501214eccb1722449, O_RDWR) failed: Permission denied (13) in /home/rplanet/public_html/clients/common/common.php on line 11


Permissions for /tmp are correct. I noticed someone is have a related problem in this (http://www.webhostingtalk.com/showthread.php?s=&threadid=357022) thread.

Does anyone upgraded to PHP 4.3.10? If so what are your experiences with the upgrade? Did you encounter any problems? If yes, how did you fix them?

Thank you

Steven
12-25-2004, 02:59 PM
ls -l / | grep tmp

I would like to see the permissions anyways

ls -l /tmp | grep sess_

I would like to see perimissions of those also

On the site with:

"Invalid argument supplied for foreach()"

is that the same site with the sessions issues? Also what kind of script is it?

artzweb
12-25-2004, 03:03 PM
Had no problems upgrading to 4.3.10. Sometimes your head gets dizzy trying and trying and trying. What I suggest is to leave it for a while, have a pint of beer or your favourite beverage and try to do it from scratch again.

ResellerPlanet
12-25-2004, 03:06 PM
root@server1 [~]# ls -l / | grep tmp
drwxrwxrwt 3 root root 221184 Dec 25 14:02 tmp/
root@server1 [~]#


root@server1 [~]# ls -l /tmp | grep sess_ | more
-rw------- 1 censored censored 57 Dec 25 07:51 sess_00a6b5f0a66536cf1c0ed6882a336170
-rw------- 1 censored censored 16 Dec 17 13:55 sess_010a78f3932403b137ebf108e16cb959
-rw------- 1 censored censored 229 Dec 20 16:31 sess_016e3dfeabded7aa285437387f55470f
-rw------- 1 censored censored 272 Dec 23 20:40 sess_01ca2e208599571cc21db79b5a8cbed7
-rw------- 1 censored censored 15 Dec 24 13:36 sess_01d18756b7213d23b5f657422a85cf92
[...]


I'm receiving the foreach() error on ClientExec. Also the session error when trying to login with ClientExec.

I've also received a complaint from a customer that his navigation menu in his CVS was empty which was probably also due to the foreach() and another customer complaining about the same "permissions denied" error when using sessions. I think he created that script himself.

I've downgraded back to 4.3.9 for now.

Thanks for your help.

Steven
12-25-2004, 03:08 PM
Did you download the newest ioncube loader?

http://www.ioncube.com/php4.3.10_issues.php?sid=bd6a2ef54280c63403cbf34330c70a21

ResellerPlanet
12-25-2004, 03:10 PM
No, only ZendOptimizer. I'll upgrade to IonCube tonight and let you know the result.

Merry xmas btw ;)

ResellerPlanet
12-28-2004, 03:01 PM
I upgraded IonCube loader and downgraded back to 4.3.9. Everything seems back normal, except for one complaint of a customer:

He's still receiving the session_start() error. The strange this is, he also uploaded the same script into the folder "Testing" and inside that folder the script works without errors. However when he runs the script from his public_html directory, it won't work.

Any idea?

DigiCrime
12-28-2004, 03:29 PM
Did you try removing all the sess_ files from tmp?

ResellerPlanet
12-28-2004, 04:47 PM
I was thinking about doing it but decided to wait and post here first because I didn't know if that would be a good idea. Do I delete all those files or just the files owned by that certain user?

SW-Ray
12-28-2004, 05:08 PM
You can delete all of the session files and it won't do any damage.

ResellerPlanet
12-28-2004, 05:26 PM
I solved the problem.
For some reason (don't know why) the customer commented the 'sessions_start();' line. :)

Thanks for the help.