Zen Cart Logo
Forums / Upgrading to 1.5.x / Errors on 1.5.1 to 1.5.7c

Errors on 1.5.1 to 1.5.7c

Views: 1,059

Results 1 to 7 of 7
26 Feb 2022, 12:35 AM
#1
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Errors on 1.5.1 to 1.5.7c

standard load of new 1.5.7c, remove new database, bring in old database, zc_install for upgrade, bombs out every time saying I have 1.5.2 and must perform 1.5.3 first.

I have used all the arrows in my quiver including the date fix and cannot get past this point. database says version is 1.5.3.

What am I missing? Probably something simple as pain meds are wearing off.

[Attachment no longer available]

26 Feb 2022, 10:24 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Errors on 1.5.1 to 1.5.7c

One of the SQL updates didn't work and a subsequent check for it failed.
This is almost always because you have added a date to a table and the date format hasn't been fixed.
There will be upgrade logs in your logs folder that you can review. See also:

https://docs.zen-cart.com/user/upgrading/date_standardization/

https://docs.zen-cart.com/user/upgrading/could_not_upgrade/

27 Feb 2022, 3:36 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Errors on 1.5.1 to 1.5.7c

dbltoe:

I have used all the arrows in my quiver including the date fix and cannot get past this point. database says version is 1.5.3.

And, there are no upgrade logs.:frusty:

27 Feb 2022, 1:48 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Errors on 1.5.1 to 1.5.7c

dbltoe:

And, there are no upgrade logs.:frusty:

Has the admin been accessed after the last attempt to upgrade the database? This code section of the admin deleted some of the logs associated with install: https://github.com/zencart/zencart/blob/70ee017b767cef35affdf980f47b9ec1dee2e8a0/admin/includes/init_includes/init_errors.php#L202-L211

Specifically at: https://github.com/zencart/zencart/blob/70ee017b767cef35affdf980f47b9ec1dee2e8a0/admin/includes/init_includes/init_errors.php#L206

// log cleanup for zc_install "info logs". This still leaves behind any zcInstallDEBUG or zcInstallException log files
  if ($za_dir = @dir(DIR_FS_LOGS)) {
    while ($zv_file = $za_dir->read()) {
      if (preg_match('/^zcInstallLog.*\.log$/', $zv_file)) {
        unlink(DIR_FS_LOGS . '/' . $zv_file);
      }
    }
    $za_dir->close();
    unset($za_dir);
  }

They are deleted relatively quickly after performing the upgrade, once the admin is accessed after performing the upgrade attempt.

I suspect following the second link above from swguy will assist in addressing the issue.

27 Feb 2022, 2:14 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Errors on 1.5.1 to 1.5.7c

The second link points you to the file zc_install/includes/systemChecks.yml.
For 153, that file checks two things: customers.customers_password (makes sure it is varchar(255)) and admin.admin_pass (same check).
Have you modified those fields?

27 Feb 2022, 10:16 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Errors on 1.5.1 to 1.5.7c

I will check. I've inherited an upgrade that has been "adapted" by many in the past.

First time to run into a problem like this.:(

27 Feb 2022, 10:23 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Errors on 1.5.1 to 1.5.7c

customers.customers_password was 40:ohmy:

Got it going now.

THANX