board down after changing style

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

board down after changing style

Post by C100 » Mon May 20, 2019 9:52 am

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

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: board down after changing style

Post by .m. » Mon May 20, 2019 10:21 am

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/

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21153
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket - definitely

Re: board down after changing style

Post by Mick » Mon May 20, 2019 10:59 am

Your cookie path is wrong it should just be ‘/‘ see Fixing incorrect cookie settings
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
EA117
Registered User
Posts: 647
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: board down after changing style

Post by EA117 » Mon May 20, 2019 11:31 am

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.

C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

Re: board down after changing style

Post by C100 » Mon May 20, 2019 11:51 am

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

C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

Re: board down after changing style

Post by C100 » Mon May 20, 2019 12:29 pm

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

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51726
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: board down after changing style

Post by Brf » Mon May 20, 2019 1:28 pm

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.

C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

Re: board down after changing style

Post by C100 » Mon May 20, 2019 1:40 pm

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.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50510
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: board down after changing style

Post by stevemaury » Mon May 20, 2019 3:11 pm

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.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

Re: board down after changing style

Post by C100 » Mon May 20, 2019 6:08 pm

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

C100
Registered User
Posts: 27
Joined: Sun Dec 12, 2010 3:28 pm

Re: board down after changing style

Post by C100 » Mon May 20, 2019 8:11 pm

this is now resolved.
had to set the override_user_style =1

then had to delete the subsilver2 style

Post Reply

Return to “[3.2.x] Support Forum”

cron