There has been a critical error on your website

Look at your site (apache2) error.log. If you see access errors (can’t mkdir, can’t rmdir, permission denied), you may be dealing with a permissions problem. the wp-content folder and it’s children/subfolder need to be writable by the web server. Usually (on an ubuntu-apache combination), this requires that you change ownership (via chown) for the whole … Read more

How use get_plugin_updates() function?

Welcome. The function returns an array of all possible updates. Means that you need to specify the plugin that you need to get its information. Sample output of get_plugin_updates call on admin_init: array(1) { [“fast-velocity-minify/fvm.php”]=> object(stdClass)#7844 (14) { [“Name”]=> string(20) “Fast Velocity Minify” [“PluginURI”]=> string(23) “http://fastvelocity.com” [“Version”]=> string(5) “2.7.7” [“Description”]=> string(192) “Improve your speed score … Read more

Bash script to check available updates

WP-CLI and AWK One way is to do the counting of the available string in the third column via AWK: wp plugin list | \ awk ‘BEGIN{N=0;} \ ($3==”available”){N++; print $0;} \ END{print(N>0)?”Plugin updates available: “N:”No plugin updates available”;}’ where N is the number of available updates, in case you need the number, $0 is … Read more

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