Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Zencart V2.6 & php5 problems

Zencart V2.6 & php5 problems

Locked

Views: 2,771

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
25 Oct 2007, 4:53 AM
#1
pottsy avatar

pottsy

New Zenner

Join Date:
Jun 2005
Posts:
19
Plugin Contributions:
0

Zencart V2.6 & php5 problems

Hi.

I have ben unable to find a thread that refers to php5 and V2.6 zencart.

I have a site running zencart V2.6 (from the version.php file). Everything was running fine until the server was upgraded to run php5. Since then there are on-going problems.

You are unable to log into admin. When you try you get the login window refreshed with no error.

When you try ot add products to the shopping cart, nothing is updated.

Should V2.6 run with php5? Or should I be looking to update the site to the latest version?

Or is there some setting for php that is likely to be causing this issue?

Many thanks for your help

25 Oct 2007, 5:03 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Zencart V2.6 & php5 problems

There isn't a v2.6 of Zen Cart ... could you peek again, perhaps? :smile:

If that is v1.2.6 then no, you will have an even harder time trying to get that version to run under php v5.x ...

Zen Cart v1.3.7.1 works with php 5.x ...
http://www.zen-cart.com/forum/showthread.php?t=69769

25 Oct 2007, 6:38 AM
#3
pottsy avatar

pottsy

New Zenner

Join Date:
Jun 2005
Posts:
19
Plugin Contributions:
0

Re: Zencart V2.6 & php5 problems

I suspected what you say was the case. Hence my question.

The 2.6 comes from the version.php file on the site. I will look at what I am going to have to do to upgrade.

Thanks for the guidance.

Cheers

25 Oct 2007, 10:41 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Zencart V2.6 & php5 problems

for clarification the Major version is 1 the minor version is 2.6

so you get 1.2.6

28 Oct 2007, 2:49 PM
#5
verdon avatar

verdon

Zen Follower

Join Date:
May 2004
Location:
Northern Ontario, Canada
Posts:
373
Plugin Contributions:
0

Re: Zencart V2.6 & php5 problems

So, there's absolutely no way to patch a 1.2.6 zc to run on php5?

I have been able to find relatively minor search/replaces to get a couple old OSC's and a popular CMS running under php5. Zen-cart remains my last hurdle to drop php4 altogether.

With other apps I've had to tweak to get to run on php5 it's been a bit of work, but not that difficult. Usually a matter of changing things like $HTTP_GET_VARS to $_GET and $this = something(); to something else, and so on. Any tips for trying that sort of thing with an older zen-cart?

28 Oct 2007, 3:19 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Zencart V2.6 & php5 problems

easier to upgrade than to rewrite all of the code

29 Oct 2007, 7:31 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Zencart V2.6 & php5 problems

You really should upgrade rather than continue using old code.
However, with that said, there are probably only very minor issues with using PHP5.
The biggest problem is that most folks using PHP5 are also using MySQL 5 ... which has much bigger incompatibility issues with the v1.2.x code (which was written for PHP4 and MySQL 3.23/4.1).

my last hurdle to drop php4 altogether
Zen Cart v1.2.6 which you mention, was released in August 2005. This is the end of October 2007, more than 2 years later. Probably time to upgrade, esp if your goal is to get past the programs which are, as you say, holding you back to php4.

29 Oct 2007, 8:28 AM
#8
pottsy avatar

pottsy

New Zenner

Join Date:
Jun 2005
Posts:
19
Plugin Contributions:
0

Re: Zencart V2.6 & php5 problems

Yep. Am in the process of upgrading to latest version. Sad, but true, I tend to only go back and upgrade to newer versions when there are issues. Comes from having heaps of sites. Keeping them all up to date becomes a nightmare. Trust me

Many thanks for all your help

29 Oct 2007, 11:53 AM
#9
verdon avatar

verdon

Zen Follower

Join Date:
May 2004
Location:
Northern Ontario, Canada
Posts:
373
Plugin Contributions:
0

Re: Zencart V2.6 & php5 problems

Thanks folks,

I appreciate the input. The decision to upgrade or not, is up to my client(s). These are not my businesses. Yes I host the sites, and yes I installed/themed/customized them in the first place, but, I'm not going to give days of free time to update them :) Even only giving half an hour per client, with 100+ domains on a server, well you do the math.

I have about 4 or 5 older zencarts on the server. I agree they should just be brought to current versions. We'll see what the clients have to say. Sooner or later, they'll have no choice but to update, whether it's to remain on my server, or someone else's.

29 Oct 2007, 12:19 PM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Zencart V2.6 & php5 problems

we anounced back in July that we were upgrading software and that clients need to make sure that their software was upto date,

we announced that this change was taking place on November 1st, and it will go as planned, I think 3 months is enough lead time to give folks,

29 Oct 2007, 12:33 PM
#11
verdon avatar

verdon

Zen Follower

Join Date:
May 2004
Location:
Northern Ontario, Canada
Posts:
373
Plugin Contributions:
0

Re: Zencart V2.6 & php5 problems

Merlinpa1969:

we anounced back in July that we were upgrading software and that clients need to make sure that their software was upto date,

we announced that this change was taking place on November 1st, and it will go as planned, I think 3 months is enough lead time to give folks,That's pretty much what I am doing. I am running php 4/5 concurrently with 4 as default and have been moving clients from 4 to 5 one at a time. For the most part, it's taking me 10-20 minutes per domain to make sure everything is running right. Fortunately, most clients are running 1 of 5 or 6 CMS's and similar web apps, well known to me. Once I identified a few issues and fixes in each, it's been going pretty quick.

Now I'm left with the older zencarts and an ancient cobbling together of old versions of phpwebsite and menalto's gallery. I want to get php 4 off my server altogether by Feb or so, so I can offer a few months notice, now that I know what I'm dealing with.