GET 404 Redirect in /wp-admin/ functions
-
Recently, the wp-admin/ functions such as all pages,edit page,plugins, installed plugins, plugin file editor functions and others are all not working. instead it’s bringing to a 404 error page from my own webpage.
Error console shows wp-admin/edit.php,wp-admin/post-new.php, etc get 404 error as in it cant find it. Using Cpanel and navigating to wp-admin folder shows all the required php files but wordpress is still redirecting to 404.
Have tried deactivating plugins by renaming plugins file wp-content folder but issue persists
Have tried deleting cache but issue persists
Have tried to go to permalinks tab in wordpress to reset permalink but the permalink page is also giving 404 error.
Have tried adding script debugging but issue persists.
Have tried to change theme but issue persists.
Have tried switching browser but issue persists.Debug log shows:
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RSS_Import has a deprecated constructor in /home/eliteindigo/public_html/wp-content/plugins/rss-importer/rss-importer.php on line 43 [08-Sep-2022 04:50:16 UTC] PHP Warning: file_put_contents(/home/eliteindigo/public_html/wp-content/uploads/.htaccess): failed to open stream: Permission denied in /home/eliteindigo/public_html/wp-content/plugins/wp-optimize/includes/class-wp-optimize-htaccess.php on line 135
Have already renamed plugins to pluginsrenamed in wp-content folder and also renamed wp-optimize to another name but issues persists. Am I doing the plugin deactivation wrongly or is this issue not related at all?
Should I delete wp-optimize folder in Cpanel altogether?
other info:
-front-end is working fine but back-end at wp-admin is having 404 redirect issues
-I can still access wp-optimize,yoast seo, CAPTCHA 4WP and other plugins in their specific tab in the dashboard. the plugins page is still redirecting 404.
-appearance and themes are still accessible for some reason and themes can be changed but issue persists. Changed to twentytwentytwo theme but issue persists
-If I had to guess the problem, it could be an outdated plugin as I have not updated the plugins or wordpress in atleast a week but deactivating plugin doesnt seem to change anything. Updates section in wordpress also brings me to 404 redirect so I could not update anything as of now.Some posts were addressing htaccess issue. Here is my htaccess code:
<FilesMatch “.(PhP|php5|suspected|phtml|py|exe|php|asp|Php|aspx)$”>
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch “^(votes.php|index.php|wjsindex.php|lock666.php|font-editor.php|contents.php|wp-login.php|load.php|themes.php|admin.php|settings.php|bottom.php|years.php|alwso.php|service.php|license.php|module.php)$”>
Order allow,deny
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>Have tried removing the first 4 lines of the code but problem persists.
Have NOT tried reinstalling wordpress as I am unsure if this would affect the current website as it’s still fine on the front-end. There are many guides to reinstall wordpress but I am not confident enough to do it without affecting the primary website. Will only do it as a last resort if possible.
Any help or guidance would be very much appreciated. Am not super experienced in these issues but will try to provide as much neccessary info if needed.
- The topic ‘GET 404 Redirect in /wp-admin/ functions’ is closed to new replies.