Zen Cart Logo
Forums / General Questions / 1.2.7 and PHP5

1.2.7 and PHP5

Locked

Views: 2,829

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
12 Dec 2007, 12:54 AM
#1
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

1.2.7 and PHP5

I have two sites on 1.2.7 that the customers can't afford to upgrade.

I had to install that fix recently for MySQL 5 and everything seemed fine.

But this week my server was just upgraded to PHP5 and now my sites don't work again. It seems that anything that requires returning data to the store doesn't work. Can't log in-admin or user. Can't add things to cart. Just returns a screen "your shopping cart is empty".

What to do?

Thanks much!

12 Dec 2007, 12:58 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: 1.2.7 and PHP5

to be able to access the admin replace the includes/functions/sessions.php with one from 1.3.7

but thats just a bandaid to get you into the site it will still not work beyond getting into the admin

if your on php5 then you will need to upgrade remember php4 is dead at the end of this month ( dead I mean End of Life )

12 Dec 2007, 1:01 AM
#3
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

Thanks Merlin. I didn't know that about PHP4.

I guess my schedule just changed for the next few weeks! Ouch!

12 Dec 2007, 1:07 AM
#4
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

Bugger. I get "illegal access" when I replace that file.

Can you tell me if I do a manual db dump from PHPMyAdmin, what settings do I need to have it on so I get a file that is easily loaded back in after upgrade?

12 Dec 2007, 1:27 AM
#5
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

Specifically these settings. Should any of them be checked?

Structure
Add DROP TABLE / DROP VIEW
Add IF NOT EXISTS
Add AUTO_INCREMENT value
Enclose table and field names with backquotes
Add CREATE PROCEDURE / FUNCTION

12 Dec 2007, 2:29 AM
#6
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

Well of course I can't get the database loaded in the new version without a ton of errors and failure.

I'm screwed and not knowledgeable about database stuff to troubleshoot. I installed 1.3.7 in a new directory and followed the upgrade instructions but get zillions of database errors.

:cry:

12 Dec 2007, 3:16 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: 1.2.7 and PHP5

Merlinpa1969:

to be able to access the admin replace the includes/functions/sessions.php with one from 1.3.7

Kayla:

Bugger. I get "illegal access" when I replace that file.

If you're using v1.3 files on v1.2.x, you'll have to comment-out these lines from the top of the file ... otherwise the built-in security will block you:```
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

23 Dec 2007, 12:58 AM
#8
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

So I successfully upgraded one site and am working on the other, and after uploading that sessions.php file the site works just fine as-is in 1.2.7.

Can someone please explain this to me? From what Merlin said it sounded like there was no option or hope but to change to 1.3.8 asap since my server is now on PHP 5. But if that is not the case, it will certainly save me a helluva lotta time and grief for the timebeing, as I was looking at a complete redesign and overhaul of the site in question anyway, and if it seems to now be working do I really need to upgrade or will the bandaid fall off? :blink:

23 Dec 2007, 2:53 AM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: 1.2.7 and PHP5

try clicking through the categories and products,
the sessions fix just lets you login

23 Dec 2007, 3:05 AM
#10
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

I got through checkout with the test cc 41111 xxxx.. etc. received a decline, just like normal

23 Dec 2007, 3:55 AM
#11
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: 1.2.7 and PHP5

Ok they just upgraded php thy didnt upgrade mysql,

weird that they didnt do both

23 Dec 2007, 5:09 AM
#12
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

They upgraded MySQL quite awhile back to 5.

We currently have

Server OS: Linux 2.4.21-47.0.1.ELsmp
Database: MySQL 5.0.45
PHP Version: 5.2.4 (Zend: 2.2.0)

23 Dec 2007, 5:41 AM
#13
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: 1.2.7 and PHP5

I have no idea then how its working
1.2.x will NOT work with these, its a miracle,

23 Dec 2007, 5:45 AM
#14
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

LOL! A Christmas Miracle then! I need it!!

:wink:

23 Dec 2007, 5:54 AM
#15
kayla avatar

kayla

Zen Follower

Join Date:
Mar 2005
Posts:
186
Plugin Contributions:
0

Re: 1.2.7 and PHP5

For the development team's info, if it helps, this was one of the first sites I did several years ago and I did not yet fully grasp the override concept, and most of the mods I did were to the classic/default template and base files themselves. I wonder if that has something to do with it as another site, same version, same hosting company I did not have the same luck with it still working, and I had done it about a year later and properly used the overrides.

The site I'm talking about is the second in my signature if anybody wants to play around. I was able to successfully change my account settings and do several transactions this afternoon and it's working perfectly again with just the sessions.php change!