Zen Cart Logo

Php 5

Views: 1,543

Results 1 to 13 of 13
3 Jan 2013, 9:22 PM
#1
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Php 5

I couldn't find this answer - I just upgraded my hosting PHP from 5.2 to 5.5 - when I try to bring up my page - I just get a blank screen. However, I have an older cart on 1.3 and it comes up just fine. Can 1.5 run on PHP5? Thanks for any help.

4 Jan 2013, 2:52 PM
#3
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Php 5

kobra:

Blank screen issues
http://www.zen-cart.com/content.php?124-i-am-getting-a-blank-page-%28or-blank-part-of-a-page%29

I'm not seeing any errors today that are outlined in the link you sent me - in the log there are no errors as a matter of fact.

So back to my question - can v1.5 run with PHP5? My problem stemmed from changing my PHP version from PHP4 to PHP5 - I changed my PHP version back to PHP4 and my site runs perfectly.

Any thoughts?

4 Jan 2013, 8:09 PM
#5
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Php 5

I should be more clear on the exact version of PHP I need to be at for other applications - right now I'm on PHP5.2 and with my hosting plan - I can change it to PHP5.3. Version PHP5.2 allows my v1.5 ZenCart to work perfectly - when I change my PHP version to PHP5.3 - ZenCart 1.5 does not work.

Any ideas?

Thanks - Jeff

4 Jan 2013, 8:57 PM
#6
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Php 5

I've just upgraded to ZenCart 1.5.1 and change PHP version to 5.3 and I still have the same problem where the front page does not display oddly I can login into Admin page without a problem.

4 Jan 2013, 9:08 PM
#7
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Php 5

Version PHP5.2 allows my v1.5 ZenCart to work perfectly - when I change my PHP version to PHP5.3 - ZenCart 1.5 does not work.

Any ideas?
Zen Cart 1.3.9h, 1.5.0, and 1.5.1 all work out of box in my test environments under PHP 5.2 and 5.3. I have a couple test environments running under PHP 5.4 - and after disabling strict error reporting I have not had any major issues.

Check all your plugins and modifications to see if they are PHP 5.3 safe. The link was intended more for people writing plugins, but will not be a bad starting place. The instructions in the "how to fix blank pages" should also help - keep in mind however FATAL PHP errors if present can sometimes show up in the web server's error log (if enabled) instead of the Zen Cart debug logs.

4 Jan 2013, 9:47 PM
#8
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Php 5

lhungil:

Zen Cart 1.3.9h, 1.5.0, and 1.5.1 all work out of box in my test environments under PHP 5.2 and 5.3. I have a couple test environments running under PHP 5.4 - and after disabling strict error reporting I have not had any major issues.

Check all your plugins and modifications to see if they are PHP 5.3 safe. The link was intended more for people writing plugins, but will not be a bad starting place. The instructions in the "how to fix blank pages" should also help - keep in mind however FATAL PHP errors if present can sometimes show up in the web server's error log (if enabled) instead of the Zen Cart debug logs.

It's so weird why when I change from PHP 5.2 to PHP 5.3 the site will not work. Really frustrated as I can't determine what is going wrong and why such a minor upgrade to PHP stops my site from working.

4 Jan 2013, 10:08 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Php 5

change PHP version to 5.3 and I still have the same problem
Try switching to the classic template and see if it displays

if so - then look to your desired template's override files

4 Jan 2013, 10:18 PM
#10
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Php 5

kobra:

Try switching to the classic template and see if it displays

if so - then look to your desired template's override files

Good idea - but still acts the same way - my install only works with PHP 5.2 and not PHP 5.3 :-(

7 Jan 2013, 5:49 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Php 5

Do you have any mods on the misbehaving site aside from the template? Are they the exact same mods that you have on the site that is working correctly (same version, settings...)?

7 Jan 2013, 6:21 PM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Php 5

jfreeman:

It's so weird why when I change from PHP 5.2 to PHP 5.3 the site will not work. Really frustrated as I can't determine what is going wrong and why such a minor upgrade to PHP stops my site from working.
The change from PHP 5.2.x to 5.3.x was not "minor", see http://php.net/manual/en/migration53.changes.php. As lhungil said, Zen Cart v1.3.9/1.5.x work out-of-the-box with PHP 5.3 so it's one (or more) of your addons that's causing you the issue.

Check in your /logs directory for the most recent file named debug*.log and post its contents; that will help others help you.

8 Jan 2013, 12:56 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Php 5

It could also be that your host's PHP configuration settings are very different between PHP 5.2 and 5.3, and one of those settings is conflicting with something Zen Cart is doing.
Get the actual details of the problem from the server's PHP error logs. Your hosting company can access that information for you.