lat9 / product_pagination

Zen Cart: Product Pagination
GNU General Public License v2.0
1 stars 1 forks source link

php notices for undefined index and property in observer #23

Closed torvista closed 4 years ago

torvista commented 4 years ago

This is on a ZC156, development copy/not vanilla.

1 products_pagination_observer->getPreviousProductInfo() called at [...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php:40]

2 require(...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php:18]

3 require(...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php:41]

4 require(...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php) called at [...tienda/includes/modules/pages/product_info/main_template_vars.php:223]

5 require(...tienda/includes/modules/pages/product_info/main_template_vars.php) called at [...tienda/includes/templates/motorvista5/common/tpl_main_page.php:175]

6 require(...tienda/includes/templates/motorvista5/common/tpl_main_page.php) called at [...tienda/index.php:97]

--> PHP Notice: Undefined property: products_pagination_observer::$previous_product in ...tienda\includes\classes\observers\class.products_pagination_observer.php on line 214.

1 products_pagination_observer->getProductInfo() called at [...tienda/includes/classes/observers/class.products_pagination_observer.php:214]

2 products_pagination_observer->getPreviousProductInfo() called at [...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php:40]

3 require(...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php:18]

4 require(...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php:41]

5 require(...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php) called at [...tienda/includes/modules/pages/product_info/main_template_vars.php:223]

6 require(...tienda/includes/modules/pages/product_info/main_template_vars.php) called at [...tienda/includes/templates/motorvista5/common/tpl_main_page.php:175]

7 require(...tienda/includes/templates/motorvista5/common/tpl_main_page.php) called at [...tienda/index.php:97]

--> PHP Notice: Undefined index: in ...tienda\includes\classes\observers\class.products_pagination_observer.php on line 219.

1 products_pagination_observer->getProductInfo() called at [...tienda/includes/classes/observers/class.products_pagination_observer.php:214]

2 products_pagination_observer->getPreviousProductInfo() called at [...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php:40]

3 require(...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php:18]

4 require(...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php:41]

5 require(...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php) called at [...tienda/includes/modules/pages/product_info/main_template_vars.php:223]

6 require(...tienda/includes/modules/pages/product_info/main_template_vars.php) called at [...tienda/includes/templates/motorvista5/common/tpl_main_page.php:175]

7 require(...tienda/includes/templates/motorvista5/common/tpl_main_page.php) called at [...tienda/index.php:97]

--> PHP Notice: Undefined index: in ...tienda\includes\classes\observers\class.products_pagination_observer.php on line 220.

1 products_pagination_observer->getNextProductInfo() called at [...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php:102]

2 require(...tienda/includes/templates/template_default/templates/tpl_pp_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php:18]

3 require(...tienda/includes/templates/motorvista5/templates/tpl_products_next_previous.php) called at [...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php:41]

4 require(...tienda/includes/templates/motorvista5/templates/tpl_product_info_display.php) called at [...tienda/includes/modules/pages/product_info/main_template_vars.php:223]

5 require(...tienda/includes/modules/pages/product_info/main_template_vars.php) called at [...tienda/includes/templates/motorvista5/common/tpl_main_page.php:175]

6 require(...tienda/includes/templates/motorvista5/common/tpl_main_page.php) called at [...tienda/index.php:97]

--> PHP Notice: Undefined property: products_pagination_observer::$next_product in ...tienda\includes\classes\observers\class.products_pagination_observer.php on line 225.