• Resolved Nadjaji

    (@nadjaji)


    Hi,

    Depending on the permalink settings, when I try to add a menu item, I get the error

    Not Found It looks like nothing was found at this location. Maybe try a search? (permalink setting postname, nummeric, day and name, month and name, custom structure)

    Bad Request Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. (permalink setting plain)

    I tried the following:

    change the ht_access file with the following code:

    # BEGIN WordPress

    RewriteEngine On

    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteBase / RewriteRule ^index\.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    # END WordPress

    I de-activated all the plugins, removed obsolete plugins, removed all unused themes, changed theme, installed the site health plugin and tried every possibility. In readings I tried to change the static page and assign a page to posts, which is now turned back in –select–. I emptied the cache. But still the problem persist.

    I work with themes 2014, do not use elementor on this site. So it is all pretty straightforward. On the front end everything looks fine, but on the back end I can not change or add menu items without creating this error. I can create new pages, but can not assign them to the menu.

    If you have any ideas on how to fix this, it will make me a happy guy, because after 10 hours of problem solving trials, I ran out of ideas.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You do not have to adapt the .htaccess file yourself. Delete it and go to Settings > Permalinks in the backend and save it again. WordPress will then recreate the file for you according to the settings there.

    However, I am wondering where exactly you are seeing the error: is it in the backend when you want to create a menu item there under Appearance > Menu or is it in the frontend when you want to call up a page linked via a menu item?

    Thread Starter Nadjaji

    (@nadjaji)

    I see the error in the back end, when I try to save the menu.For example, when I add a menu item or even when I shift a submenu item one place up. when I save the settings, the error appears.

    I also reinstalled the last version of wordpress v6.7.1

    • This reply was modified 3 months, 1 week ago by Nadjaji.

    Then this has absolutely nothing to do with the .htaccess or permalinks. Instead, I would suspect a security tool on the hosting that prevents certain requests to specific individual files. I would recommend that you contact your hoster’s support.

    Thread Starter Nadjaji

    (@nadjaji)

    Yes, I forgot to mention that I already contacted them: here is their answer.

    Hello,

    Thank you for contacting PlanetHoster.

    We do not modify server parameters that could affect websites.

    I recommend looking at updating WordPress and its extensions/themes if possible, you would need to change the PHP version on cPanel to one that supports newer versions of WordPress.

    So following that answer, I updated the PHP to the latest version. Again, that did not resolve my issue.

    I will contact them again and see if they have other suggestions. Thanks a lot for your input and other suggestions are very welcome ??

    Thread Starter Nadjaji

    (@nadjaji)

    This is the answer from PlanetHoster:

    Hello, It is possible, you could try to turn off ModSecurity, and see if the site work without it. You would need to go on your cPanel and then ModSecurity, under the security section.

    Switching off ModSecurity for the domain name on C-Panel resolved the problem. Just wondering what the implications are for my domain having this option switched off. Anyway, everything is back to normal.

    Vielen dank Thomas ??

    I’m glad you were able to solve it. You are also welcome to set the topic to solved.

    Thread Starter Nadjaji

    (@nadjaji)

    This is the answer of PlanetHoster regarding the security:

    Often it’s a false positive because what you are doing looks like a hacking attempt, like an SQL injection, for example.

    We could check the logs in detail if you could provide us with your IP.

    If it doesn’t impact the day-to-day operation and it’s only when you’re doing modification from the back office, you could turn if off when you are doing manipulation and back on when you are done.

    Please note that on our newer N0C hosting, the N0C panel has the option to toggle on or off most of the rules on its application firewall.

    Here is the instruction how to get your IP address:

    You can visit the following website in order to know your IP website: https://www.ns-lookup.io/

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.