Problems with command line wp mainwp

I am testing the command line and the first one I tested from here:

wp mainwp sites --all-sites

Does not work:

PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in wp-content/plugins/mainwp/class/class-mainwp-wp-cli-handle.php:1704

I think the docs will need some update and testing to make sure the commands are working.
Has anyone an updated list of commands?

Thanks

Hi @wpherc,

Can you try this version:

When I run this command I get “Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.”

MainWP version 4.1.11

Hi Christophe,

Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?

Ok, done system report included

Thanks, we received the ticket and I sent you another update. For just in case, I am attaching the update here too:

This update fixed the issue. Thanks!

1 Like

Fix will be included in the next official update too.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.