Hi
I wonder if anyone have tested latest JBD and JBD extensions with php 8.1.9 (fast-cgi) bcs I get quite many depreciated errors there on my test site.
Have you tested? php 8.1.9 is very fast and working well otherwise..
We have tested JBD on PHP 8.1 and there were no deprecation errors.
hmm thats strange bcs I test this on a WAMP test server and get these results for example this listing view style 7 For php 8.0.13 it works but not for php 8.1 then these deprications messages comes up.. and as posted here before too
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\www\components\com_jbusinessdirectory\include\listings_list_style_7.php on line 26 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0025 | 368464 | {main}( ) | ...\index.php:0 |
2 | 0.0046 | 369824 | require_once( 'C:\wamp64\www\includes\app.php ) | ...\index.php:32 |
3 | 0.2085 | 1897272 | Joomla\CMS\Application\CMSApplication->execute( ) | ...\app.php:61 |
4 | 0.2110 | 2002208 | Joomla\CMS\Application\SiteApplication->doExecute( ) | ...\CMSApplication.php:294 |
5 | 0.8679 | 7878840 | Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ) | ...\SiteApplication.php:241 |
6 | 0.8816 | 7953520 | Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_jbusinessdirectory', $params = ??? ) | ...\SiteApplication.php:200 |
7 | 0.8847 | 8009656 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch( ) | ...\ComponentHelper.php:355 |
8 | 0.8856 | 8011528 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure:C:\wamp64\www\libraries\src\Dispatcher\LegacyComponentDispatcher.php:70-72}( $path = 'C:\\wamp64\\www\\components/com_jbusinessdirectory/jbusinessdirectory.php' ) | ...\LegacyComponentDispatcher.php:73 |
9 | 0.8861 | 8012536 | require_once( 'C:\wamp64\www\components\com_jbusinessdirectory\jbusinessdirectory.php ) | ...\LegacyComponentDispatcher.php:71 |
10 | 0.9597 | 9217288 | Joomla\CMS\MVC\Controller\BaseController->execute( $task = NULL ) | ...\jbusinessdirectory.php:86 |
11 | 0.9597 | 9217288 | JBusinessDirectoryController->display( $cachable = ???, $urlparams = ??? ) | ...\BaseController.php:672 |
12 | 0.9597 | 9217288 | Joomla\CMS\MVC\Controller\BaseController->display( $cachable = FALSE, $urlparams = [] ) | ...\controller.php:23 |
13 | 0.9798 | 9322544 | JBusinessDirectoryViewSearch->display( $tpl = ??? ) | ...\BaseController.php:639 |
14 | 1.1992 | 9775608 | Joomla\CMS\MVC\View\HtmlView->display( $tpl = NULL ) | ...\view.html.php:184 |
15 | 1.2006 | 9843008 | Joomla\CMS\MVC\View\HtmlView->loadTemplate( $tpl = NULL ) | ...\HtmlView.php:203 |
16 | 1.2034 | 9870944 | include( 'C:\wamp64\www\components\com_jbusinessdirectory\views\search\tmpl\default.php ) | ...\HtmlView.php:410 |
17 | 1.7575 | 12072344 | require_once( 'C:\wamp64\www\components\com_jbusinessdirectory\include\listings_list_style_7.php ) | ...\default.php:338 |
18 | 1.7576 | 12072344 | substr( $string = NULL, $offset = 5, $length = 1 ) | ...\listings_list_style_7.php:26 |
We tested it with PHP 8.1.10 and had no issues. Only running the JBD Listing core stuff though, not any events, products, payments etc.....
When we switched there was a depreciation message showing up as we were adding some extra php to our frontent template for an individual listing. But that was totally our own stuff we had added a long time ago.
Also, just tested listing_list_style_7 template out of the box on our test servier and it works with above php version.
For what it's worth and totally speculating: Did you activate Lazy Loading ?
Thks for reply Brave_Heart I have these issues with 8.1.9 (fast-cgi) on a Wamp testing server..so its strange why these comes up..
Did you tested it with php 8.1.10 with Zend Xdebug 3.1.5 develop mode Apache 2.4.54 ? Then you get the real results.. Dont know how it work with reverse proxy with Ngix...
Our setup
PHP Built On | Linux 3.12.18-clouder0 #3 SMP PREEMPT Wed May 25 12:13:20 EEST 2022 x86_64 |
---|---|
Database Type | mysql |
Database Version | 5.7.39-42-log |
Database Collation | utf8mb4_general_ci |
Database Connection Collation | utf8mb4_general_ci |
Database Connection Encryption | None |
Database Server Supports Connection Encryption | Yes |
PHP Version | 8.1.10 |
Web Server | Apache |
WebServer to PHP Interface | cgi-fcgi |
Joomla! Version | Joomla! 4.2.2 Stable [ Uaminifu ] 2-September-2022 20:41 GMT |
Curious if you were seeing the issue on all page types (search, search results, listing).... Sounds like a template specific issue and/or something with the database. We once had an issue with Joomla in general (not JBD) and NULL values in fields after migrating.
Hopefully just some ideas for digging ;-)
Tested with Zend Xdebug 3.1.5 develop mode ?