Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47
  1. #21
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    I just reinstalled and generated a valid set of log files. I confirmed that they contained the errors before I sent them. Sorry. Emailed to Dr b and Cindy.

  2. #22
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Quote Originally Posted by badarac View Post
    Code:
    [18-Mar-2016 15:06:35 America/Chicago] MySQL error 1067 encountered during zc_install:
    Invalid default value for 'pwd_last_change_date'
    ALTER TABLE zen_admin MODIFY admin_pass VARCHAR( 255 ) NOT NULL DEFAULT '';
    As an update to the previous SQL I posted, I think the following will work better, since it forces all the schema changes in one statement so the validator doesn't fail due to other column format mismatches, and this also updates existing "bad" data so errors aren't triggered to bad dates already in the table records:
    Code:
    ALTER TABLE admin MODIFY COLUMN pwd_last_change_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_modified datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_login_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_failed_attempt datetime NOT NULL default '0001-01-01 00:00:00';
    UPDATE admin SET pwd_last_change_date='0001-01-01' where pwd_last_change_date < '0001-01-01';
    UPDATE admin SET last_modified='0001-01-01' where last_modified < '0001-01-01';
    UPDATE admin SET last_login_date='0001-01-01' where last_login_date < '0001-01-01';
    UPDATE admin SET last_failed_attempt='0001-01-01' where last_failed_attempt < '0001-01-01';
    This would go into the top of the upgrade SQL files for 151, 153, 155, above any other statements making alterations to the admin table.
    Last edited by DrByte; 21 Mar 2016 at 10:42 PM. Reason: fix missing line-break
    .

    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.

  3. #23
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Quote Originally Posted by DrByte View Post
    As an update to the previous SQL I posted, I think the following will work better, since it forces all the schema changes in one statement so the validator doesn't fail due to other column format mismatches, and this also updates existing "bad" data so errors aren't triggered to bad dates already in the table records:
    Code:
    ALTER TABLE admin MODIFY COLUMN pwd_last_change_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_modified datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_login_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_failed_attempt datetime NOT NULL default '0001-01-01 00:00:00';UPDATE admin SET pwd_last_change_date='0001-01-01' where pwd_last_change_date < '0001-01-01';
    UPDATE admin SET last_modified='0001-01-01' where last_modified < '0001-01-01';
    UPDATE admin SET last_login_date='0001-01-01' where last_login_date < '0001-01-01';
    UPDATE admin SET last_failed_attempt='0001-01-01' where last_failed_attempt < '0001-01-01';
    This would go into the top of the upgrade SQL files for 151, 153, 155, above any other statements making alterations to the admin table.
    The good news is that it's a different error now. I've attached the logs here.
    Attached Files Attached Files

  4. #24
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    MySQL error 1406 encountered during zc_install: Data too long for column 'reason' at row 1
    ALTER TABLE zen_admin MODIFY COLUMN pwd_last_change_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_modified datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_login_date datetime NOT NULL default '0001-01-01 00:00:00', MODIFY COLUMN last_failed_attempt datetime NOT NULL default '0001-01-01 00:00:00';UPDATE admin SET pwd_last_change_date='0001-01-01' where pwd_last_change_date < '0001-01-01';
    1. Why does your "admin" table contain a column named 'reason'?
    2. It appears my post missed a carriage-return before the UPDATE statement tacked onto the end of the long ALTER TABLE statement.
    .

    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. #25
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    A new zip for v155, dated 03-21-2016, was just posted, which includes numerous updates to zc_install, and should address the issues discussed in this thread.
    .

    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. #26
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Quote Originally Posted by DrByte View Post
    A new zip for v155, dated 03-21-2016, was just posted, which includes numerous updates to zc_install, and should address the issues discussed in this thread.
    I downloaded the 3/21 zip and did a clean install in my wamp environment. The clean install went fine. I then imported the 1.5.0 database and started the install again to do the database upgrade. It gives me this message "An existing configure.php file was found. However your database seems to be current. This suggests you are on a live site. Proceeding with Install will wipe out the current database contents! Are you sure you want to install? ". It does not give me the database upgrade option. I checked the project_version and project_version_history in the DB and both say1.5.0.

  7. #27
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    I want to retract that last post. I've done several more clean installs, database imports of 1.5.0, and upgrades. For some reason it is no longer giving me that message. Perhaps there was something left over from some iteration that was causing it. In the most recent installs I deleted all file folders and dropped all tables prior to starting the install. It now goes through the clean install, import of the old db, restart upgrade. It does require an upgrade of the config files even though they are already at 1.5.5 but it does so with no problems. Then upgrade the database and all upgrades complete successfully. No erros or debug logs generated. Thanks all!

  8. #28
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Woot! Thanks Rick. Appreciate your patience and willingness to test.
    .

    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.

  9. #29
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Quote Originally Posted by DrByte View Post
    Woot! Thanks Rick. Appreciate your patience and willingness to test.
    I did the easy part

  10. #30
    Join Date
    Mar 2016
    Location
    San Jose
    Posts
    2
    Plugin Contributions
    0

    Default Re: We detect that you currently have v1.5.2, and must perform the updates to get to.

    Quote Originally Posted by DrByte View Post
    A new zip for v155, dated 03-21-2016, was just posted, which includes numerous updates to zc_install, and should address the issues discussed in this thread.
    FYI - thought I'd mention I had similar problems - saying unable to upgrade to 1.5.3 - as it was stuck at 1.5.2...

    This Thread was helpful tried everything... still didn't work.

    I reviewed the logs/ folder and found very helpful error messages that led me to run these queries:

    ALTER TABLE customers MODIFY COLUMN customers_password datetime NOT NULL default '0001-01-01 00:00:00';
    ALTER TABLE customers MODIFY COLUMN customers_dob datetime NOT NULL default '0001-01-01 00:00:00';

    UPDATE customers set customers_dob = '0001-01-01 00:00:00' where customers_dob = '0000-00-00 00:00:00';
    UPDATE customers set customers_password = '0001-01-01 00:00:00' where customers_password = '0000-00-00 00:00:00';

    As well as I had to delete the duplicate entry into the countries table... and then the upgrade proceeded normally.

    This was a rather old Zen-Cart that has been updated periodically since at least 2009... this latest upgrade where I ran into these problems was 1.5.1 to 1.5.5.

    -Michael

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v150 ERROR: Could not update to version 1.5.4. We detect that you currently have v1.5.2, a
    By rainbow_pixie_star in forum Upgrading to 1.5.x
    Replies: 15
    Last Post: 19 Apr 2016, 02:54 AM
  2. Replies: 2
    Last Post: 10 Jan 2013, 12:00 AM
  3. Whoops! Sorry, but you are not allowed to perform the action requested. You are still
    By buildingblocks in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 5 Nov 2012, 09:52 PM
  4. Replies: 2
    Last Post: 1 Mar 2011, 11:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR