Zen Cart Logo
Forums / General Questions / Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Locked

Views: 9,674

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Sep 2009, 8:50 PM
#1
dsdavis avatar

dsdavis

New Zenner

Join Date:
Feb 2008
Posts:
22
Plugin Contributions:
0

Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Hello,

We have Zen Cart 1.3.8a installed on a Solaris 10 server (Sparc processor) which has Apache httpd 2.2.13, MySQL 5.1.37 and PHP 5.2.9.

We recently tried upgrading to PHP 5.2.11, but when we do so, we lose the ability to login to the Admin page of Zen Cart. The login page comes up, we enter username and password, click Login, but then the Login page just reloads with blank username and password fields.

If we downgrade to PHP 5.2.9, everything works just fine.

In the apache server log, we see the following:

PHP Fatal error: Class 'queryFactory' not found in /path/to/zen/includes/functions/sessions.php on line 54, referer: http: / /oursite/admin/login.php

Does anyone have any thoughts on what could be causing this or what we need to do to fix it?

We are trying to make our server PCI compliant, and in order to do so, need to be running PHP 5.2.11.

Thanks, in advance.

                 Doug
26 Sep 2009, 11:00 AM
#2
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

i've upgrade locally to php 5.2.11 without any problems.

Are you retaining the same php.ini as your 5.2.9 version when you do the upgrade. ?

27 Sep 2009, 1:47 PM
#3
dsdavis avatar

dsdavis

New Zenner

Join Date:
Feb 2008
Posts:
22
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

I'm not sure, wilt. Someone else (to whom I've sent a link to this thread) is doing the upgrades. Should we be retaining the same php.ini file or not?

27 Sep 2009, 9:25 PM
#4
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

hi,

My only concern was that if a new php.ini had been installed, that it may have had settings changed that affected Zen Carts ability to run correctly, especially changes to any of the ini session settings.

23 Oct 2009, 8:52 PM
#5
lubnah avatar

lubnah

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

dsdavis,

Were you able to fix the issue with php v5.2.11? I'm having the exact same problem (while running CentOS 5.2 on a Slicehost vps), and am not sure how to downgrade php, aside from yum removing it and installing from source (ugh, huge pain, really want to avoid).

24 Nov 2009, 1:24 PM
#6
peanut77 avatar

peanut77

Zen Follower

Join Date:
Feb 2005
Posts:
266
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Hello

I have just had this exact same issue and the hosting compnay have agreed to move the site onto a server running older mysql software.

25 Nov 2009, 1:31 AM
#7
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Bumped into this issue lastnight on upgrade to 5.2.11. On our installation we also upgraded APC to 3.0.19. Disabling APC made the problem go away. The only place affected seemed to be admin sessions, customers could continue to use the store without having a problem. There is a bug filed in APC claiming a known deconstruction problem and a php fix using register_shutdown_function. In the process of downgrading to 5.2.9 to hopefully re-enable APC.

25 Nov 2009, 4:17 AM
#8
cleontech avatar

cleontech

New Zenner

Join Date:
Jul 2008
Location:
Bangalore India
Posts:
14
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

You may want to check this post

http://www.zen-cart.com/forum/showpost.php?p=287587&postcount=26

I had a client who had a similar problem this solved it....... also if they have moved servers you may want to recheck the physical path in the two configue.php and also run this

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_54&products_id=82

delete this file after that.

25 Nov 2009, 7:11 AM
#9
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

As DrByte had noted there is a known technical approach to the problem, the easy fix from 2006 is in 1.3.8. I had originally figured it was due to the heavy modification of the sites so I did a clean install and had the same problem which was when I started digging deeper. It's kind of funny because if you are persistent and try to keep logging in you will eventually get in when the deconstruction takes the route we want it to. I just found that 9/10 times it doesn't. I might be willing to put up with it to get APC running again if I knew it was only in the admin section but then drop downs and other session based tasks are broken as well.
Again, in our server environment this was fixed by disabling APC.

25 Nov 2009, 11:22 AM
#10
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Hi,

you may also want to try this.

In admin/includes/functions/general.php
in the function zen_redirect circa line 29

directly after the line

header('Location: ' . $url);

add

session_write_close();
30 Nov 2009, 2:18 PM
#11
sjgarg avatar

sjgarg

New Zenner

Join Date:
Nov 2007
Location:
Ontario, Canada
Posts:
18
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Wilt's code seems to have worked very well, I was having the same problem and added that code and now it's working.

5 Dec 2009, 9:55 PM
#12
svampola avatar

svampola

New Zenner

Join Date:
Mar 2007
Location:
Serbia, Niš
Posts:
69
Plugin Contributions:
0

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Thanks Wilt, I came across the same problem and your code helped !

27 Feb 2010, 12:38 AM
#13
eentje avatar

eentje

Zen Follower

Join Date:
Jan 2009
Location:
The Netherlands/Germany
Posts:
144
Plugin Contributions:
4

Re: Zen Cart 1.3.8 with PHP 5.2.11 - Problem logging into Admin page.

Just wanting to add that if you have the same problem with logging in on PHP 5.3 the code Wilt provided works also.