wordpress theme install failing

Problem was, that the FTP user does not equal the Apache / webserver user. I just had to (recursively) own the wordpress directory /var/www for the www-data/webserver user: sudo chown -R www-data:www-data /var/www Please refer to this link for further info about the owner of a directory.

Reseting file permissions

In this context /path/to/site means the absolute path to the root of the content directory of the website. You can find this by navigating to the directory where you installed wordpress and running the command pwd (assuming you are on linux). That will output the path you are looking for. By default in many linux/apache … Read more

How to prevent plugins from being uninstalled

Yes, you can use the same filter, just remove the delete key of the $actions array. If you want to remove the “delete” link for the plugin “myplugin”, you’d go for something like this: add_filter(“plugin_action_links”, function($actions, $plugin_file, $plugin_data, $context) { if($plugin_file == “myplugin/myplugin.php”) { unset($actions[“delete”]); } return $actions; }, 10, 4); Obviously, you cannot put … Read more

Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?

If you originally installed via FTP/Cpanel/CLI the directory and files may have a different “owner” belonging to “different group” than those installed via WordPress. One possible solution: If you have server access try deactivating Guttenberg and rename its plugin directory to something else. Then reinstall the plugin through WordPress – if this works your Dashboard … Read more

No user found when using REST API

This is happening because you are not using nonces. Because you have not provided a nonce with the request, WordPress is treating you as if you are an unauthorized/non-logged in user. This is because wordpress has no way of knowing/validating the users state. To get this working, you will have to generate a nonce like … Read more

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