Zen Cart Logo
Forums / Upgrading to 2.x.x / Product Page (admin) not showing correctly plus Undefined Constant error

Product Page (admin) not showing correctly plus Undefined Constant error

Views: 441

Results 1 to 3 of 3
07 Jan 2025, 09:28
#1
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Product Page (admin) not showing correctly plus Undefined Constant error

Hi there,

I upgraded from ZC v1.5.8a to ZC 2.1.0. Using PHP v8.3
Everything seems to have gone smoothly except for when I go to a product page in admin.

I get this;
Attachment 20852

along with the following in the logs folder;

[07-Jan-2025 11:10:20 Africa/Johannesburg] PHP Fatal error:  Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /.../Admin/includes/modules/product/collect_info.php:263
Stack trace:
#0 /.../Q2aW3/product.php(114): require()
#1 /.../Q2aW3/index.php(16): require('/usr/www/users/...')
#2 {main}
  thrown in /.../Admin/includes/modules/product/collect_info.php on line 263

[07-Jan-2025 11:10:20 Africa/Johannesburg] Request URI: /Admin/index.php?cmd=product&cPath=2&product_type=1&pID=2&action=new_product, IP address: 156.155.132.51
--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /.../Admin/includes/modules/product/collect_info.php:263
Stack trace:
#0 /.../Admin/product.php(114): require()
#1 /.../Admin/index.php(16): require('/usr/www/users/...')
#2 {main}
  thrown in /.../Admin/includes/modules/product/collect_info.php on line 263.

[07-Jan-2025 11:10:20 Africa/Johannesburg] Request URI: /Admin/index.php?cmd=product&cPath=2&product_type=1&pID=2&action=new_product, IP address: 156.155.132.51
--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_PRICE_NET" in /.../Admin/includes/modules/product/collect_info.php:263
Stack trace:
#0 /.../Admin/product.php(114): require()
#1 /.../Admin/index.php(16): require('/usr/www/users/...')
#2 {main}
  thrown in /.../Admin/includes/modules/product/collect_info.php on line 263.
07 Jan 2025, 09:39
#2
swguy avatar

swguy

Administrator

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

Re: Product Page (admin) not showing correctly plus Undefined Constant error

The files under admin/includes/modules/product/ were removed in this release. If you still have files in this folder, they were likely mistakenly carried over from before.

Note that the best practice for doing an upgrade is starting fresh, not just copying the update files on top of your existing files.

07 Jan 2025, 09:49
#3
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: Product Page (admin) not showing correctly plus Undefined Constant error

Thank you for the quick reply!

Removed the files and it is working perfectly.
Thanks for the heads up and reminder, I usually do a winmerge comparison on everything as well as reading all the release notes but brain is still on holiday mode.

Will be more careful in future, appreciate the help.