Forums / General Questions / Whos_online.php throwing a fatal error all of sudden

Whos_online.php throwing a fatal error all of sudden

Views: 2,565

Results 1 to 9 of 9
5 Feb 2008, 9:17 PM
#1
sassayone avatar

sassayone

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Whos_online.php throwing a fatal error all of sudden

Few different things going on.. I need some help tracking down the problem.

SOME BACKGROUND (although i cant tell you if it actually started after one of these changes, i had been hacked over a week ago and while that issue is resolved, my mind is still on overload.)

I am using version 1.3.7

I did change the name of my admin recently, changed in configure file.. not having any other issues regarding that.

I did just recently install the captcha mod.

PROBLEMS:
Each time there are actual customers on the site and i choose "whos online" from admin.. it hangs for a long time and while it does give me partial information, the cart contents (if any) that i used to be able to see is GONE and i get this error above the info

Fatal error: Maximum execution time of 60 seconds exceeded in /public_html/shop/MY ADMIN NAME/whos_online.php on line 416

the line number changes on the error... sometimes line 410, sometimes 419 etc.

Can someone please help me figure out what got changed, and what i need to do to get it back so i can see cart contents and not have it hang so long?

TIA!
Melissa

6 Feb 2008, 7:13 PM
#2
sassayone avatar

sassayone

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

Now im getting a "500 Internal server error" when i try to click on "who's online"

this only happens if there are actual shoppers, if it is just bots or no one is one, it will bring the page up fine.

anyone please?????

7 Feb 2008, 4:27 AM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

Not knowing how you were hacked or the remedy used, might be best to remove all Zen Cart files and install the current version. You can keep your database as that should be OK.

As to the timeout problems, did they start after the hack episode? If the timeouts were happening before then it could be a Server overloaded situation.

The learning is in the doing.

Potent Products

10 Feb 2008, 4:32 PM
#4
ppruett avatar

ppruett

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

see also thread
http://www.zen-cart.com/forum/showthread.php?t=85765

others are having admin who's online timeouts...

this sounds like possibly a zen-cart php5 issue?

I get it with a 1.3.7 version and 1.3.8a
for admin who's online.

SO it may be the version of mysql and PHP, likely php ?

mysql-server-5.0.51
php5-core-5.2.5p1

10 Feb 2008, 11:25 PM
#5
ppruett avatar

ppruett

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

In the other thread, CJPinder may have spotted it...
http://www.zen-cart.com/forum/showthread.php?p=506074&posted=1#post506074

It may be in an endless for next loop, thus when time expires the actual last line varies a litte.

perhays the $start_cart used to define loop was not an integer?

TRY putting
settype($start_cart,"integer");

before

  for ($i=$start_cart; $i<$length; $i++) {
19 Mar 2010, 2:21 PM
#6
bootyrat avatar

bootyrat

New Zenner

Join Date:
Jun 2006
Location:
Oz
Posts:
31
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

Hi Guys... just thought I would let people know, I had the same problem with new 1.3.8a install on php5.
I tried .htaccess files and php.ini files none worked except the above line of code.
TRY putting
settype($start_cart,"integer");

before

for ($i=$start_cart; $i<$length; $i++) {

Worked great... Thanks

21 Mar 2010, 4:28 PM
#7
snapworks avatar

snapworks

New Zenner

Join Date:
Dec 2008
Posts:
9
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

Dear all,

I encountered similar problem Error 500, therefore added "
settype($start_cart,"integer");" as suggested and it works as in loading the who's online page without error.

However, I encountered another problem as it shows all users having the same ip address and host which is my own ip & host. I no longer able to view where the users are from :-(

Another problem is the info in each cart is no longer showing :frusty:

Anyone facing the same problem? Please help!

TIA

2 Mar 2011, 10:01 PM
#8
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: Whos_online.php throwing a fatal error all of sudden

snapworks:

Dear all,

I encountered similar problem Error 500, therefore added "
settype($start_cart,"integer");" as suggested and it works as in loading the who's online page without error.

However, I encountered another problem as it shows all users having the same ip address and host which is my own ip & host. I no longer able to view where the users are from :-(

Another problem is the info in each cart is no longer showing :frusty:

Anyone facing the same problem? Please help!

TIA

I have same problems . Please tell us how to solve !

2 Mar 2011, 10:12 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Whos_online.php throwing a fatal error all of sudden

Upgrade to the latest version of Zen Cart.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.