Forums / General Questions / Shop won't display & can't get into admin

Shop won't display & can't get into admin

Locked

Views: 1,105

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
6 Jan 2010, 5:40 PM
#1
wobble avatar

wobble

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Shop won't display & can't get into admin

HELP! Everything was fine yesterday. Now my store shows a blank page and i can't get into my admin. Have debugged and get this message a couple of hundred times.
PHP Deprecated: Function ereg() is deprecated in /customers/***media.com/***media.com/httpd.www/shop/includes/classes/db/mysql/query_factory.php on line 139
then another two similar lines.
(I have replaced real path with *** for security reasons)
All I have done is moved the shop to a different directory, but everything was fine after i moved it but now it's not.

6 Jan 2010, 8:25 PM
#2
banpei avatar

banpei

New Zenner

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

Re: Shop won't display & can't get into admin

It looks like your hosting environment has been upgraded to PHP 5.3
Starting from PHP 5.3 some functions of PHP have been depricated, including widespread functions like ereg() and split().

Only way to fix this is either adjust the code in that file yourselves or downgrade to PHP 5.2.12

6 Jan 2010, 8:32 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Shop won't display & can't get into admin

PHP 5.3 patch for Zen Cart v1.3.8a: http://www.zen-cart.com/forum/showthread.php?t=140960

.
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.

6 Jan 2010, 9:28 PM
#4
wobble avatar

wobble

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Re: Shop won't display & can't get into admin

worked a treat, many thanks. Would suggest this could be a massive problem as my server upgraded without informing us. They are a very large webserver!

31 Jan 2010, 2:32 PM
#5
jocando avatar

jocando

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: Shop won't display & can't get into admin

Hi

I've just been caught by this problem ("Deprecated: Function ereg() is deprecated") and seen the fix (http://www.zen-cart.com/forum/showthread.php?t=140960)

Trouble is, I don't remember what version of Zen Cart I'm using. (I passed this shop over to a client over a year ago). How can I find out the version if I can't access the admin?

Thanks for your help.

Jo

31 Jan 2010, 2:37 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Shop won't display & can't get into admin

You can peek in the /includes/version.php file to see what version the PHP files are likely at.

.
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.

31 Jan 2010, 6:24 PM
#7
jocando avatar

jocando

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: Shop won't display & can't get into admin

Ah! Thank you.
Looks like it's version 3.8, so the patch should be fine.

Many thanks
Jo