Support

Akeeba Backup for WordPress

#41551 404 error after saving the configuration

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
6.7.1
PHP version
8.3
Akeeba Backup version
8.3.0

Latest post by nicholas on Thursday, 13 February 2025 01:12 CST

mikelopes2025

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

 

When im changing the name of the Profile Description, from this URL:
wp-admin/admin.php?page=akeebabackupwp%2Fakeebabackupwp.php&view=configuration

And I click Apply, I got an 404 error, and then this URL:
wp-admin/admin.php?page=akeebabackupwp/akeebabackupwp.php&view=configuration

And the name of the profile do not change. Also any other changes as PostProcessing are not saved,

Can you please help me?

Thanks in advance!

 

nicholas
Akeeba Staff
Manager

Can you please clarify? Do you get the 404 when you see the wp-admin/admin.php?page=akeebabackupwp/akeebabackupwp.php&view=configuration page, or first you see a 404, then you are redirected to it?

If it's the former (which is most likely), I have a feeling that the problem is that your server has a server protection rule, or you are running a security plugin, which does not like the use of a forward slash in the URL. However, this is the standard way of addressing plugins in WordPress' administrator, so this rule needs to be removed.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mikelopes2025

Hello Nicholas.

 

First, I go to /wp-admin/admin.php?page=akeebabackupwp%2Fakeebabackupwp.php

Then i go to configuration, then I see the configuration page at
/wp-admin/admin.php?page=akeebabackupwp%2Fakeebabackupwp.php&view=configuration

 

Then I change the name of the name of the Profile Description, from "Default Backup Profile" to "new name", and when I click apply, the error cames at the same time the URL shows the 404 at this URL:

/wp-admin/admin.php?page=akeebabackupwp/akeebabackupwp.php&view=configuration

 

nicholas
Akeeba Staff
Manager

Can you please install https://www.akeeba.com/download/backupwp-dev/9-0-0-dev202502050936-revf89a0cd7.html and let me know if that works for you?

I have two suspicions. The first one is that the forward slash in the URL may be causing this issue. The dev release addresses that by always URL-encoding it to %2F.

If this doesn't work, the problem might be that the Configuration page POSTs a JSON document to the server. This is on purpose; there are more than 100 fields on the form, which makes many servers reject the request. However, there's a very slim chance that your server does not like seeing a POST with a big JSON document sent to the browser. If we eliminate the forward slash as the culprit, we can pursue this as the other probably root cause.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mikelopes2025

Hello Nicholas, thanks for your help

I have installed the Versión 9.0.0-dev202502050936-revf89a0cd7 but I got the same error: once I push the save and coleor apply button, the 404 error cames again.

 

 

nicholas
Akeeba Staff
Manager

All right, I think we have the second problem. You need to contact your host. Let them know that when you POST a form whose body is a well-formed JSON document you get this error. They can look into their logs for it, and tell you what you or they have to do to prevent this problem.

I am pretty sure it's a mod_security2 rule on their server which blocks the request because of its content. This would normally cause a 403 Forbidden response, but your server must've been configured to show a custom error page which doesn't exist. In this case the 403 makes the server look for the custom error page, the file does not exist, therefore the server returns a very misleading 404 Not Found error, making you scratch your head as to what happened. The solution to the problem is, of course, to disable or otherwise change the rule which was blocking the request in the first place.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mikelopes2025

Thanks Nicholas, I will contact my host. 

mikelopes2025

Hello Nicholas!

I wrote to my webhosting provider and ask to review the mod_secure2 rules, they help me and change the rules, as you said. It works now and Im able to save the name of the profile name and the plugin works as expected.

Thanks a lot for your invaluable help!

Carlos.

nicholas
Akeeba Staff
Manager

You're welcome! Have a fantastic day!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!