Home Prestashop Prestashop Attempted to call an undefined method named “jsonEncode” of class “Tools” – Solved

Prestashop Attempted to call an undefined method named “jsonEncode” of class “Tools” – Solved

by therichpost
0 comments
Prestashop Attempted to call an undefined method named jsonEncode of class Tools - Solved

Hello guys, how are you? Welcome back to my blog. Today in this blog post, I am going to share, Prestashop Attempted to call an undefined method named “jsonEncode” of class “Tools” – Solved.

Guys during upgrading my prestashop store to 8 version I got Attempted to call an undefined method named "jsonEncode" of class "Tools" during Designs -> Positions.

Prestashop Attempted to call an undefined method named jsonEncode of class Tools - Solved
Prestashop Attempted to call an undefined method named jsonEncode of class Tools – Solved

1. Guys I just do the below changes:

In this case the change is simple, Tools::jsonEncode() must be replaced with json_encode(), and Tools::jsonDecode() with json_decode(). These two functions are natively available in PHP.

 

This is it guys. If you will have any kind of query then feel free to comment below.

Thanks

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.