Hi @lat9,
Are there any plans to update this plugin for ZC 1.5.8, or will it work 'out of the box'?
Hi @lat9,
Are there any plans to update this plugin for ZC 1.5.8, or will it work 'out of the box'?
I think it does work out of the box, but it does need fettling for php 8.2.
I have it working and have put up a zc158 branch in my Github which includes those changes, apart from template files.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Upload of Product Pagination 2.1.1 is creating a blank screen. Zen-cart version 1.5.7d, PHP Version: 7.4.33 (Zend: 3.4.0). https://test.fantasycostume.com/
I have successfully loaded it into Zen version 1.5.7b without issue. I have read thru the support thread, read thru about Blank Pages, checked my error log which says:
PHP Fatal error: Uncaught Error: Class 'products_pagination_observer' not found in /home/fant8380/store/includes/autoload_func.php:44
Stack trace:
#0 /home/fant8380/store/includes/application_top.php(222): require()
#1 /home/fant8380/store/index.php(25): require('/home/fant8380/...')
#2 {main}
thrown in /home/fant8380/store/includes/autoload_func.php on line 44
[19-Jan-2023 21:41:34 UTC] Request URI: /hollywood-star-wigs, IP address: 73.164.137.147
--> PHP Fatal error: Uncaught Error: Class 'products_pagination_observer' not found in /home/fant8380/store/includes/autoload_func.php:44
Stack trace:
#0 /home/fant8380/store/includes/application_top.php(222): require()
#1 /home/fant8380/store/index.php(25): require('/home/fant8380/...')
#2 {main}
thrown in /home/fant8380/store/includes/autoload_func.php on line 44.
I have checked to make sure that I have removed all of the Product Pagination Mod files.
Please help! I have taken over an upgrade with little or no knowledge. I know I must be missing something.
I'm seeing multiple logs when testing your GitHub version on 1.5.8a running PHP 8.1.13
Code:PHP Deprecated: Creation of dynamic property products_pagination_observer::$product_names_array is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 14. PHP Deprecated: Creation of dynamic property products_pagination_observer::$product_names_array is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 15. PHP Deprecated: Creation of dynamic property products_pagination_observer::$isTablet is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 29. PHP Deprecated: Creation of dynamic property products_pagination_observer::$isMobile is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 30. PHP Deprecated: Creation of dynamic property products_pagination_observer::$isDesktop is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 31. PHP Deprecated: Creation of dynamic property products_pagination_observer::$isEnabled is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 33. PHP Deprecated: Creation of dynamic property products_pagination_observer::$isEnabledMobile is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 34. PHP Deprecated: Creation of dynamic property products_pagination_observer::$pagePaginationEnabled is deprecated in /home/embondir/public_html/dev/includes/classes/observers/class.products_pagination_observer.php on line 63.
I would expect those errors where the variables were not declared before being used, which is not the case here.
I've quickly compared my production files and updated the Github ZC158 branch, but not with anything I would think is related to these errors.
Are you sure you have the observer from that branch in use?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
v3.0.1 of Products' Pagination is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1199
This version requires a minimum Zen Cart version of 1.5.8 and supports the built-in responsive_classic and the ZCA Bootstrap (v3.6.5 or later) templates.
Note: v3.0.1 corrects an admin installation issue introduced in v3.0.0.
I am seeing the following error log when using version 3.0.1 on ZC 1.5.8a. PHP version 8.1.29
PHP Fatal error: Uncaught Error: Typed property ProductsPaginationObserver::$nextPosition must not be accessed before initialization in /home/dynamicf/public_html/includes/classes/observers/ProductsPaginationObserver.php:291