Cannot update existing e107 website #5904
Replies: 4 comments 5 replies
|
@Alex-e107nl thanks, the exact wording of that message narrows it down a lot.
e107/e107_handlers/session_handler.php Line 167 in 022293b So the one thing I need from you: when you click Update, does your browser send that header?
Tell me whether it is there and what it says ( Quick cross-check while you are in there: log out and log back in. Logging in is a POST To get moving before we sort this out properly, you can pin the older behaviour, which <?php
require_once('class2.php');
e107::getConfig()->set('csrf_enforce', 3)->save(false, true, false);
echo 'csrf_enforce set to 3';Delete it straight after. While it sits there, anyone who finds it can run it. After that the Update buttons should work, and the same setting is reachable from You should not have to do any of this by hand, mind. |
|
POST |
|
@Alex-e107nl that header settles it, and it settles it against me.
Two things in what you pasted rule the CSRF check out completely:
Lines 605 to 621 in 022293b So PHP died before it printed anything, and Where to find it, quickest first:
If all of those are empty, make it print. Open @ini_set('display_errors', 1);
error_reporting(E_ALL);Press the button again, copy whatever comes up, then take the two lines back out. That message Before you go log hunting though, one cheaper thing to rule out first: did that FTP upload One thing I need to get straight. Your first post said "error 500 Unauthorized access!", Also handy: your PHP version. The CSRF gap I went digging into is real and I will put it in front of Deltik regardless, it |
|
@e107help With ``` Array |







Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @e107help , github of today, tried to update existing site, used ftp all fine, but when i go to /e107_admin/db.php?mode=db_update i see:
I can only press on the first button and i get a error 500 Unauthorized access! message.... i am the head admin.. hmmmmm
Should i do something extra that i do not know yet.... i have returned now to the backup so i can try it again...
All reactions