J2store deprecated issues
Opened this issue · 2 comments
This issue is related to the old J2Store component, and I am still facing the problem with the new J2Commerce package. I have a fresh installation of Joomla 5.2 and J2Cart, and the issue is occurring in the backend (http://localhost/build/demo/administrator/index.php?option=com_j2store)
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /Users/dev/Sites/build/demo/libraries/f0f/database/driver/joomla.php on line 258
Front-end (http://localhost/build/demo/index.php/shop):
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/dev/Sites/build/demo/libraries/vendor/joomla/filter/src/InputFilter.php on line 217
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/dev/Sites/build/demo/components/com_j2store/controllers/products.php on line 235
Thank you
Thank you @tonamphong for reporting those issues.
For information, we are working on deprecated code in J2Store, so feel free to keep reporting those messages whenever you find any (basically, whenever you have j2Store in the path, it's ours to modify).
The deprecated code in the Joomla core should be reported at https://github.com/joomla/joomla-cms/issues. Hopefully there aren't too many left at this stage.
Deprecated code found in the f0f library won't be modified. It's a third-party library that is no longer supported and we are planning on getting rid of it (whenever f0f is in the path of the deprecated message, it will stay until we completely remove the library).
Deprecated messages are not error or warning messages, the functionality of J2Store is not affected by them. It mostly depends on which version of PHP you are running your Joomla instance.
Also please note that deprecated notices will not be displayed if you set joomla to not display errors in the global configuration