Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

J2store deprecated issues #60

Open
tonamphong opened this issue Nov 3, 2024 · 2 comments
Open

J2store deprecated issues #60

tonamphong opened this issue Nov 3, 2024 · 2 comments

Comments

@tonamphong
Copy link

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

@obuisard
Copy link

obuisard commented Nov 4, 2024

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.

@brianteeman
Copy link

Also please note that deprecated notices will not be displayed if you set joomla to not display errors in the global configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants