Blank pages after restore backup after failed installation 2.1.1

Started by jacbier, February 18, 2022, 11:08:00 AM

Previous topic - Next topic

jacbier

Yesterday I was installing the upgrade 2.1.1 on www.hobbybrouwen.nl/forum

That caused problems due to a lot of server timeouts I got. (It's a very large forum.) Tried several times to connect to the server but at one point installing the upgrade really wouldn't go any further. That's why I aborted the upgrade.

Before the upgrade I had made a backup of my 2.0.19 forum with various mods.
After restoring the backup I get white pages.
The error log shows the following errors

Backend log: PHP Notice:  Undefined index: default_theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 109\n
[Fri Feb 18 15:56:15.358213 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: images_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 110\n
[Fri Feb 18 15:56:15.358497 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 89\n
[Fri Feb 18 15:56:15.358506 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 90\n
[Fri Feb 18 15:56:15.358514 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: default_theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 105\n
[Fri Feb 18 15:56:15.358521 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 106\n
[Fri Feb 18 15:56:15.358529 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 108\n
[Fri Feb 18 15:56:15.358537 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: default_theme_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 109\n
[Fri Feb 18 15:56:15.358545 2022] [lsapi:warn] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend log: PHP Notice:  Undefined index: images_url in /xxxxxxxxxxxxxxxxxxx/Sources/Load.php(2336) : eval()'d code on line 110\n
[Fri Feb 18 15:56:15.358554 2022] [lsapi:error] [pid xxxxxx] xxxx [host www.hobbybrouwen.nl] Backend fatal error: PHP Fatal error:  Uncaught Error: Call to undefined function cls_change_theme_top() in /xxxxxxxxxxxxxxxxxxx/Sources/Subs.php:3428\nStack trace:\n#0 /xxxxxxxxxxxxxxxxxxx/Sources/Subs.php(2868): template_header()\n#1 /xxxxxxxxxxxxxxxxxxx/Sources/Errors.php(337): obExit(NULL, true, false, true)\n#2 /xxxxxxxxxxxxxxxxxxx/Sources/Errors.php(161): setup_fatal_error_context('Call to undefin...')\n#3 /xxxxxxxxxxxxxxxxxxx/index.php(132): fatal_error('Call to undefin...', 'critical')\n#4 [internal function]: {closure}(Object(Error))\n#5 {main}\n  thrown in /xxxxxxxxxxxxxxxxxxx/Sources/Subs.php on line 3428\n


What do I need to do to make 2.0.19 work? After that I can make a second attempt to install 2.1.1

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori


Arantor

I'd speculate on a mod having template changes but the underlying file not being loaded for it...

Sir Osis of Liver

If the 2.0.19 database backup is complete and undamaged, you can upload clean 2.0.19 files, that should get you up and running, then try 2.1 upgrade again.

https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jacbier

Quote from: Shades. on February 18, 2022, 11:15:39 AMHow did you backup? Admin or phpmyadmin?
Quote from: Shades. on February 18, 2022, 11:15:39 AMHow did you backup? Admin or phpmyadmin?

I made a backup with phpmyadmin and a backup was made by the hoster. Both don't want to work



jacbier

Quote from: Sir Osis of Liver on February 18, 2022, 12:32:06 PMIf the 2.0.19 database backup is complete and undamaged, you can upload clean 2.0.19 files, that should get you up and running, then try 2.1 upgrade again.

https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files


I will try this tomorrow.


Are there more solutions possible?

jacbier

Quote from: Arantor on February 18, 2022, 12:24:34 PMI'd speculate on a mod having template changes but the underlying file not being loaded for it...

I suspect so too. Any idea how to fix that outside of a fresh set of files?

Doug Heffernan

Quote from: jacbier on February 18, 2022, 02:49:31 PM
Quote from: Arantor on February 18, 2022, 12:24:34 PMI'd speculate on a mod having template changes but the underlying file not being loaded for it...

I suspect so too. Any idea how to fix that outside of a fresh set of files?

It is hard to say if we do not know what mod causes that. Can you post the list of all mods that you have installed?

What method did you use to make the backup btw?

Illori


jacbier

Quote from: Doug Heffernan on February 18, 2022, 03:01:43 PM
Quote from: jacbier on February 18, 2022, 02:49:31 PM
Quote from: Arantor on February 18, 2022, 12:24:34 PMI'd speculate on a mod having template changes but the underlying file not being loaded for it...

I suspect so too. Any idea how to fix that outside of a fresh set of files?

It is hard to say if we do not know what mod causes that. Can you post the list of all mods that you have installed?

Google Member Map
Responsive Curve
SimpleAds
Country Flags
Personalized BBC
EU Cookie
Search Focus Dropdown
Users Online Today
Copy Topics
Recent Topics On Board Index
Upload mod exclusief voor Hobbybrouwen.nl
Aeva ~ Auto-Embed Video & Audio
SMF Gallery Lite
Simple Audio Video Embedder
Tapatalk SMF 2.0 Plugin
SMF 2.0.19 Update
Tabular
Tagging System
Google Analytics Code
Stop Spammer
Confirmation message to Mark as Read
nCode Image Resizer
SMF Theme Changer

I suspect the mod SMF Theme Changer is the culprit.


QuoteWhat method did you use to make the backup btw?

Quote from: jacbier on February 18, 2022, 02:38:23 PM
Quote from: Shades. on February 18, 2022, 11:15:39 AMHow did you backup? Admin or phpmyadmin?
Quote from: Shades. on February 18, 2022, 11:15:39 AMHow did you backup? Admin or phpmyadmin?

I made a backup with phpmyadmin and a backup was made by the hoster. Both don't want to work

pikeman

Was maintenance mode turned on before the update?
If yes check config file, it should be set: $maintrance=0; .

Doug Heffernan

Quote from: jacbier on February 18, 2022, 04:40:19 PMI suspect the mod SMF Theme Changer is the culprit.

Refreshing your forum files with those from the large upgrade 2.0.19 package, (make really sure that your db and forum files are of the same smfseries), will uninstall your mods automatically and should fix the errors.

Then re-install them one at a time till you find the culprit.

Arantor

I was expecting to see a mod with initials around 'cls' but don't see anything that fits :-/

jacbier

Quote from: pikeman on February 18, 2022, 04:53:55 PMWas maintenance mode turned on before the update?
If yes check config file, it should be set: $maintrance=0; .

Where can I find that file?

Arantor

That file is the master Settings.php file in the main directory of SMF - in it should be a line like that that says $maintenance = 0; or similar. 0 means no maintenance, 1 means soft maintenance (like you set in the admin), 2 means upgrade maintenance but that's not what you're seeing here.

pikeman

Setings.php

########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.

########## Maintenance ##########
/**
 * The maintenance "mode"
 * Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
 * 0 is default and disables maintenance mode.
 *
 * @var int 0, 1, 2
 * @global int $maintenance
 */
$maintenance = 0;

        # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)

Advertisement: