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:
![]()
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:
![]()
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.
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.
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.
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
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.
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.
Bookmarks