Forums / Upgrading to 1.5.x / My ZenCart not compatible on dreamhost php 5.4

My ZenCart not compatible on dreamhost php 5.4

Views: 2,209

Results 1 to 8 of 8
4 Nov 2014, 9:31 PM
#1
deltasoft avatar

deltasoft

New Zenner

Join Date:
Nov 2014
Location:
Florida USA
Posts:
4
Plugin Contributions:
0

My ZenCart not compatible on dreamhost php 5.4

We have just upgraded our Zen Cart store to vs 1.5.3 because dreamhost is updating to php 5.4.
The store was working fine in 1.5.3, but when dreamhost got changed to php 5.4 + CGI, our store was no longer visible. Just a blank screen.

When trying to access our Zen Cart store, we got this message:

Deprecated: Function ereg() is deprecated in /home/deltasoft/targetvet.com/store/includes/classes/db/mysql/query_factory.php on line 177

What can we do to correct this?

4 Nov 2014, 9:34 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: My ZenCart not compatible on dreamhost php 5.4

There are no ereg in Zen Cart v1.5.3 ...

Are you sure you have updated all files and template files to Zen Cart v1.5.3 on your server?

Are you able to get into your Admin at all?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Nov 2014, 9:45 PM
#3
deltasoft avatar

deltasoft

New Zenner

Join Date:
Nov 2014
Location:
Florida USA
Posts:
4
Plugin Contributions:
0

Re: My ZenCart not compatible on dreamhost php 5.4

No, I am not able to get into Admin at all. Just a full page of "Deprecated: Function ereg() is deprecated in /home/deltasoft/targetvet.com/store/includes/classes/db/mysql/query_factory.php on line 177"

over and over down the screen.

4 Nov 2014, 9:49 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: My ZenCart not compatible on dreamhost php 5.4

Perhaps getting something like Beyond Compare from scootersoftware.com this has the ability to compare your local files with the files on your server and is helpful in finding files that are incorrect ...

It is handy also in comparing things like a clean version of Zen Cart with your current files either on your computer or on your server to see if perhaps you missed some updates or files did not load correctly to your server etc.

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Nov 2014, 3:54 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: My ZenCart not compatible on dreamhost php 5.4

deltasoft:

Deprecated: Function ereg() is deprecated in /home/deltasoft/targetvet.com/store/includes/classes/db/mysql/query_factory.php on line 177

What can we do to correct this?
All the ereg functions in query_factory.php were removed many versions ago. Yours is definitely not from ZC v1.5.3. So that tells me you've uploaded PHP files for an older version of Zen Cart. The solution would be to install the current version, instead of the older files.

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

5 Nov 2014, 7:16 PM
#6
deltasoft avatar

deltasoft

New Zenner

Join Date:
Nov 2014
Location:
Florida USA
Posts:
4
Plugin Contributions:
0

Re: My ZenCart not compatible on dreamhost php 5.4

You are right. After comparing the Zen Cart query_factory.php file that was in Zen Cart 1.5.3 folder and the ones on my website, I found that the file was from the original install of 1.3.8a.

Not sure why the files didn't get copied from Zen Cart to my website directory, but I did upload the whole folder to perform the upgrade. I chose upgrade database and when it was finished, there were a few steps that had not be executed. Could that have been why the files weren't copied?

If I had chosen Install instead of Upgrade Database, it warned that my database would be wiped out.

I will upload the new files directly via ftp to the website. Will let you know if it works.

Thank you for helping.!!

5 Nov 2014, 7:43 PM
#7
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: My ZenCart not compatible on dreamhost php 5.4

deltasoft:

... I did upload the whole folder to perform the upgrade. ...
Would strongly recommend rebuilding the site when upgrading from Zen Cart 1.3.8a to Zen Cart 1.5.3 (if you have not already followed this process).

NOTE: When uploading the new version (ZenCart 1.5.3), don't forget to remove any obsolete files present from previous Zen Cart version(s).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

5 Nov 2014, 8:14 PM
#8
deltasoft avatar

deltasoft

New Zenner

Join Date:
Nov 2014
Location:
Florida USA
Posts:
4
Plugin Contributions:
0

Re: My ZenCart not compatible on dreamhost php 5.4

How do I "rebuild" the website.? Won't it wipe out my database?

My admin area says the website is Database Patch Level 1.5.3