cuny-academic-commons / commons-in-a-box

Commons In A Box - A suite of community and collaboration tools for WordPress, designed especially for academic communities
http://commonsinabox.org
72 stars 14 forks source link

Broken sidebar menu on Fresh Install of OpenLab #460

Closed beckej13820 closed 7 months ago

beckej13820 commented 7 months ago

Just did a fresh install of OpenLab:

WordPress version 6.3.2 PHP 8.0

-- The menu that is causing the issue is the automatically generated side menu that is visible on the about page.

Screenshot 2023-12-04 at 2 24 10 PM

I've confirmed that this is a PHP issue by rolling the site back to 7.4, and there is no error, and then by returning to 8.0 where the errors appear again.

Copy and Paste from error logs:

[04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:09:20 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:18:24 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:19:47 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1328 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined variable $parent in /home/binghamtonsunycr/public_html/wp-content/themes/openlab-theme/lib/menus.php on line 1333 [04-Dec-2023 19:22:57 UTC] PHP Warning: Undefined property: stdClass::$current in /home/binghamtonsunycr/public_html/wp-includes/class-walker-nav-menu.php on line 234

boonebgorges commented 7 months ago

Thanks for the report. For the time being, you should disable PHP errors from being displayed on your site:

define( 'WP_DEBUG', false );
// or perhaps you will need
error_reporting( 0 );
boonebgorges commented 7 months ago

This should be resolved by the above commits.