Broke wp cli support

Mickaël's Avatar

Mickaël

18 Mar, 2021 06:03 PM

When running wp cli, the following error is triggered

Call to a member function push_script() on null line 44

This is due to that the implicit declaration of global variables doesn't work anymore due to the bootstrap process of wp cli.

Please change line 37 of newroyalslider.php by

$GLOBALS['new_royalSlider'] = new NewRoyalSliderMain(__FILE__);

Thanks

  1. Support Staff 1 Posted by Dmitry Semenov on 20 Mar, 2021 03:33 PM

    Dmitry Semenov's Avatar

    Hello,

    Thanks for the report, I'll investigate.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac