Page 1 of 1
BUG: Undefined variable text "behind" page content
Posted: 10 Apr 2023, 14:05
by Jools
All,
Due to the upgrade, I need to find a specific bug. To help, I've made some server changes (upgraded to PHP 8.1) and as a side effect any undefined variables in the code will output warning text like this:
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/latest_breederboard.php on line 24: Undefined variable
Warning text means stuff looks odd but functionality is not broken (except, perhaps, layout).
If just a few lines, the text maybe be hidden behind the menu/page header. Or there may be many lines of errors. If you spot one, post it here and I will fix as we go along.
Cheers, and thanks for your patience,
Jools
Re: BUG: Undefined variable text "behind" page content
Posted: 10 Apr 2023, 14:52
by bekateen
Hi Jools,
I got the error on the front page, hiding under the text. Here it is:
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/_articles.php on line 421: Undefined variable $old_part
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/_articles.php on line 453: Undefined variable $part_text
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/index.php on line 166: Undefined variable $meta
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/index.php on line 166: Undefined variable $breadcrumbs
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/arn_make_page.php on line 43: Undefined array key "species"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4188: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3032)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4188: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3032)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4188: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3032)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4188: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3032)
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/arn_make_page.php on line 47: Undefined variable $phpbb_root_path
Good hunting!
Eric
Re: BUG: Undefined variable text "behind" page content
Posted: 10 Apr 2023, 15:50
by Jools
Thanks Eric, I found part of the problem with the "onmouseeover" bug which means I can now undo the change I made to show all these warning messages.
However, one day, I need to put them on again and sort out all the warnings......
Jools
Re: BUG: Undefined variable text "behind" page content
Posted: 22 Aug 2023, 19:44
by Jools
...and of course, this "one day" is now upon us. Moving this one to resolved.
Jools