• Hi,

    If I change a setting in WordPress (for example, the number of posts per page to display in ‘Screen Options’ or anything in ‘Settings > General’) I get a 404. Hitting ‘back’ and reloading the page will show that the setting change has been saved.

    The reason the 404 is returned is because the submission drops part of the URL. Example:
    Navigate to…
    https://example.com/blog/wp-admin/options-general.php
    Hit submit and…
    https://example.com/wp-admin/options-general.php?settings-updated=true

    Notice, ‘blog’ has been dropped from the URL. The domain is set up as ‘example.com/blog’ in the settings. Is there something else I need to do to get WP to keep the ‘blog’ folder when making changes in admin?

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install and activate “Health Check”: https://ww.wp.xz.cn/plugins/health-check/
    It will add some additional feature under create a new menu position Tools > Site Health.
    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.
    There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.ww.wp.xz.cn/support/handbook/appendix/troubleshooting-using-the-health-check/

    Thread Starter williamdoc

    (@williamdoc)

    Thanks t-p for taking the time to post. I have tried the troubleshooting mode (all plugins off, default theme) and the problem still persists. I also tried disabling them one at a time too but that didn’t yield a positive result either.

    At present, only changes to settings (form submissions or links to URL’s with parameters) produces the 404 error. I had thought these submissions and URL’s would be relative but they appear to be absolute (and dropping the folder ‘blog’ from the path).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘404 when changing a setting.’ is closed to new replies.