Categories

Wednesday, December 25, 2024
#919814419350 therichposts@gmail.com
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

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

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

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