ElkArte Community

Project Support => Support => Topic started by: Mrs. Chaos on April 22, 2019, 10:26:39 am

Title: After changing the e-mail address, the forum disappeared
Post by: Mrs. Chaos on April 22, 2019, 10:26:39 am
Hello,
I tried to change the e-mail address that is entered in the configuration. After I entered the new address and clicked on "Save", the whole forum disappeared. There are only white pages left.
How can I get the forum back now? :o


(Link-6306)
Title: Re: After changing the e-mail address, the forum disappeared
Post by: Spuds on April 22, 2019, 10:51:15 am
That is very odd.

The only thing I can think of is that something corrupted your Settings.php file (that is where the webmaster email address and other items are stored).   If you have access to your forums base directory there should be a Settings_bak.php file (the system makes a backup before it makes the edits),

Try to rename your current Settings.php -to> Settings.php.old and then Settings_bak.php -to> Settings.php and see if things come back on line.

Title: Re: After changing the e-mail address, the forum disappeared
Post by: Mrs. Chaos on April 22, 2019, 11:42:52 am
It worked! The forum is back. Thank you!
Before uploading the Settings.php I have entered the new address on that page and the addy is now displayed correct in the server settings. :)
Title: Re: After changing the e-mail address, the forum disappeared
Post by: Spuds on April 22, 2019, 05:59:45 pm
Awesome, glad it worked :D
Title: Re: After changing the e-mail address, the forum disappeared
Post by: emanuele on April 23, 2019, 07:21:12 am
These weird corruption of settings.php are weird. :-\
Title: Re: After changing the e-mail address, the forum disappeared
Post by: radu81 on April 23, 2019, 09:24:44 am
There was something similar already reported
Title: Re: After changing the e-mail address, the forum disappeared
Post by: emanuele on April 23, 2019, 03:39:58 pm
Yeah, every once in a while something weird happens.
Unless... it's still the "old" but with the maintenance message containing single quotes that are not properly escaped (I think it was fixed, though I don't remember exactly when).
Title: Re: After changing the e-mail address, the forum disappeared
Post by: ahrasis on April 23, 2019, 10:22:26 pm
Could it be something wrongly entered in that field was causing that?
Title: Re: After changing the e-mail address, the forum disappeared
Post by: emanuele on April 24, 2019, 12:20:00 pm
In theory not. But as usual theory is one thing, reality is another.
There was a while ago (still in SMF) a vulnerability for which single quotes were not escaped and so entering a single quote in any field meant to be saved was going to break php syntax in Settings.php and make the forum crash. Though, as far as I remember that was fixed. The side-effect of this fix (or something close) was introduce another bug related to new lines in the maintenance message that was going to mess again the syntax of Settings.php. And this is the one I think has been fixed, but don't remember when.