If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Database inserting into upgrade

Database inserting into upgrade

Started by philibel on 23 Feb 2013, 11:22 AM · Views: 1,352

Results 1 to 3 of 3
23 Feb 2013, 11:22 AM
#1
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Post #1 by philibel

Yesterday I got this message on my admin-page:
Deprecated: Function ereg() is deprecated in /var/www/vhosts/xxxxx.xx/httpdocs/includes/classes/db/mysql/query_factory.php on line 177
The same for line 412
Fatal error: Cannot redeclare date_diff() in /var/www/vhosts/xxxxx.xx/httpdocs/admin(changed name withheld)/includes/functions/general.php on line 3001
I can not get into admin any more.

The host said 1.3.9 should work but there might be 1.3.8 core in it. In 2008 I installed 1.3.9b
So I presume an update to 1.5.1 is the short pain.

But I installed on a separate folder an new 1.5.1 Zen-Cart for safe trying. Uploading the DB did not work. I removed the DB and made it anew. This time while empty without any tables I could upload my old DB.
Then used the "upgrade DB" and got confused.:blink:
The pre-marked options where 1.3.8 to 1.3.9 and 1.3.9 to 1.5.0 and 1.5.0 to 1.5.1
Should I do them separate or all together?
I will have to do things again because admin in the test area can not be reached and shop side it states: TEXT_ADMIN_DOWN_FOR_MAINTENANCE on the top of a reasonable shop look.

Can somebody say if I got the procedure right when I say:
Find changes with Winmerge between original 1.3.9 and shop version 1.3.9
Make these changes to 1.5.1 including add-ons
upload files of changed 1.5.1
use zc_install only for DB update after uploading old DB into blank DB
but in one or more steps? :dontgetit

23 Feb 2013, 3:44 PM
#2
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Post #2 by philibel

Correction: end 2008 it was 1.3.8a and I guess in April 2010 I did some update to 1.3.9a or b
This was possibly in the Admin screen. I don't remember any more.

23 Feb 2013, 9:37 PM
#3
drbyte avatar

drbyte

Sensei

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

Post #3 by drbyte

Philibel:

Yesterday I got this message on my admin-page:
Deprecated: Function ereg() is deprecated in /var/www/vhosts/xxxxx.xx/httpdocs/includes/classes/db/mysql/query_factory.php on line 177
The same for line 412
Fatal error: Cannot redeclare date_diff() in /var/www/vhosts/xxxxx.xx/httpdocs/admin(changed name withheld)/includes/functions/general.php on line 3001Yup: 1.3.8 (circa 2006) is not compatible with contemporary (2013) versions of PHP.

Philibel:

The host said 1.3.9 should work but there might be 1.3.8 core in it. In 2008 I installed 1.3.9b1.3.9h should work. But not if you've got mixed 1.3.8 components in it also.

Philibel:

The pre-marked options where 1.3.8 to 1.3.9 and 1.3.9 to 1.5.0 and 1.5.0 to 1.5.1
Should I do them separate or all together?Either is fine. I usually do them all together nowadays.
Philibel:

I will have to do things again because admin in the test area can not be reached and shop side it states: TEXT_ADMIN_DOWN_FOR_MAINTENANCE on the top of a reasonable shop look.Seems symptomatic of missing PHP files.

Philibel:

Can somebody say if I got the procedure right when I say:
Find changes with Winmerge between original 1.3.9 and shop version 1.3.9
Make these changes to 1.5.1 including add-ons
upload files of changed 1.5.1
use zc_install only for DB update after uploading old DB into blank DB
but in one or more steps?
This is what I do: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

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