Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Upgrade from 1.58 to 2.1 product posting or editing issues

    zen cart 2.1 from 1.58

    php 8.0

    When trying to edit a product or posting a new one, I only get the following fields, all the rest have vanished. The screen is blank after the tax class pulldown. Any ideas?

    Example:

    Name:  product_issue.jpg
Views: 32
Size:  15.6 KB

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

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    You have a partial blank page. Check the logs folder to see the error log.
    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 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    Error log:
    **** = admin Dir


    [25-Apr-2025 16:56:25 UTC] Request URI: /****/index.php?cmd=product&cPath=1&product_type=1&pID=260&action=new_product, IP address: **.***.132.213, Language id 1
    #1 require_once(/home/spiceshopuk/public_html/****/includes/init_includes/init_facebook_like_button_config.php) called at [/home/spiceshopuk/public_html/includes/autoload_func.php:40]
    #2 require(/home/spiceshopuk/public_html/includes/autoload_func.php) called at [/home/spiceshopuk/public_html/****/includes/application_top.php:40]
    #3 require(/home/spiceshopuk/public_html/****/includes/application_top.php) called at [/home/spiceshopuk/public_html/****/product.php:8]
    #4 require(/home/spiceshopuk/public_html/****/product.php) called at [/home/spiceshopuk/public_html/****/index.php:16]
    --> PHP Warning: Undefined array key "gID" in /home/spiceshopuk/public_html/****/includes/init_includes/init_facebook_like_button_config.php on line 72.

    [25-Apr-2025 16:56:25 UTC] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php:263
    Stack trace:
    #0 /home/spiceshopuk/public_html/****/product.php(114): require()
    #1 /home/spiceshopuk/public_html/****/index.php(16): require('/home/spiceshop...')
    #2 {main}
    thrown in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php on line 263

    [25-Apr-2025 16:56:25 UTC] Request URI: /****/index.php?cmd=product&cPath=1&product_type=1&pID=260&action=new_product, IP address: 86.148.132.213
    --> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php:263
    Stack trace:
    #0 /home/spiceshopuk/public_html/****/product.php(114): require()
    #1 /home/spiceshopuk/public_html/****/index.php(16): require('/home/spiceshop...')
    #2 {main}
    thrown in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php on line 263.

    [25-Apr-2025 16:56:25 UTC] Request URI: /****/index.php?cmd=product&cPath=1&product_type=1&pID=260&action=new_product, IP address: 86.148.132.213
    --> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php:263
    Stack trace:
    #0 /home/spiceshopuk/public_html/****/product.php(114): require()
    #1 /home/spiceshopuk/public_html/****/index.php(16): require('/home/spiceshop...')
    #2 {main}
    thrown in /home/spiceshopuk/public_html/****/includes/modules/product/collect_info.php on line 263.

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

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    This file:

    includes/modules/product/collect_info.php

    is not part of Zen Cart 2.1.0. If you want to include it, you must base your changes on the 2.1.0 copy of includes/modules/collect_info.php, not an older copy of includes/modules/product/collect_info.php (like from 1.5.8).

    See the third to last bullet point here:
    https://docs.zen-cart.com/user/upgra.../#zen-cart-20x
    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 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    Sorry do not understand i have the 2.1.0 copy of includes/modules/collect_info.php included but still does not let me see the other fields or am i misunderstanding

  6. #6
    Join Date
    Apr 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    Ahh seem to have sorted by deleting the file in includes/modules/product/collect_info.php.

    Are there any other files that need the same actions done to them?

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,338
    Plugin Contributions
    94

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    Quote Originally Posted by curryman View Post
    Ahh seem to have sorted by deleting the file in includes/modules/product/collect_info.php.

    Are there any other files that need the same actions done to them?
    There are many, many files that were changed and (more importantly) removed in the transition from ZC 1.5.8 to ZC 2.1.0. You'll need to use a file-comparison program (like WinMerge or Beyond Compare) to weed out those differences.

    Besides a bunch of classes that are no longer used, there were considerable changes (including removals and additions) made to the admin/includes/modules subdirectory's files.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,289
    Plugin Contributions
    125

    Default Re: Upgrade from 1.58 to 2.1 product posting or editing issues

    See

    admin/includes/modules/product/WHERE_DID_ALL_THE_FILES_GO.txt
    and
    admin/includes/modules/HOW_OVERRIDES_WORK_HERE.txt

    for more details.
    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.

 

 

Similar Threads

  1. v138a Upgrade issues from 1.3.8a to 1.5.1
    By BigJ in forum General Questions
    Replies: 7
    Last Post: 24 Sep 2013, 02:03 AM
  2. v151 One Field from Product Info Not Posting to Database
    By kamelion0927 in forum General Questions
    Replies: 5
    Last Post: 17 Aug 2013, 09:57 AM
  3. Upgrade from 1.3.0.1 to 1.3.8a - Issues
    By TCarter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 10
    Last Post: 28 Jun 2010, 01:44 PM
  4. MySQL upgrade from 4 to 5 Issues
    By dharma in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 15 Nov 2009, 05:30 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