get 404 when accessing wp-admin/plugin-install.php

While freshly installed, I cannot access the 'Add new plugins` page whatsoever. It just keep waiting then redirect me to 404 page of the current theme.

I'm not sure what went wrong as the wordpress is freshly installed. Wordpress version is 4.9.6 I'm using PHP7 for the host.

I tried solutions suggested for similar issues but cannot get it fixed. I also get this message when I'm at the Installed Plugins page

Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/tuva9001/public_html/wp-includes/update.php on line 347

Topic installation 404-error plugin-development updates plugins Wordpress

Category Web


Make sure you don't have the variable 'DISALLOW_FILE_EDIT' set to true somewhere in your installation. Shouldn't be with a fresh install. Most likely in wp-config.php

Try to add this to your wp-config.php define ('DISALLOW_FILE_EDIT', false );

Another thought, do you have the right rwx permissions and ownership? Changing file permissions


I would rename the plugins page (via FTP or your hosting file manager) to disable all plugins and then try to access. You could also rename any non-'twenty' theme folders to disable those, so it would default to one of the 'twenty' themes.

Then look at other files in the site root, sorting by date (newest first) to see if there are some rouge files in there. Also look for same in the wp-* folders. And check your htaccess file.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.