Page 1 of 1

[phpBB Debug] PHP Warning

Posted: 24. September 2023 07:21
by Karado58
Hello,

Portal page has warning above, plus nothing showing under Top Posters, or Statistics, search box misaligned, calendar larger fonts.
Please see attachments

Started getting this error, without warning and without any changes to the site at least 3 days prior.
Someone know what caused this; database corruption, site hacked?
Anyway to fix it, and keep it from happening again?

Thank you! :)

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/board3/portal/modules/statistics.php on line 102: Division by zero
[phpBB Debug] PHP Warning: in file [ROOT]/ext/board3/portal/modules/statistics.php on line 103: Division by zero
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
Image

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 20:06
by Kirk
Hi
What version of pure PHP and phpBB are you running?
Are there already posts in your forum?
If not, please create two test posts.

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 20:29
by Karado58
Hello Kirk,

Weird, Statistics and Top Posters mysteriously are now showing data. Search box still misaligned and Calendar still large font. What's going on??!!

Hosting support, told me forum had been hacked, and needed to recreate from scratch.
Admin password was 25 mixed characters, since then, made it 30 mixed characters!

PHP version: 7.4.33
Board version: 3.3.10

Just created 2 test posts.

Forum url: https://www.dakotanative.com

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 21:05
by Kirk
I cannot reproduce this problem. The admin password has nothing to do with it.
If you deactivate the "Statistics" module, does the error message still appear?

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 21:21
by Karado58
The reason I mentioned the secure password, was because hosting support said forum was hacked.

Deactivated Statistics. error goes away, forum looks normal!!

So it must be the DB?!

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 21:29
by Kirk
Please do not always reply with a full quote!

Deactivate the portal (incl. Delete data), delete the portal EXT from the server via FTP. Download the version from here, unzip it and upload it again and install the portal.

Re: [phpBB Debug] PHP Warning

Posted: 24. September 2023 22:10
by Karado58
Hi Kirk,

Followed your exact steps for removal.
Same exact error, calendar fonts large size, search bar misaligned, Recent topics large font size. All same as before.

Statistics module is showing data.

Re: [phpBB Debug] PHP Warning (FIX FOUND)

Posted: 25. September 2023 03:45
by Karado58
Hello Kirk,

Found fix by Mark, Development Team Leader at phpBB.

phpBB ACP, General, Resynchronise statistics

Thanks for trying to help!!

Re: [phpBB Debug] PHP Warning

Posted: 25. September 2023 09:12
by Kirk
Thanks for the feedback. :)
The Resynchronise statistics would have been my second tip.