PHP warning error messages, ACP not accessible

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
phpBG
Registered User
Posts: 32
Joined: Sat Sep 06, 2014 9:11 am

PHP warning error messages, ACP not accessible

Post by phpBG »

Hello,

these are the error messages that occur at the top of the forum home page:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
phpbb version: 3.2.1 (I think, I cannot check it because the ACP is not accessible anymore)
PHP version: 7.2 (this has been the case for at least months, the problem with the error messages occured only recently)
url: www.glencampbellforums.com

I guess I should upgrade to a newer version of phpbb. But I can do that safely without having access to the ACP? I cannot disable extensions and the styles for instance.

Thanks in advance.
Michel
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: PHP warning error messages, ACP not accessible

Post by Mick »

What happened just before this problem started? Did you do anything to cause it such as make a code change, install an extension or add a new style etc? Did your host change anything? These things don’t ‘just happen’, something causes them. When you say the ACP isn’t available do you mean the link isn’t there any more or it won’t accept your credentials?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
warmweer
Jr. Extension Validator
Posts: 11194
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: PHP warning error messages, ACP not accessible

Post by warmweer »

phpBG wrote: Fri Jan 21, 2022 4:45 pm phpbb version: 3.2.1 (I think, I cannot check it because the ACP is not accessible anymore)
...
prosilver/style.cfg is usually a good indication ..But ...
database config_table (field: version) is more secure.
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
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: PHP warning error messages, ACP not accessible

Post by Mick »

3.2.1
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
phpBG
Registered User
Posts: 32
Joined: Sat Sep 06, 2014 9:11 am

Re: PHP warning error messages, ACP not accessible

Post by phpBG »

Mick wrote: Fri Jan 21, 2022 4:55 pm What happened just before this problem started? Did you do anything to cause it such as make a code change, install an extension or add a new style etc? Did your host change anything? These things don’t ‘just happen’, something causes them. When you say the ACP isn’t available do you mean the link isn’t there any more or it won’t accept your credentials?
I didnt change anything recently. And the php version hasnt changed as far as I can tell from the cPanel of our webhost. Is there a sure way to check which php version phpbb uses (when the acp doesnt work)?

When I log into the ACP the result is a webpage with only
the error messages at the top, nothing else.
User avatar
janus_zonstraal
Registered User
Posts: 6414
Joined: Sat Aug 30, 2014 1:30 pm

Re: PHP warning error messages, ACP not accessible

Post by janus_zonstraal »

make a phpinfo.php file with this content

Code: Select all

<?php

phpinfo( );

?>
visit that page.
Sorry! My English is bat ;) !!!
phpBG
Registered User
Posts: 32
Joined: Sat Sep 06, 2014 9:11 am

Re: PHP warning error messages, ACP not accessible

Post by phpBG »

Okay I did that...
https://www.glencampbellforums.com/php_info.php

It's 7.2.34. I think we have been using this version for months at least, with no problems.

What should be the next step you think? Upgrade phpbb anyway? Or is there another solution?
User avatar
warmweer
Jr. Extension Validator
Posts: 11194
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: PHP warning error messages, ACP not accessible

Post by warmweer »

phpBG wrote: Fri Jan 21, 2022 7:07 pm ... php 7.2.34 ...
What should be the next step you think? Upgrade phpbb anyway? Or is there another solution?
phpBB 3.2.1 was released with mention of supporting php 7.0 and 7.1 but php 7.2 support came later (not sure which version) so you do need to update - preferably to the latest version 3.2.11 (or better even upgrade to 3.3.x).
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.
phpBG
Registered User
Posts: 32
Joined: Sat Sep 06, 2014 9:11 am

Re: PHP warning error messages, ACP not accessible

Post by phpBG »

Okay I understand. Can I do that safely without having access to the ACP? I cannot disable the extensions and the styles for instance. Or is that not so important?
User avatar
janus_zonstraal
Registered User
Posts: 6414
Joined: Sat Aug 30, 2014 1:30 pm

Re: PHP warning error messages, ACP not accessible

Post by janus_zonstraal »

As long as you make good backups you can do anything you want.
But most of the time you can just update to a other version without acp access.
Sorry! My English is bat ;) !!!
phpBG
Registered User
Posts: 32
Joined: Sat Sep 06, 2014 9:11 am

Re: PHP warning error messages, ACP not accessible

Post by phpBG »

Okay I will give it a try then. Thanks for all your help so far guys.
User avatar
warmweer
Jr. Extension Validator
Posts: 11194
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: PHP warning error messages, ACP not accessible

Post by warmweer »

Code: Select all

You are running an unsupported PHP version. Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3
You need to contact your host and find out why it now seems to be < 7.1.3 and was previously reported as 7.2.34.
I suspect you can switch php version via the host control panel.

Added: it seems you're now using phpBB 3.3.5
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.
Post Reply

Return to “[3.2.x] Support Forum”