Zen Cart Logo
Forums / Bug Reports / [Done v1.3.7] Upgrade Php 5.2.0

[Done v1.3.7] Upgrade Php 5.2.0

Locked

Views: 4,379

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
28 Nov 2006, 5:26 PM
#1
sopho avatar

sopho

New Zenner

Join Date:
Oct 2005
Location:
Romania
Posts:
16
Plugin Contributions:
0

[Done v1.3.7] Upgrade Php 5.2.0

We made an upgrade to PHO 5.2.0 (details here http://www.php.net/UPDATE_5_2.txt)

After the ugrade we cannot log to admin area and the client cannot log to their account.

Error messages:
[Tue Nov 28 19:15:44 2006] [error] [client 83.103.228.52] File does not exist: /home/liviu/public_html/includes/templates/template_default/images/OTHER_IMAGE_SILVER_SEPARATOR
[Tue Nov 28 19:15:43 2006] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/liviu/public_html/includes/functions/sessions.php on line 61
[Tue Nov 28 19:15:43 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:15:43 2006] [error] PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: open_basedir restriction in effect. File(/var/log/www/zen/page_parse_time.log) is not within the allowed path(s): (/home/liviu:/scripts/php:/usr/lib/php:/usr/local/lib/php:/usr/share/pear:/tmp) in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:15:33 2006] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/liviu/public_html/includes/functions/sessions.php on line 61
[Tue Nov 28 19:15:33 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:15:33 2006] [error] PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: open_basedir restriction in effect. File(/var/log/www/zen/page_parse_time.log) is not within the allowed path(s): (/home/liviu:/scripts/php:/usr/lib/php:/usr/local/lib/php:/usr/share/pear:/tmp) in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:13:38 2006] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/liviu/public_html/includes/functions/sessions.php on line 61
[Tue Nov 28 19:13:33 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:13:33 2006] [error] PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: open_basedir restriction in effect. File(/var/log/www/zen/page_parse_time.log) is not within the allowed path(s): (/home/liviu:/scripts/php:/usr/lib/php:/usr/local/lib/php:/usr/share/pear:/tmp) in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:13:09 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:13:09 2006] [error] PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: open_basedir restriction in effect. File(/var/log/www/zen/page_parse_time.log) is not within the allowed path(s): (/home/liviu:/scripts/php:/usr/lib/php:/usr/local/lib/php:/usr/share/pear:/tmp) in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:11:47 2006] [error] [client 82.79.187.114] File does not exist: /home/liviu/public_html/includes/templates/template_default/images/OTHER_IMAGE_SILVER_SEPARATOR
[Tue Nov 28 19:11:41 2006] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/liviu/public_html/includes/functions/sessions.php on line 61
[Tue Nov 28 19:11:41 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:11:41 2006] [error] PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: open_basedir restriction in effect. File(/var/log/www/zen/page_parse_time.log) is not within the allowed path(s): (/home/liviu:/scripts/php:/usr/lib/php:/usr/local/lib/php:/usr/share/pear:/tmp) in /home/liviu/public_html/includes/modules/footer.php on line 19
[Tue Nov 28 19:09:57 2006] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/liviu/public_html/includes/functions/sessions.php on line 61
[Tue Nov 28 19:08:50 2006] [error] PHP Warning: error_log(/var/log/www/zen/page_parse_time.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Operation not permitted in /home/liviu/public_html/includes/modules/footer.php on line 19

29 Nov 2006, 4:51 PM
#2
sopho avatar

sopho

New Zenner

Join Date:
Oct 2005
Location:
Romania
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

I forgot to mention: We are using ZenCart 1.3.6.

As far as I can see nobody has a solution...

29 Nov 2006, 6:51 PM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Were you previously running PHP as a Module or CGI?
Is PHP 5 currently being run as a Module or CGI?

If currently running as CGI you can safely turn off / disable, 'open_basedir' restrictions.

29 Nov 2006, 6:55 PM
#4
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

There is a very simple solution. Uninstall PHP 5.2.0.

https://www.zen-cart.com/tutorials/index.php?article=6

29 Nov 2006, 6:59 PM
#5
sopho avatar

sopho

New Zenner

Join Date:
Oct 2005
Location:
Romania
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Chuckl:

There is a very simple solution. Uninstall PHP 5.2.0.

https://www.zen-cart.com/tutorials/index.php?article=6

:))

My "hosting" company didn't want to uninstall...
So I changed the hosting company.

But remains the issue ... for others.

29 Nov 2006, 7:55 PM
#6
sopho avatar

sopho

New Zenner

Join Date:
Oct 2005
Location:
Romania
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Chuckl:

There is a very simple solution. Uninstall PHP 5.2.0.

https://www.zen-cart.com/tutorials/index.php?article=6

Website Rob:

Were you previously running PHP as a Module or CGI?
Is PHP 5 currently being run as a Module or CGI?

If currently running as CGI you can safely turn off / disable, 'open_basedir' restrictions.

As Module...

30 Nov 2006, 2:38 AM
#7
slashdot avatar

slashdot

New Zenner

Join Date:
Dec 2005
Location:
Bangladesh
Posts:
79
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Ok, as per instructions i am here now.

Please refer to this post:
http://www.zen-cart.com/forum/showthread.php?p=297722#post297722

Short description of whats happening to my site:

i just installed Zencart 1.3.6 and i can not login to the admin area.
i get this error:

Fatal error: Call to a member function Execute() on a non-object in /home/clan/public_html/DesignDepo/includes/functions/sessions.php on line 61

i got this same error with my previous cart (1.2.7) and this appeared out of the blues.

My shops link:
http://www.clanthemes.biz/DesignDepo/index.php

It is a clean install. (But as mentioned earlier this problem also showed up in the last install 1.2.7 out of the blues).
The sessions are stored in DB.
PHP version 5.2.0
MySQL version 4.1.21-standard

IPHP currently being run as a module.
so disabling base_dir wont do anything? And similarly my hosting company just wont uninstall 5 like that. I have quite a few websites running there. so cant just switch hosts like that either.

30 Nov 2006, 5:10 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

The error msg. you described tells us the db can be read from but not written to. This could mean a db permission error.

One other things as well. When doing a fresh install or update there are approx. 1,700 files involved. It is all to common that some files fail to upload. You could try reuploading just the 'includes' dir. and hopefully your FTP program has a feature that tells you what uploads failed.

Your quickest solution is to discuss the problem with your Hoster.
Or you could provide a copy of both your configure files.
Or you could hire someone to help figure this out.
Or you could switch Hosters -- a lot easier than you might think.

Your options are many. I would start with the first one and go from there. One of the above options will solve the problem.

30 Nov 2006, 8:02 AM
#9
sopho avatar

sopho

New Zenner

Join Date:
Oct 2005
Location:
Romania
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Website Rob:

The error msg. you described tells us the db can be read from but not written to. This could mean a db permission error.

One other things as well. When doing a fresh install or update there are approx. 1,700 files involved. It is all to common that some files fail to upload. You could try reuploading just the 'includes' dir. and hopefully your FTP program has a feature that tells you what uploads failed.

Your quickest solution is to discuss the problem with your Hoster.
Or you could provide a copy of both your configure files.
Or you could hire someone to help figure this out.
Or you could switch Hosters -- a lot easier than you might think.

Your options are many. I would start with the first one and go from there. One of the above options will solve the problem.

All the permissions and files were OK
I already changed the hosting company
Probably tomorrow everything will be back to normal.

Thanks for you help... to all of you

30 Nov 2006, 10:58 AM
#10
peteh avatar

peteh

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

My host installed 5.2.0 this weekend but has left 4.4.4 on too. Initial suggestion to rename the sessions.php file to sessions.php4 (plus the references to it in other files looked promising but still throws up the previous errors with the 4 appended to the session.php!

I'll let you all know if anything comes out of his investigation.

Pete

Bit of a b****r just before Christmas to loose access to the shop!

30 Nov 2006, 11:22 AM
#11
slashdot avatar

slashdot

New Zenner

Join Date:
Dec 2005
Location:
Bangladesh
Posts:
79
Plugin Contributions:
0

Re: [Done v1.3.7] Upgrade Php 5.2.0

Here is what i think is realistic:

  1. Changing hosts is impossible for the most.
  2. This issue appears as soon as the host goes php 5. and eventually all hosts will. So using php 4 i dont think will be an option.
  3. Renaming didnt help.
  4. All the perm to the DB is perfect.
  5. it happens regardless u upgrade or freshly install.

So i hope the Zen team comes up with something fast! its christmass time and we all were hoping for some selling now :(