Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Function ereg() is deprecated - v1.3.8a

Function ereg() is deprecated - v1.3.8a

Locked

Views: 14,565

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
3 Feb 2010, 8:26 AM
#1
magneod avatar

magneod

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Function ereg() is deprecated - v1.3.8a

Hi!
I have tried to install zen-cart-v1.3.8a-full-files-12112007 on my website running php v 5.3 This was no sukse.

The shop was a blank page while admin folder contained many errors until the Skomer the following errors:

Deprecated: Function ereg() is deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 177



Deprecated: Function ereg() is deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 412

Fatal error: Cannot redeclare date_diff() in /customers/modart.no/modart.no/httpd.www/catalog/admin/includes/functions/general.php on line 3001

Hope you can help me

link netstore:
http://catalog.modart.no/index.php
link netstor admin:
http://catalog.modart.no/admin/index.php

3 Feb 2010, 8:36 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Function ereg() is deprecated - v1.3.8a

Zen Cart does not work properly with PHP 5.3, until you install the patch for this. See PHP 5.3 Support.

Important moderator note:
**UPDATE: IF YOU ARE READING THIS, THEN YOU NEED TO UPGRADE TO A NEWER VERSION OF ZEN CART!!!!!!!

Merely applying the patch is ONLY a temporary bandage, and does not properly secure your site.
And will not protect you for PHP 5.4 if you wait that long.
So UPGRADE NOW!**

4 Feb 2010, 11:21 AM
#3
magneod avatar

magneod

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: Function ereg() is deprecated - v1.3.8a

Hello everyone
Thank you for your help so far!
Have install the update and then admin works properly, but the store is still a blank page.

If anyone has any suggestion to know what to do, I am more than grateful for the help.

4 Feb 2010, 11:34 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Function ereg() is deprecated - v1.3.8a

To locate the cause of the problem, follow the advice in this FAQ entry.

4 Feb 2010, 12:05 PM
#5
magneod avatar

magneod

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: Function ereg() is deprecated - v1.3.8a

Thanks for your help
here is the list of PHP errors that occurred from the error log
I do not know what to do with them

More good suggestions are welcome

[04-Feb-2010 11:43:09] PHP Deprecated: Function ereg() is deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 139
[04-Feb-2010 11:43:09] PHP Deprecated: Function ereg() is deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 150
[04-Feb-2010 11:43:09] PHP Deprecated: Function ereg() is deprecated deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 177
[04-Feb-2010 11:43:09] PHP Deprecated: Function ereg() is deprecated deprecated in /customers/modart.no/modart.no/httpd.www/catalog/includes/classes/db/mysql/query_factory.php on line 412

[04-Feb-2010 11:43:09] PHP Fatal error: Cannot redeclare date_diff() in /customers/modart.no/modart.no/httpd.www/catalog/includes/functions/functions_general.php on line 1476

4 Feb 2010, 4:59 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Function ereg() is deprecated - v1.3.8a

If you are still getting those messages after applying the PHP 5.3 patch, then you didn't apply all the files in the patch to the correct locations.

5 Feb 2010, 4:50 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Function ereg() is deprecated - v1.3.8a

@magneod

If that's from your includes/application_top.php file, it could be your problem. That comes from the file that should be in your zc_install/includes folder.