• Resolved dominic_ks

    (@dominic_ks)


    Hello,

    Getting this error when I try and run any WPCLI command with the latest plugin version and latest WordPress version:

    Callable ["WP_Rest_Cache_Plugin\\Includes\\CLI\\Flush_Command","__construct"] does not exist, and cannot be registered as "wp wp-rest-cache flush"

    Not sure why it doesn’t exist as I can see your Flush_Command class extends WP_CLI_Command which definitely does have __construct, maybe it can’t call a parent constructor like this…?

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @dominic_ks

    Thank you for using our plugin!

    Although I did not get the same error as you, I did see the WP CLI command didn’t work correctly anymore. I fixed that and released a new version of our plugin. Could you check if this solves it for you?

    Thread Starter dominic_ks

    (@dominic_ks)

    Hey @rockfire,

    Cheers for that, that seems to have done the trick thanks very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPCLI Error’ is closed to new replies.