Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

de Wissalut A -
Número de respuestas: 5
Hi, I have a problem after upgraded the moodle to 4.3.2+

When I access the profile page or the dashboard menu, there was an error following:

Error

Exception - Call to undefined method IntlCalendar::setGregorianChange()
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 805 of \lib\classes\date.php: Error thrown
  • line 906 of \lib\classes\date.php: call to core_date::{closure}()
  • line ? of unknownfile: call to core_date::{closure}()
  • line 887 of \lib\classes\date.php: call to preg_replace_callback()
  • line 2390 of \lib\moodlelib.php: call to core_date::strftime()
  • line 327 of \calendar\type\gregorian\classes\structure.php: call to date_format_string()
  • line 2331 of \lib\moodlelib.php: call to calendartype_gregorian\structure->timestamp_to_date_string()
  • line 271 of \calendar\classes\external\day_exporter.php: call to userdate()
  • line 186 of \calendar\classes\external\day_exporter.php: call to core_calendar\external\day_exporter->get_view_link_title()
  • line 103 of \calendar\classes\external\week_day_exporter.php: call to core_calendar\external\day_exporter->get_other_values()
  • line 121 of \lib\classes\external\exporter.php: call to core_calendar\external\week_day_exporter->get_other_values()
  • line 164 of \calendar\classes\external\week_exporter.php: call to core\external\exporter->export()
  • line 121 of \lib\classes\external\exporter.php: call to core_calendar\external\week_exporter->get_other_values()
  • line 337 of \calendar\classes\external\month_exporter.php: call to core\external\exporter->export()
  • line 243 of \calendar\classes\external\month_exporter.php: call to core_calendar\external\month_exporter->get_weeks()
  • line 121 of \lib\classes\external\exporter.php: call to core_calendar\external\month_exporter->get_other_values()
  • line 3571 of \calendar\lib.php: call to core\external\exporter->export()
  • line 57 of \blocks\calendar_month\block_calendar_month.php: call to calendar_get_view()
  • line 337 of \blocks\moodleblock.class.php: call to block_calendar_month->get_content()
  • line 231 of \blocks\moodleblock.class.php: call to block_base->formatted_contents()
  • line 1231 of \lib\blocklib.php: call to block_base->get_content_for_output()
  • line 1289 of \lib\blocklib.php: call to block_manager->create_block_contents()
  • line 698 of \lib\outputrenderers.php: call to block_manager->ensure_content_created()
  • line 219 of \lib\mustache\src\Mustache\Context.php: call to core_renderer->standard_head_html()
  • line 138 of \lib\mustache\src\Mustache\Context.php: call to Mustache_Context->findVariableInStack()
  • line 31 of D:\Resources\localcache\mustache\1705574319\boost\__Mustache_73560842f9d6c5bc337558df4f13b989.php: call to Mustache_Context->findDot()
  • line 13 of D:\Resources\localcache\mustache\1705574319\boost\__Mustache_4aa1b29b14b62e9eb02cc88038b79589.php: call to __Mustache_73560842f9d6c5bc337558df4f13b989->renderInternal()
  • line 66 of \lib\mustache\src\Mustache\Template.php: call to __Mustache_4aa1b29b14b62e9eb02cc88038b79589->renderInternal()
  • line 208 of \lib\outputrenderers.php: call to Mustache_Template->render()
  • line 107 of \theme\boost\layout\drawers.php: call to renderer_base->render_from_template()
  • line 1486 of \lib\outputrenderers.php: call to include()
  • line 1412 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
  • line 179 of \my\index.php: call to core_renderer->header()
When searching for the solution, I found one of the posts that said that my regional format is not supported (I use Thai) but when I changed it to English(US), nothing happened.

Could you please help where should I do with this case? Thank you in advance.

Server Detail
OS: Windows Server 2019
Hosted on XAMPP with Apache 2.4.58, PHP 8.2.12, 
Promedio de valoraciones: -
En respuesta a Wissalut A

Re: Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

de Howard Miller -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
This is a problem with your PHP installation, not Moodle.

The function, https://www.php.net/manual/en/intlgregoriancalendar.setgregorianchange.php, is missing in your PHP. This would imply a problem with the Intl extension. Fixing this depends on how you are hosted and how PHP was installed.
En respuesta a Howard Miller

Re: Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

de Wissalut A -
Hi Howard,

It was installed on the XAMPP, so I assume that I can download the new version of the PHP and reinstall it to fix the problem.

I'm very new to this so, please advise.
En respuesta a Wissalut A

Re: Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

de Howard Miller -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
I don't know anything at all about XAMPP, sorry. However, I know a lot of people use it for Moodle so it's surprising that this is a problem. The Intl extension is a requirement for Moodle but I would certainly check it is enabled in your XAMPP system.

En respuesta a Howard Miller

Re: Error code: generalexceptionmessage when upgraded to Moodle 4.3.2+

de Wissalut A -
Checked on my config and also php_info. It was enabled.