Deprecated Error in Prioduct edit

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 months 2 weeks ago #162780 by Wynand Louw
Deprecated Error in Prioduct edit was created by Wynand Louw
Get the following error on Eshop Product [Edit]:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/mysite/public_html/libraries/src/HTML/Helpers/Select.php on line 220

When I want to edit a product. 

J5, PHP8.1.26 Eshop  3.8.0
The following user(s) said Thank You: Roman Bublyk

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
4 months 5 days ago #163028 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Deprecated Error in Prioduct edit
Hello Wynand,

Please submit a new ticket to EShop category so I can help you to check.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 months 4 weeks ago #163172 by Wynand Louw
Replied by Wynand Louw on topic Deprecated Error in Prioduct edit
Hello Giang
I had a look at the select.php file on line 220
The Joomla Helper has the following in that line code:

        [$ id = str_replace(', ' '], '', $id);]



It seems that somewhere in the Eshop code there must be a  str_ replace(): Passing null to parameter #3 ($ subject) coding that is causing the problem when you edit a product. It does not happen when you create a new product. 

Using Joomla 5.0.1 and PHP 8.2.13
Not sure if it is Joomla or Eshop.
 

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 months 2 weeks ago #163412 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Deprecated Error in Prioduct edit
Dear Wynand Louw,

I see this and just fixed it. This fix will be included into next version of EShop.

Sincerely, Giang
The following user(s) said Thank You: Wynand Louw

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong