Forums / General Questions / ZC156c Admin - Unable to edit prducts or add new product

ZC156c Admin - Unable to edit prducts or add new product

Views: 1,551

Results 1 to 4 of 4
14 Oct 2019, 4:57 PM
#1
pecani avatar

pecani

New Zenner

Join Date:
Apr 2011
Posts:
3
Plugin Contributions:
0

ZC156c Admin - Unable to edit prducts or add new product

http://www.healthybird.net
ZCv156c, PHP 7.2.14
Plugins = Stock by Attrributes Combined, Canada Post, recover cart sales

I recently upgraded from 1.5.6a to 1.5.6c. Now I've discovered the following error when attempting to edit a product; or add a new product
Error!
Unable to determine the page link!
Function used:
zen_href_link('', 'cPath=64_165&product_type=1&pID=1380&action=new_product_preview', 'NONSSL')

I can edit product catefories without difficulty
The following debug log error attached

[14-Oct-2019 16:35:52 UTC] Request URI: /catalog/nnnnnnnnnnn/product.php?action=new_product, IP address: 174.116.220.172
#1 trigger_error() called at [/home/healt244/public_html/catalog/nnnnnnnnnnn/includes/functions/html_output.php:16]
#2 zen_href_link() called at [/home/healt244/public_html/catalog/nnnnnnnnnnn/includes/functions/html_output.php:181]
#3 zen_draw_form() called at [/home/healt244/public_html/catalog/nnnnnnnnnnn/includes/modules/product/collect_info.php:246]
#4 require(/home/healt244/public_html/catalog/nnnnnnnnnnn/includes/modules/product/collect_info.php) called at [/home/healt244/public_html/catalog/nnnnnnnnnnn/product.php:101]
--> PHP Fatal error: zen_href_link(, cPath=64_163&action=new_product_preview, NONSSL), unable to determine the page link. in /home/healt244/public_html/catalog/nnnnnnnnnnn/includes/functions/html_output.php on line 16.

Where should I look for the correction?

14 Oct 2019, 6:45 PM
#2
swguy avatar

swguy

Administrator

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

Re: ZC156c Admin - Unable to edit prducts or add new product

This bug was fixed in 1.5.7. In admin/includes/functions/admin_access.php in function zen_get_admin_menu_for_user() around line 837

change

while (!$result->EOF)
{

to

        while (!$result->EOF) {
            if (defined($result->fields['pageName']) && defined($result->fields['main_page'])) {

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.

14 Oct 2019, 6:59 PM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: ZC156c Admin - Unable to edit prducts or add new product

I think you will need to go back and carefully merge the stock by attributes files with core files

~Melanie

15 Oct 2019, 10:29 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: ZC156c Admin - Unable to edit prducts or add new product

Stock by Attributes Combined for ZC 1.5.6 only merges with four admin files and the merges are pretty much only to support display of the customid and potential selection of links to get to the SBA tracking panel.

When was the last time a product was attempted to be modified before the latest upgrade? There were some changes made between 1.5.6a and 1.5.6c that might cause this issue if they were missed. Furthermore an issue if the install/upgrade to ZC 1.5.6a wasn't done.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...