Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81512

New theme settings break for third-party themes

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-81512-main
    • Hide

      Test 1

      1. From site administration access the "Appearance" page.
      2. Verify you do not see a "Custom theme settings" section.
      3. Within "Appearance", click on "Themes".
      4. Verify that clicking on the settings cog within both Boost and Classic takes you to the expected theme's settings page.
      5. Install the following plugins:
        1. Adaptable: https://moodle.org/plugins/theme_adaptable/403.1.4/31629 (unzip the plugin to the theme/adaptable folder).
        2. Eguru: https://moodle.org/plugins/download.php/29725/theme_eguru_moodle42_2023080101.zip (unzip the plugin to the theme/eguru folder).
      6. Visit site administration and run through the upgrade process so the above are installed.
      7. Verify that the upgrade process is done without any errors.
      8. From site administration access the "Appearance" page.
      9. Verify you do not see any errors.
      10. Verify you can see a new section called "Custom theme settings".
      11. Verify that you see both Adapatable and Eguru listed within the Custom theme settings section on the page.
      12. Verify Eguru is not listed in the Appearance section of the page.
      13. Click on "Adaptable" theme and verify you do not see any error.
      14. Click on "Settings" and "Import / export settings" and verify you don't see any error.
      15. Navigate to Site administration > Appearance > Themes and click "Select theme" on the "Adaptable" theme. Verify you do not see any error. 
      Show
      Test 1 From site administration access the "Appearance" page. Verify you do not see a "Custom theme settings" section. Within "Appearance", click on "Themes". Verify that clicking on the settings cog within both Boost and Classic takes you to the expected theme's settings page. Install the following plugins: Adaptable: https://moodle.org/plugins/theme_adaptable/403.1.4/31629 (unzip the plugin to the theme/adaptable folder). Eguru: https://moodle.org/plugins/download.php/29725/theme_eguru_moodle42_2023080101.zip (unzip the plugin to the theme/eguru folder). Visit site administration and run through the upgrade process so the above are installed. Verify that the upgrade process is done without any errors. From site administration access the "Appearance" page. Verify you do not see any errors. Verify you can see a new section called "Custom theme settings". Verify that you see both Adapatable and Eguru listed within the Custom theme settings section on the page. Verify Eguru is not listed in the Appearance section of the page. Click on "Adaptable" theme and verify you do not see any error. Click on "Settings" and "Import / export settings" and verify you don't see any error. Navigate to Site administration > Appearance > Themes and click "Select theme" on the "Adaptable" theme. Verify you do not see any error. 
    • Team Hedgehog 2024 Sprint 1.4

      Probably related to with MDL-78426 and/or MDL-78425

      For testing I've used this plugin: https://moodle.org/plugins/theme_adaptable/versions

      Post installation, when reaching the upgrade settings page:

      parent does not exist!
       
          line 948 of /lib/adminlib.php: call to debugging()
          line 81 of /theme/adaptable/settings.php: call to admin_category->add()
          line 357 of /admin/settings/appearance.php: call to include()
          line 8855 of /lib/adminlib.php: call to require()
          line 22 of /admin/upgradesettings.php: call to admin_get_root()
      

      Repeated 6 times

      The same is also subsequently repeated 6 times on every page load (without yet enabling the theme)

      I navigate to Appearance > Themes and press the settings cog for the Adaptable theme:

      Section error!
       
      More information about this error
      Debug info:
      Error code: sectionerror
      Stack trace:
       
          line 26 of /admin/settings.php: moodle_exception thrown
      

      Errors. I can't configure it The same parent does not exist is also spammed across the page

      I to back to Appearance themes and select the Adaptable theme

      My page has errors everywhere

      "parent does not exist" - except now they're errors instead of debugging

      Now the following too:

      Warning: Undefined property: stdClass::$blockicons in /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php on line 114
       
      Warning: Undefined property: stdClass::$blockside in /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php on line 124
       
      Warning: Undefined property: stdClass::$maincolor in /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php on line 450
      Skip to main content
      Blocks
      Skip Navigation
      Navigation
       
          Dashboard
       
              Site home
       
              Site pages
       
              My courses
       
              Courses
       
      Skip Administration
      Administration
       
          Site administration
       
              Notifications
       
              Registration
       
              Feedback settings
       
              Advanced features
       
              Users
       
              Courses
       
              Grades
       
              Analytics
       
              Competencies
       
              Badges
       
              H5P
       
              Licence
       
              Power users generator
       
              Location
       
              Language
       
              Messaging
       
              Payments
       
              Plugins
       
              Security
       
              Appearance
       
                  Logos
       
                  Course card colours
       
                  Calendar
       
                  Blog
       
                  Navigation
       
                  HTML settings
       
                  Moodle Docs
       
                  Default Dashboard page
       
                  Default profile page
       
                  Courses
       
                  AJAX and Javascript
       
                  Manage tags
       
                  Additional HTML
       
                  Templates
       
                  Advanced theme settings
       
                  Themes
       
                  User tours
       
              Site home
       
              Server
       
              Reports
       
              Development
       
              MoodleNet
       
              Site admin presets
       
      Search in settings
      Skip Admin bookmarks
      Admin bookmarks
      Bookmark this page
       
      Warning
      : Undefined property: stdClass::$showusername in
      /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php
      on line
      243
       
       
      Warning
      : Undefined property: stdClass::$sitetitle in
      /var/www/html/theme/adaptable/classes/output/core_renderer_toolbox.php
      on line
      1647
       
       
      Warning
      : Undefined property: stdClass::$editsettingsbutton in
      /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php
      on line
      280
       
       
      Warning
      : Undefined property: stdClass::$enablezoom in
      /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php
      on line
      309
       
       
      Warning
      : Undefined property: stdClass::$responsiveheader in
      /var/www/html/theme/adaptable/classes/output/core_renderer_layout.php
      on line
      321
      

        1. boost union-1.png
          boost union-1.png
          268 kB
        2. boost union-2.png
          boost union-2.png
          293 kB
        3. MDL-81463.png
          MDL-81463.png
          570 kB
        4. MDL-81512.png
          MDL-81512.png
          64 kB
        5. MDL-81512-1.png
          MDL-81512-1.png
          2.08 MB
        6. Screenshot from 2024-04-12 17-07-14.png
          Screenshot from 2024-04-12 17-07-14.png
          67 kB

            michaelh Michael Hawkins
            pholden Paul Holden
            David Woloszyn David Woloszyn
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            2 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 6 hours, 47 minutes
                1d 6h 47m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.