Attempting to save edits to variables results in Status: 404 Page not found.
Hi Low,
Many thanks for your excellent module: Low Variables.
I'm having trouble saving Low Variables on a Staging site.
New Variables can be created, no problem. Issue arises when trying to edit/save any existing variables. The save action doesn't complete and the system lands on a Status: 404 Page not found.
Looking into it, I've realised my path to save variables as files is incorrect [Extension Settings]; it's still set for the live site. Problem is, I can't save the change due to the reason above.
Any ideas?
Thanks,
Andrew
Replies
Andrew Fairhurst 29 Nov 2012 09:00
Hi Low,
Apologies for the false alarm; I've found a solution.
I added the path to the save location in the config.php file.
Thanks,
Andrew
Low 29 Nov 2012 09:05
Are you still receiving the 404, tho?
Andrew Fairhurst 29 Nov 2012 09:25
Hi again. Actually, the problem is still persistent. Some pages will allow me to save changes, whilst others don't.
I'm having problems saving changes made to variables, whilst working on the Low Variables page. Status: 404 Page not found, is returned.
Low 29 Nov 2012 09:27
I have seen something like this before, and it always turned out to be an environmental problem, ie. the server. Is mod_security running on the server?
Andrew Fairhurst 29 Nov 2012 09:53
I'm not sure if mod_security is running; I'll look into it.
I've got a couple of groups of variables:
• shortcuts
• dry snippets
The shortcuts are simply ee disable strings e.g.
• categories|member_data
• categories|member_data|pagination
These save, no problem.
The dry snippets are generally html. If I move one over to the shortcuts group, saving fails.
I'll check on mod_security
Low 29 Nov 2012 09:55
You can see a similar problem here: https://getsatisfaction.com/low/topic...
See the bottom comment for the solution found. Worth a shot.
Andrew Fairhurst 29 Nov 2012 10:06
I don't have an admin folder.
Am awaiting response from host re: mod_security
I'm able to edit/update variables via the standard EE method, so will use that as a work around for now.
Thanks,
Andrew
Low 29 Nov 2012 10:29
While you wait for your host, you can try to put this in your .htaccess file:
If mod_security is installed, and you're allowed to turn it off in your .htaccess, this might help solve it as well. If you're not allowed to turn it off, it could result in an error 500, so see what it does.
Andrew Fairhurst 29 Nov 2012 10:41
Mod Security was running. The hosts have tweeked 3 settings, and it now seems to be working again. Thanks for your support.
Low 29 Nov 2012 10:42
Cool. Do you know which settings were tweaked? Then I can relay that to others oif they run into the same issue.
Andrew Fairhurst 29 Nov 2012 10:47
Host disabled:
300061
340149
340163
Thanks.