Blank pages on fresh install

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Blank pages on fresh install

Post by lacepockets »

Support Request Template
What version of phpBB are you using? phpBB 3.3.13
What is your board's URL? [redacted]
Who do you host your board with? Dreamhost
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What styles do you currently have installed? Whatever is default
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No answer given
Please describe your problem. I've had to completely reinstall PHPBB because a hacker deleted everything on my web domain, except SQL databases. Since the databases were still there I just had PHPBB's /install/ directory update them. It says the update completed. But when I go to my forum's page it's just a blank white page or a 500 error.

For testing purposes I also installed phpbb in a new directory, with a new database, but it is also giving me a blank page or 500 error.
Last edited by Mick on Sun Oct 06, 2024 7:34 am, edited 2 times in total.
Reason: Solved.
User avatar
warmweer
Jr. Extension Validator
Posts: 11851
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Blank pages on fresh install

Post by warmweer »

lacepockets wrote: Thu Oct 03, 2024 7:57 pm Support Request Template

What is your board's URL? http://white-mage.net/rp
Probably not the cause of the issue BUT

http://white-mage.net/rp/ automatically loads https:// but you're not using cookie-secure (+ your domain should be .white-mage.net (note the leading dot).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

warmweer wrote: Thu Oct 03, 2024 8:28 pm
lacepockets wrote: Thu Oct 03, 2024 7:57 pm Support Request Template

What is your board's URL? http://white-mage.net/rp
Probably not the cause of the issue BUT

http://white-mage.net/rp/ automatically loads https:// but you're not using cookie-secure (+ your domain should be .white-mage.net (note the leading dot).
I'm sorry, I don't know what this means.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2494
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Blank pages on fresh install

Post by P_I »

Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

P_I wrote: Thu Oct 03, 2024 10:13 pm Take a look at Knowledge Base - Fixing incorrect cookie settings
I uploaded the cookie.php file, but when I navigate to it I get a 403 Forbidden error. I also get that error now on the forum's page itself.

Edit: I fixed the 403 Forbidden error, but now it keeps redirecting me to the install page. I checked the config.php and it's pointing at the correct database.

Edit 2: I managed to get phpbb to update the database, and I can see the main page of the forums, but when I click login I get the blank page/500 error again. If I remove the /install/ folder, then the entire forum site gives me a 500 error.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26869
Joined: Fri Aug 29, 2008 9:49 am

Re: Blank pages on fresh install

Post by Mick »

Just so you’re aware, blank pages are indicative of suppressed PHP errors. Have a look in the server error logs to see if there’s a clue there or, if you can’t find or get at them, ask your host to get them for you.

What PHP version are you using?
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

I have access to the logs folder (if this is what you mean), but there's nothing in it.
Image

My domain's version of PHP is 8.3.
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

I contacted my domain host's tech support. He told me there is "a fatal error in twig" and gave me this error log (and he said there's nothing they can do on their end because it's a third party application):

Code: Select all

[Fri Oct 04 11:23:12.316443 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, phpbb\\template\\twig\\definition given in /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php:607
[Fri Oct 04 11:23:12.316518 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: Stack trace:
[Fri Oct 04 11:23:12.316520 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #0 /home/[redacted]/white-mage.net/rp/cache/production/twig/a9/a9775ac03032c8f1c5edc34415143a2f4484df3e243dc6d4dd23901851e74a6f.php(264): Twig\\Template->getAttribute(Object(phpbb\\template\\twig\\definition), 'STYLESHEETS', Array)
[Fri Oct 04 11:23:12.316527 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #1 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php(455): __TwigTemplate_d6283af7063873e955f601b215d37e81a59bdb4b0541a420cbeaf473b1cf9f28->doDisplay(Array, Array)
[Fri Oct 04 11:23:12.316529 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #2 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php(422): Twig\\Template->displayWithErrorHandling(Array, Array)
[Fri Oct 04 11:23:12.316532 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #3 /home/[redacted]/white-mage.net/rp/cache/production/twig/51/512aa7e2888f5673c87be71e1cd77212e615f93fef1eab662197401aaadd02d8.php(37): Twig\\Template->display(Array)
[Fri Oct 04 11:23:12.316535 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #4 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php(455): __TwigTemplate_f1e81bf7d140c69c5ed24933f6383b71558947231f5d7bdac78ff90fe6017acf->doDisplay(Array, Array)
[Fri Oct 04 11:23:12.316538 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #5 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php(422): Twig\\Template->displayWithErrorHandling(Array, Array)
[Fri Oct 04 11:23:12.316540 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #6 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php(434): Twig\\Template->display(Array)
[Fri Oct 04 11:23:12.316545 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #7 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/TemplateWrapper.php(47): Twig\\Template->render(Array, Array)
[Fri Oct 04 11:23:12.316547 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #8 /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Environment.php(384): Twig\\TemplateWrapper->render(Array)
[Fri Oct 04 11:23:12.316550 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #9 /home/[redacted]/white-mage.net/rp/phpbb/template/twig/environment.php(224): Twig\\Environment->render('index_body.html', Array)
[Fri Oct 04 11:23:12.316552 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #10 /home/[redacted]/white-mage.net/rp/phpbb/template/twig/environment.php(194): phpbb\\template\\twig\\environment->display_with_assets('index_body.html', Array)
[Fri Oct 04 11:23:12.316554 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #11 /home/[redacted]/white-mage.net/rp/phpbb/template/twig/twig.php(317): phpbb\\template\\twig\\environment->display('index_body.html', Array)
[Fri Oct 04 11:23:12.316557 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #12 /home/[redacted]/white-mage.net/rp/includes/functions.php(4806): phpbb\\template\\twig\\twig->display('body')
[Fri Oct 04 11:23:12.316559 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #13 /home/[redacted]/white-mage.net/rp/index.php(257): page_footer()
[Fri Oct 04 11:23:12.316561 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr: #14 {main}
[Fri Oct 04 11:23:12.316563 2024] [fcgid:warn] [pid 2093190:tid 140302583039552] [remote 180.195.202.61:6587] mod_fcgid: stderr:   thrown in /home/[redacted]/vendor/twig/twig/src/Template.php on line 607
Last edited by lacepockets on Sat Oct 05, 2024 4:10 pm, edited 1 time in total.
User avatar
Madalin10
Registered User
Posts: 117
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: Blank pages on fresh install

Post by Madalin10 »

lacepockets wrote: Fri Oct 04, 2024 6:34 pm I contacted my domain host's tech support. He told me there is "a fatal error in twig" and gave me this error log (and he said there's nothing they can do on their end because it's a third party application):
These warnings/errors are related to the style.
Have you uploaded everything from the phpBB package? Try like this:

1. Go into FTP where your board files/folders are and rename the folder "vendor" (example: vendor_old)
2. Upload the "vendor" folder from the phpBB package
3. In the styles folder from your FTP, upload the "prosilver" folder from the phpBB package.
4. Go into "cache" folder from the FTP and delete the "production" folder from there.
https://awesome-web.design - I offer phpBB & web design services at fair prices.
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

I had uploaded everything, but I tried this anyway. Nothing has changed.
User avatar
warmweer
Jr. Extension Validator
Posts: 11851
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Blank pages on fresh install

Post by warmweer »

lacepockets wrote: Fri Oct 04, 2024 6:34 pm I contacted my domain host's tech support. He told me there is "a fatal error in twig" and gave me this error log (and he said there's nothing they can do on their end because it's a third party application):
It's quite an easy way out for tech support to blame the "software".
Fact Is I (and others) have installed 3.3.13 using the full package and updated boards using the full package or changed files package (downloaded from here) probably more that 20 times and up to now all successfully (with various PHP versions).

Did you copy the unpacked fileset to the server or extracted the fileset from the package on the server itself? (the latter could have corrupted some files)
Try installing 3.3.13 on a Personal WebServer (WAMP, XAMP, Easyphp, USBWebserver, there are others) with the fileset you used, and if that works, then phpBB itself is not to blame.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Toxyy
Registered User
Posts: 966
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

Re: Blank pages on fresh install

Post by Toxyy »

Madalin10 wrote: Fri Oct 04, 2024 9:39 pm These warnings/errors are related to the style.
OP says that he installed a fresh version of phpbb and that had an error (I had him do this when messaging on discord before he made the topic), which implies he's getting this error with a clean cache and an unaltered prosilver.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
rxu
Extensions Development Team
Posts: 3952
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Blank pages on fresh install

Post by rxu »

lacepockets wrote: Fri Oct 04, 2024 6:34 pm PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, phpbb\\template\\twig\\definition given in /home/[redacted]/white-mage.net/rp/vendor/twig/twig/src/Template.php:607
phpBB 3.3.13 is shipped with the Twig 2.16.0 where twig/src/Template.php only has 435 lines but the error is thrown on line 607.
But in Twig 1.42.2 used in phpBB 3.2.x Template.php actually has 733 lines and there's array_key_exists() call around line 607.

If you're sure you have phpBB 3.3.13, then you're getting somehow vendor folder from phpBB 3.2.x.
Alternatively you probably actually have phpBB 3.2 running with incompatible PHP version, because your https://white-mage.net/rp/styles/prosilver/style.cfg says it's phpbb_version = 3.2.9.
Or you have phpBB 3.2.x/3.3.x files mixed for some reason.
User avatar
lacepockets
Registered User
Posts: 10
Joined: Thu Oct 03, 2024 7:35 pm

Re: Blank pages on fresh install

Post by lacepockets »

I'm not sure what happened there, but I deleted literally everything in the folder again and uploaded from a fresh (extracted) download of 3.3.13, just to be sure of everything, and edited config.php to look at the original database. Now it's giving this error:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 444: Undefined array key "user_last_active"

SQL ERROR [ mysqli ]
Unknown column 'user_last_active' in 'field list' [1054]
User avatar
warmweer
Jr. Extension Validator
Posts: 11851
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Blank pages on fresh install

Post by warmweer »

lacepockets wrote: Sat Oct 05, 2024 2:15 pm ...
I'm not sure what happened there, but I deleted literally everything in the folder again and uploaded from a fresh (extracted) download of 3.3.13, just to be sure of everything, and edited config.php to look at the original database. Now it's giving this error:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 444: Undefined array key "user_last_active"

SQL ERROR [ mysqli ]
Unknown column 'user_last_active' in 'field list' [1054]
IIRC user_last_active is a 3.3 field and if your database is 3.2 (the original database?) then it's bound to give an error.
What you can do (if the 3.2 database is clean) is to edit config.php to connect to that database (don't access the board yet), edit some fields in the config_table. going from memory that would be:
cookie_domain
cookie_path
cookie_secure
cookie_name
script path
server_name
server_port
server_protocol

Then download the 3.3.13 full package, unpack and copy the extracted files to your board root (do not overwrite the config.php better delete the empty one before copying all the files then and follow the upgrade instructions (that means navigate to /install and do update database only).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.

Return to “[3.3.x] Support Forum”