Articles in this section

Unable to log in to the WP Admin dashboard by using WP Toolkit: JSON: Illegal Token

ext: wptk

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to log in to the WP Admin dashboard by using WP Toolkit at Domains > example.com > WordPress tab > Log In button:

    PLESK_ERROR: An error has occurred when decoding JSON by Zend_Json: Illegal Token

  • Same error is displayed in during the following operations as well:
    Domains > example.com > WordPress > Updates > Check for updates
    Domains > example.com > WordPress > Clone
  • The following log is found in at /var/log/plesk/panel.log with Debug enabled:

    CONFIG_TEXT: DEBUG [util_exec] Finished in 0.6062s, Error code: 0, stdout: "https://www.example.com/wp-login.php"
    PHP: [notice X 0][/var/www/vhosts/example.com/httpdocs/wp-content/plugins/elementor-pro/modules/loop-builder/module.php::200] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated [array (
    'trace' => '
    0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]

    CONFIG_TEXT: [extension/wp-toolkit] An error has occurred when decoding JSON by json_decode: Syntax error
    JSON: "https://example.com/wp-login.php"
    PHP: 2023-09-19 13:36:23 [notice X 0][/var/www/vhosts/example.com/httpdocs/wp-content/plugins/elementor-pro/core/editor/editor.php::118] Using ${var} in strings is deprecated, use {$var} instead [array (
    'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]

  • Logging into WordPress Admin Dashboard is working as expected using the native WordPress login functionality, e.g. https://example.com/wp-admin
  • Website is using PHP 8.x version

Cause

Elementor plugin bug.

Resolution

Contact Elementor plugin Support to address this issue.

While the issue is not fixed by the vendor, switch the website to an older PHP version (e.g PHP 7.x).

Was this article helpful?

Comments

2 comments
Date Votes
  • It appears that this issue has resurfaced... 

    Another workaround is to go through the subscriptions screen (active list NOT dynamic list, as that is broken as well). 

    Confirmed for newest version of WP, Plesk (on Ubuntu 22.04), and Elementor (v. 3.16.3 and Pro v. 3.16.1 and all 3.15 versions), and PHP 8.2.

    It SEEMS like this issue is Elementor but ALSO is Plesk, since it works using different methods INSIDE Plesk as demoed in this video about the new forcing of Dynamic lists: 

    https://video.getwaas.io/conversations/12ef732d-fb44-59e9-955b-8cb8a9c944bc

    1
  • I can confirm what Unknown User found out. Login in via Active List works fine. So strange!

    0

Please sign in to leave a comment.