Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Олексій Буренко -
回帖数:8

Hi
When I try to upgrade to version 4.1 I get an error

Call to a member function setGregorianChange() on null


What it can be connected with?

回复Олексій Буренко

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Leon Stringer -
Core developers的头像 Particularly helpful Moodlers的头像

Enable debugging, this should show more details with the error message.

回复Leon Stringer

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Олексій Буренко -
Now i have an error
Fatal error: Declaration of theme_adaptable\output\core\course_renderer::course_modchooser($modules, $course) must be compatible with core_course_renderer::course_modchooser() in D:\www\osvita.vpo.com.ua\theme\adaptable\classes\output\core\course_renderer.php on line 70
回复Олексій Буренко

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Leon Stringer -
Core developers的头像 Particularly helpful Moodlers的头像

I think you've got an old version of the Adaptable theme. The 4.1 version doesn't declare course_modchooser() on line 70 (or anywhere) in classes/output/core/course_renderer.php.

Make sure you've got the latest Adaptable version for Moodle 4.1.

回复Олексій Буренко

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Олексій Буренко -
i founded there is somesing wrong with pnp 8.0.25
Switched to version 7.4.33 everything works
回复Олексій Буренко

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Олексій Буренко -
I would really like the moodle to work on php 8-8.1
回复Олексій Буренко

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Different versions of Moodle are compatible with different versions of PHP. You'll find a summary here: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.

If you mean, you would like to run Moodle 4.1 on PHP 8.1, then you have to wait: MDL-73016. Even when it is done, the question remains whether the (non-core) Theme Adaptable has a version for Moodle 4.1 and PHP 8.1.
回复Visvanath Ratnaweera

Re: Upgrading to 4.1.0 from 4.0.5+ (Build: 20221125) error

Олексій Буренко -
Thanks, why then I have an error on php version 8.0.25
Call to a member function setGregorianChange() on null