Notice: Undefined property: stdClass:

Issue #516 resolved
Jürg Hoerner created an issue

With the new Version I receive in debug mode the following notice:

Notice: Undefined property: stdClass::$topmenuscount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/header_menus.php on line 89 Notice: Undefined property: stdClass::$toolsmenuscount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/header_navbar_menu.php on line 61 Notice: Undefined property: stdClass::$newstickercount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/frontpage_ticker.php on line 71 Notice: Undefined property: stdClass::$slidercount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/frontpage_slider.php on line 177 Notice: Undefined property: stdClass::$alertcount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/alert_box.php on line 74 Notice: Undefined property: stdClass::$analyticscount in /var/www/lms.alte-kanti-aarau.ch/moodle/theme/adaptable/settings/analytics.php on line 62

Comments (7)

  1. Michael Milette

    I have the same problem. Lots of un-initialized variables depending on where you are on the Moodle site.

    For example, I get the following notices on the Moodle Notification page as well as the Theme Selector and Theme Settings page (and probably others):

    Notice: Undefined property: stdClass::$topmenuscount in /var/www/moodle/adaptable/settings/header_menus.php on line 89

    Notice: Undefined property: stdClass::$toolsmenuscount in /var/www/moodle/adaptable/settings/header_navbar_menu.php on line 61

    Notice: Undefined property: stdClass::$newstickercount in /var/www/moodle/adaptable/settings/frontpage_ticker.php on line 71

    Notice: Undefined property: stdClass::$slidercount in /var/www/moodle/adaptable/settings/frontpage_slider.php on line 177

    Notice: Undefined property: stdClass::$alertcount in/var /www/moodle/adaptable/settings/alert_box.php on line 74

    Notice: Undefined property: stdClass::$analyticscount in /var/www/moodle/adaptable/settings/analytics.php on line 62

    I have debugging turned on and the "Clean" theme activated on the latest Moodle 3.1.2+. I have not activated the Adaptable Moodle theme yet. This is a that plain vanilla installation of Moodle that I just installed today.

    Let me know if you need any additional information.

    Best regards,

    Michael

  2. Log in to comment