Tagged: wordpress-plugin

Can not login due to “Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” in WordPress multisite

Problem: try to log in a subdomain WordPress multisite website and receive below error message:

ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

Solution: install Setup WordPress Multisite Domain Mapping

and in case you are using Cloudflare, try to add a page rule in Page Rules page:

*.domain.com/wp-*

Disable Security : Security is disabled
Browser Integrity Check : Off

ref: https://wordpress.stackexchange.com/a/331995, https://enterpr1se.info/2014/07/how-to-speed-up-wordpress/7/

Require FTP login when installing WordPress plugins

Problem: when trying to install a plugin via whether manually upload or WordPress plugin page. There is a pop-up box that requires you to fill FTP username and password.

If people do not know their FTP login username and password, they never able to install wp plugin 🙁

Solution: In wp-config.php , add below line at the end of the file

define('FS_METHOD', 'direct' );

to force WordPress to write files directly. And you may also need to change the permission in wp-content and wp-includes

For the risk of adding FS_METHOD DIRECT please check out this post.

WordPress plugin install/update: Could not create directory

Problem: Try to install or update a plugin in WordPress by upload file or install package in WordPress. The user got this error: Could not create directory. (path) or An error occurred while updating (package): Could not create directory

Solution: Enter command in your porject: chown -R www-data:www-data wp-content