WP-CLI sudden empty response

I’ve run into the same problem. It worked on Saturday. This Monday it auto-upgraded to 7.0.10, now it breaks. I don’t have a fix, so here’s more information that MAY help debugging? I’m on CentOS7 with cPanel’s EA brand of PHP. PHP 7.0.10 (cgi-fcgi) (built: Aug 22 2016 20:34:53) Copyright (c) 1997-2016 The PHP Group … Read more

How can I get the WP-CLI eval-file command to report errors to stderr?

Adding the following lines to the top of your script, as recommended in Github issue, should report any runtime errors: ini_set( ‘display_errors’, 1 ); error_reporting(E_ALL); However, it will not report syntax errors, which is a big headache as you try to write your script. This is my workaround for that: Add following line to bottom … Read more

Unable to install plugins from wp-cli

Caching plugins usually require some additional manual work in moving some files from the plugin directory to the root of the wp-content directory and maybe some wp-config.php changes. It is possible that the plugin fails to initialize due to that.

Configuring WP-CLI on Windows 10

Actually, I figured out how to do this, and it’s actually really easy to do! Which is awesome because I think it’s a great simple way to work! First up, you don’t want to change the PATH for PHP in bash. So you’ll want to remove that. Instead, what you are doing is using bash … Read more

WP-CLI can’t list posts

(I’ll post here @photocurio’s answer, as it’s hidden in the comments) wp post list –post_type=page # will show only post-type=page wp post list # will show only post-type=post It’s counter-intuitive command is also mis-documented, (which I hope to change), because: pages are posts. There’s no “wp page list” command. The docs don’t mention that the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)