Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2019
    Posts
    350
    Plugin Contributions
    0

    Default Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    zc 1.58
    php 8.0
    MySQL 5.7.39

    I just upgraded my datebase from 1.57d to the 1.58. The upgrade process ran smoothly, but I cannot open Admin/Tools/EZ-Pages page. The following log file is generated.

    [20-Oct-2022 14:48:52 America/New_York] Request URI: /admin/index.php?cmd=ezpages&reset_ez_sort_order=1
    #1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:667]
    #2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:634]
    #3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:275]
    #4 queryFactory->Execute() called at [/admin/includes/classes/split_page_results.php:220]
    #5 splitPageResults->numberRows() called at [/admin/includes/classes/split_page_results.php:131]
    #6 splitPageResults->__construct() called at [/admin/ezpages.php:577]
    #7 require(/admin/ezpages.php) called at [/admin/index.php:11]
    --> PHP Fatal error: 1060: Duplicate column name 'pages_title' :: SELECT count(*) as total FROM (SELECT e.*, ec.pages_title, ec.pages_html_text FROM zen_ezpages e INNER JOIN zen_ezpages_content ec ON (e.pages_id=ec.pages_id AND ec.languages_id = 1) ORDER BY e.header_sort_order, ec.pages_title) countresults ==> (as called by) /admin/includes/classes/split_page_results.php on line 220 <== in /includes/classes/db/mysql/query_factory.php on line 667.

    Or

    --> PHP Fatal error: 1060: Duplicate column name 'pages_title' :: SELECT count(*) as total FROM (SELECT e.*, ec.pages_title, ec.pages_html_text FROM zen_ezpages e INNER JOIN zen_ezpages_content ec ON (e.pages_id=ec.pages_id AND ec.languages_id = 1) ORDER BY e.header_sort_order, ec.pages_title) countresults ==> (as called by) /admin/includes/classes/split_page_results.php on line 220 <== in /includes/classes/db/mysql/query_factory.php on line 667.
    Last edited by njcyx; 20 Oct 2022 at 07:55 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    Look at your database in phpMyAdmin, and go to the table ezpages, and see if you have a column called "pages_title".

    (You shouldn't - that column was removed from that table as part of the 1.5.6 upgrade.)
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2019
    Posts
    350
    Plugin Contributions
    0

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    Hi @swguy, thanks for your reply. I just checked my database (both 1.57d and 1.58 databases) and I indeed found "pages_title" column there. Can I remove this column manually?

    It is a test site so I can easily destroy the whole database and start from the old backup. I can try to upgrade my database later after this bug is fixed...

    Thanks for your help again.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    This operation failed in the 156 upgrade and we did it again in 157 but somehow it's failing again (at least in some cases).
    If you just want to keep on testing, then yes, go ahead and do

    ALTER TABLE ezpages DROP pages_title;

    (you may have to do this for the fields pages_html_text and languages_id too).
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Apr 2019
    Posts
    350
    Plugin Contributions
    0

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    Hi @swguy, I just dropped pages_title, pages_html_text and languages_id under table ezpages. It worked perfectly! I can now open the EZ-page! Thanks!

    If you need me to test something else, please let me know.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Apr 2019
    Posts
    350
    Plugin Contributions
    0

    Default Re: Admin/Tools/EZ-Pages cannot open after upgrade from 1.57d to 1.58

    Hi @swguy, thanks for your update again.

    I noted that you mentioned one more change in this link above. I checked my 1.58 database, and I did find column "final_price" under table "customers_basket". I have deleted that column by your provided command.

 

 

Similar Threads

  1. v150 Added More info pages 5,6,7 after upgrade cannot find
    By genxnomad in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 1 Feb 2012, 12:12 PM
  2. Cannot open catalog from admin (or at all)
    By creation in forum General Questions
    Replies: 3
    Last Post: 23 May 2010, 09:20 PM
  3. admin pages partially broken after upgrade from 1.3.6 to 1.3.7
    By Laszlo in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 18 Mar 2007, 03:07 PM
  4. EZ Page link missing from admin>tools after upgrade
    By craftzombie in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 16 Dec 2006, 02:43 AM

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