Page 1 of 1

board down after changing style

Posted: Mon May 20, 2019 9:52 am
by C100
Support Request Template
What version of phpBB are you using? phpBB 3.2.7
What is your board's URL? www.c1hundred.co.uk/forum/
Who do you host your board with? 1and1.co.uk
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.2.5
What styles do you currently have installed? ProSilver
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? Comfortable with PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Full package update following phpbb recomemded knowledge base instructions
Please describe your problem. After updating to 3.2.5 I noticed that on the customise tab a strange error.
This continued when i upgraded to 3.2.7


[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2748: file(./../styles/subsilver2/style.cfg): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2751: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)

I opened a support ticket where I was advised to change style. I activated SubSilver2 and deactivated ProSilver.
This hs now completely taken down the board with the following

Fatal error: Uncaught Twig\Error\LoaderError: Unable to find template "index_body.html" (looked into: /homepages/7/d260496144/htdocs/forum/styles/all/template). in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php:245 Stack trace: #0 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('index_body.html') #1 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php(155): phpbb\template\twig\loader->findTemplate('index_body.html') #2 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(351): Twig\Loader\FilesystemLoader->getCacheKey('index_body.html') #3 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(445): Twig\Environment->getTemplateClass('index_body.html') #4 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/environment.php(277): Twig\Environment->loadTemplate('index_body.html', NULL) #5 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/ in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 245

Was adivised to try and reactivate ProSilver.
I have amended the phpbb_styles table to mark ProSilver to active (1) and SubSilver2 to inactive (0)
I have amended the phpbb_config to mark default_style = 1 (ProSilver) was 2 (SubSilver2)

Board is still completely down
Generated by SRT Generator

Re: board down after changing style

Posted: Mon May 20, 2019 10:21 am
by .m.
Unable to find template "index_body.html"
looked into: /forum/styles/all/template
system looking for template files at incorrect location.
it should be /forum/styles/prosilver/

Re: board down after changing style

Posted: Mon May 20, 2019 10:59 am
by Mick
Your cookie path is wrong it should just be ‘/‘ see Fixing incorrect cookie settings

Re: board down after changing style

Posted: Mon May 20, 2019 11:31 am
by EA117
C100 wrote:
Mon May 20, 2019 9:52 am
I have amended the phpbb_styles table to mark ProSilver to active (1) and SubSilver2 to inactive (0)
I have amended the phpbb_config to mark default_style = 1 (ProSilver) was 2 (SubSilver2)

Board is still completely down
It's been long enough now, your cache may have already expired of natural causes. But after "I made this change directly in the database, but I'm still seeing errors", the fact that the current cache files were built back when the error was happening is one logical reason for still seeing this. Delete or rename the /cache/production folder so that it will be re-created, which is effectively the same as "Purge cache" from within the ACP. By which I mean to delete or rename just the "production" subfolder, not the /cache directory itself.

If after purging the cache the error is still exactly the same for not even "index_body.html" being found, this really does suggest something is wrong about the /styles directory contents as .m. already indicated. I would be re-uploading my phpBB /styles directory, overwriting everything, just for good measure of not knowing what exactly what wrong with the existing files. By which I mean the /styles directory from the phpBB full package download, which will contain just the proSilver and "all" style directories.

Re: board down after changing style

Posted: Mon May 20, 2019 11:51 am
by C100
changed my cookie settings by editing the phpbb_config table -

cookie_domain = .c1hundred.co.uk
cookie_path = /
cookie_secure = 0

removed everything from cache folder except - .htaccess and index.html

Same error and remains down

Re: board down after changing style

Posted: Mon May 20, 2019 12:29 pm
by C100
Fatal error: Uncaught Twig\Error\LoaderError: Unable to find template "index_body.html" (looked into: /homepages/7/d260496144/htdocs/forum/styles/all/template). in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php:245 Stack trace: #0 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('index_body.html') #1 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php(155): phpbb\template\twig\loader->findTemplate('index_body.html') #2 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(351): Twig\Loader\FilesystemLoader->getCacheKey('index_body.html') #3 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(445): Twig\Environment->getTemplateClass('index_body.html') #4 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/environment.php(277): Twig\Environment->loadTemplate('index_body.html', NULL) #5 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/ in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 245

Re: board down after changing style

Posted: Mon May 20, 2019 1:28 pm
by Brf
When I try to look at https://www.c1hundred.co.uk/forum it is redirecting to

Code: Select all

https://www.c1hundred.co.uk/kunden/homepages/7/d260496144/htdocs/forum/app.php
That part from "/kunden/" through "/htdocs/" should not be part of your web path. The domain is supposed to alias down to the /forum folder without having it in your path. There is something badly messed up with your hosting paths.

Re: board down after changing style

Posted: Mon May 20, 2019 1:40 pm
by C100
I think that is to get to the hosted mysql tables on my host.
The board was (and has been for many years) operational until I deactivated the ProSilver style in the ACP.
I will reload all the files again later this evening.

Re: board down after changing style

Posted: Mon May 20, 2019 3:11 pm
by stevemaury
After changing cookie values, change the cookie name (append a character to the end of it) to force a new cookie. Otherwise, you still have the same cookie with the same values.

Re: board down after changing style

Posted: Mon May 20, 2019 6:08 pm
by C100
deleted and reinstalled all the files.
ran the install process to update database
same issue exists


Fatal error: Uncaught Twig\Error\LoaderError: Unable to find template "message_body.html" (looked into: /homepages/7/d260496144/htdocs/forum/styles/all/template). in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php:245 Stack trace: #0 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('message_body.ht...') #1 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php(155): phpbb\template\twig\loader->findTemplate('message_body.ht...') #2 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(351): Twig\Loader\FilesystemLoader->getCacheKey('message_body.ht...') #3 /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Environment.php(445): Twig\Environment->getTemplateClass('message_body.ht...') #4 /homepages/7/d260496144/htdocs/forum/phpbb/template/twig/environment.php(277): Twig\Environment->loadTemplate('message_body.ht...', NULL) #5 /homepages/7/d260496144/htdocs/forum/ in /homepages/7/d260496144/htdocs/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 245


I have also tried changing the cookie name by adding 1 character

Re: board down after changing style

Posted: Mon May 20, 2019 8:11 pm
by C100
this is now resolved.
had to set the override_user_style =1

then had to delete the subsilver2 style