Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Who's Online - maximum execution time exceeded?

Who's Online - maximum execution time exceeded?

Locked

Views: 1,989

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Apr 2010, 12:16 PM
#1
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Who's Online - maximum execution time exceeded?

New install - just uploaded to server, still under development

ZC 1.3.8.a
HTTP Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Server OS: Linux 2.6.18-164.10.1.el5xen
PHP Version: 5.2.13 (Zend: 2.2.0)
PHP Memory Limit: 32M
Database: MySQL 5.0.89-community-log

I am getting

Fatal error: Maximum execution time of 60 seconds exceeded in /home/MY_ACCOUNT/public_html/MY_ADMIN/whos_online.php on line 410

line 410 of whos_online.php:

if ($session_data[$i] == '{') {

Page eventually loads, showing green indicator next to my IP - should be red (normally indicates that cart is full - not the case when I'm testing).

This has been occurring since upload to server 3 days ago.

Anything else loads just fine and pronto. Added and configured some 100 products today without any delays or errors.

Running 2 other installs (1 x 1.3.7.1 and 1 x 1.3.8.a) on same host without a single problem.

Can't make any head or tail out of this. Is this a server or ZC issue?

Thanks / Frank

18 Apr 2010, 12:20 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Who's Online - maximum execution time exceeded?

Just saw DrByte's pointer to this post http://www.zen-cart.com/forum/showpost.php?p=507685

Confused me even more :wacko:

18 Apr 2010, 12:55 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Who's Online - maximum execution time exceeded?

Have you tested 1.3.9-beta for the same thing?

18 Apr 2010, 1:03 PM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Who's Online - maximum execution time exceeded?

DrByte:

Have you tested 1.3.9-beta for the same thing?

No, DrByte, I haven't installed and tested 1.3.9BETA as yet (under time pressure to get this job finished :wacko:)

Interesting indeed:

I put this line just before 409 in admin/whos_online.php (as per other post - can't find the post now ....)

settype($start_cart,"integer");

reloaded and bingo: loaded in a flash with no error msg but still getting the green light (got nothing in the cart though)

Time to hit the deck ... tomorrow is another day to worry about this and maybe read some comments

As an aside: has this issue actually been looked at in 1.3.9BETA considering there are quite a few posts on the forums?

Frank

18 Apr 2010, 5:14 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Who's Online - maximum execution time exceeded?

There were changes in 1.3.9 to deal with that matter, hence my inquiry as to whether you've tested the new code to see whether the problem is resolved by it for your particular case.

18 Apr 2010, 10:45 PM
#6
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Who's Online - maximum execution time exceeded?

DrByte:

There were changes in 1.3.9 to deal with that matter, hence my inquiry as to whether you've tested the new code to see whether the problem is resolved by it for your particular case.

New day, new challenges: just noted the thread (now under [Done v1.3.9]) at http://www.zen-cart.com/forum/showthread.php?t=88301

I'll pay special attention to this when I'm eventually getting to install and test 1.3.9beta.

Still getting the green 'Active cart' even when cart is empty. After placing something into cart, this remains (as it should) but no cart content shows on the right.

19 Apr 2010, 2:47 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Who's Online - maximum execution time exceeded?

First, check that you are storing your sessions to the database ...

19 Apr 2010, 3:29 AM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Who's Online - maximum execution time exceeded?

Ajeh:

First, check that you are storing your sessions to the database ...

Thanks Linda - store sessions were configured as

/home/MY_ACCOUNT/public_html/cache

(that's the setting I am using in my other 1.3.8.a install, works perfectly)

Removed that entry and checked configure.php files and both are reading

define('STORE_SESSIONS', 'db');

Theoretically sessions should store to DB, especially since the live configure.php files were created when I did the install on the live server. They were not overwritten when I transferred my local file system to the server.

Might have hardened PHP installed (suhosin), need to contact my host and see if that's the case. If so, might try to disable it in the php.ini file or get them to disable it.

If that's the only glitch in transferring files and database from the local machine to the life server then I should be happy.

Frank

19 Apr 2010, 3:52 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Who's Online - maximum execution time exceeded?

Go to Admin->Tools->Server Info ... and search that screen for "suhosin" to see if it's enabled or not.

19 Apr 2010, 5:48 AM
#10
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Who's Online - maximum execution time exceeded?

DrByte:

Go to Admin->Tools->Server Info ... and search that screen for "suhosin" to see if it's enabled or not.

Thanks DrByte - Yep, it is enabled:

This server is protected with the Suhosin Extension 0.9.29

Copyright (c) 2006-2007 Hardened-PHP Project

If the only negative effect of suhosin enabled is that the shopping cart cannot be seen in who's online then I won't be bothered contacting my host.

If, however, it should have an effect on operational matters then it needs to be fixed before we launch.:yes: