Plugins are essential for WordPress development. By default, we can add new plugin in the WordPress sidebar.

However, I found that the ‘Add new plugin menu’ is missing from my WordPress site.

The plugins can only be clicked as shown in the list of installed plugins. Which means I cannot add new plugins to my site.

To fix this issue, I tried several ways. Firstly, I changed the theme to the default one. But it did not work. Secondly, I tried to deactivate all the plugins and re-active them later. Unfortunately, there was no magic.

Finally, I did some research and found the solution. Go to the file system of the WordPress site, and find the ‘wp-config.php’ file. Usually, it is located in the root install directory. Then, open it and find the very last two lines of code. Which is:

https://williamyuaus.medium.com/media/86dc12f35ac3adeed854b168ebfae879

Just simply change the ‘true’ to ‘false’, and save it. The ‘add new plugin menu’ will be back!

Originally published at https://williamyuaus.com on July 8, 2021.