dbnschools / moodle-theme_fordson

Theme for Moodle 3.3+
42 stars 40 forks source link

Latest Moodle 3.7 Fordson v3.7 release 1.2 throws errors #89

Closed bollycanuk closed 4 years ago

bollycanuk commented 5 years ago

Installed the latest version of Fordson theme on my Moodle site with latest build (Moodle 3.7.1+ (Build: 20190824)). Now on Front page the follows error message is displayed 58 times just below the icon section.

Notice: Undefined variable: customfieldcontent in /home/astenj5/public_html/ate/ajolt_test/theme/fordson/classes/output/core/course_renderer.php on line 205 screencapture-astenjohnson-university-ajolt-test-2019-08-28-10_45_24

dbnschools commented 5 years ago

Open up that file and just above line 165 add this: $customfieldcontent = '';

Let me know if that fixes the issue.

bollycanuk commented 5 years ago

Just testing various scenarios. Seems to be related to the Course Style Display setting. If I choose anything other than Corporate Learner or Moodle Course default I get the error.

bollycanuk commented 5 years ago

Sorry, Course Tile Display and Corporate Training - minimal ....

dbnschools commented 5 years ago

I provided the solution. But I also just posted version 1.2.1 which fixes this.

bollycanuk commented 5 years ago

Yup, that did the trick! Thanks !

dbnschools commented 5 years ago

I'll leave this open in case others have this issue they can see the solution or download the update. Thanks for posting the issue. In my test setup I didn't get an issue. Mainly because I was already using Custom Fields. When I turned that off the issue appeared and I knew right away what was missing.