
Originally Posted by
lat9
The processing needs update to handle the zc157 "Ask a Question" page's product-id variable; that page uses
pid instead of the more standard
products_id. Seeing logs similar to:
Code:
[03-Feb-2022 11:23:06 America/Los_Angeles] Request URI: /subsite/index.php?main_page=ask_a_question&pid=242, IP address: 127.0.0.1
#1 CeonURIMappingHandler->_handleZCDynamicURI() called at [/home/mysite/public_html/subsite/includes/classes/class.CeonURIMappingHandlerBase.php:472]
#2 CeonURIMappingHandlerBase->_handleURI() called at [/home/mysite/public_html/subsite/includes/classes/class.CeonURIMappingHandlerBase.php:149]
#3 CeonURIMappingHandlerBase->__construct() called at [/home/mysite/public_html/subsite/includes/classes/class.CeonURIMappingHandler.php:52]
#4 CeonURIMappingHandler->__construct() called at [/home/mysite/public_html/subsite/includes/autoload_func.php:44]
#5 require(/home/mysite/public_html/subsite/includes/autoload_func.php) called at [/home/mysite/public_html/subsite/includes/application_top.php:222]
#6 require(/home/mysite/public_html/subsite/includes/application_top.php) called at [/home/mysite/public_html/subsite/index.php:25]
--> PHP Notice: Undefined index: products_id in /home/mysite/public_html/subsite/includes/classes/class.CeonURIMappingHandler.php on line 459.
Suggest updating the fileset installed as I just downloaded the recent copy from Ceon and looking at line 459 of includes/classes/class.CeonURIMappingHandler.php it shows:
Code:
in_array($_GET['main_page'], $ceon_uri_mapping_product_related_pages)) {
This line doesn't reflect information related to the above message. Even if it were still one line off (seeing as the line number identified in my email was different than what is posted above), that line reads:
Code:
$associated_db_id = !empty($_GET['products_id']) ? $_GET['products_id'] : (!empty($_GET['pid']) ? $_GET['pid'] : 0);
Which also wouldn't cause the reported issue.
Bookmarks