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

UndefinedMethodError: Attempted to call an undefined method named "jsonDecode" of class "Tools". #19

Open
unasholding opened this issue May 10, 2023 · 4 comments

Comments

@unasholding
Copy link

unasholding commented May 10, 2023

Hello,

I have installed this module in version 8.0.1 of Prestashop and when entering the configuration the following critical errors are detected:

  1. Uncaught Error: Call to undefined method Tools::jsonDecode(){ "exception": {} }

  2. Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "jsonDecode" of class "Tools"." at /home/clone/public_html/modules/ps_emailsmanager/ps_emailsmanager.php line 847
    {
    "exception": {}
    }

@Ustas23
Copy link

Ustas23 commented May 17, 2023

Same problem.
PS 8.0.4 PHP 8,1

@matks
Copy link

matks commented May 17, 2023

Tools::jsonDecode() function has been removed in PrestaShop 8.0.0 as it had been deprecated in PrestaShop 1.7.0

See https://devdocs.prestashop-project.org/8/modules/core-updates/8.0/#notable-changes

If this module uses Tools::jsonDecode() then is not compatible with PrestaShop 8.0.0

@maofree
Copy link

maofree commented Nov 15, 2023

HI
After several months has it still not been resolved? I saw that there are 3 other modules with the same problem

@ShaiMagal
Copy link

PR here:
#20

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

5 participants