Updating problem

Updating problem

Louie Angelo Villegas -
回帖数:12

Hi!

I've just updated my Moodle site to Moodle Version Moodle 3.9.2+. I have followed all the instructions given here https://subscription.packtpub.com/book/hardware_and_creative/9781783289714/1/ch01lvl1sec13/updating-moodle. I also checked all the minimum system requirements needed for the new version, and i passed. During the update, it went well. However, when the teachers are trying to create their lessons, they have encountered a problem. Please check the picture below.

What was problem with this?

Cheers!


回复Louie Angelo Villegas

Re: Updating problem

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

What theme does the site use and what version of that theme? Try switching to Boost, does the same problem occur?

回复Leon Stringer

Re: Updating problem

Louie Angelo Villegas -
I am using Moove theme. I'm sorry but I can no longer retrieve its version.
And I have changed it to Boost with same error.


回复Louie Angelo Villegas

Re: Updating problem

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

Does the site have any Additional HTML? If so try removing this (make a copy as a backup first).

If Cloudflare is in use is caching enabled? Caching in front of Moodle typically doesn't work as this cache serves out-of-date pages. Disable Cloudflare's caching for this site if this is in use.

回复Leon Stringer

Re: Updating problem

Louie Angelo Villegas -
I haven't created to added any HTML codes in the web. But, with regards to Cloudflare, YES. I have used Cloudflare on my Moodle site to solve some issues. This issues, which I also have posted in this forum, is about an error encountered by my Moodle site everytime the number of online users reaches 200. However, I will try to disable it in the meantime.
回复Louie Angelo Villegas

Re: Updating problem

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

Adding caching in front of Moodle tends to break it because the cache can serve old copies of files instead of the version Moodle has generated.

It sounds like you have two issues:

  1. The "Database connection failed" message: Check the MySQL log to see if it's logging any message. MySQL keeps a counter of when max_connections is exceeded, check if that increases when the error occurs.
  2. General performance concerns: There's no single or simple answer to this, each Moodle site is doing different things at different times so it's up to admins to monitor and configure their site as needed. Maybe the server spec needs increasing to handle the load or split roles across servers. Ensure OPcache is enabled and configured correctly. Then check the Performance Recommendations, some of this is out of date but it's a good starting place.
回复Leon Stringer

Re: Updating problem

Louie Angelo Villegas -

Problem still exist.

I have already disabled Cloudflare (the IP address of my server was already displayed when i ping my Moodle site) and purged the cache on my Moodle site.


回复Louie Angelo Villegas

Re: Updating problem

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

Do you mean that you are using a hosts file entry (or internal DNS) to bypass Cloudflare? That would be a good way of ruling out the Cloudflare cache as the cause: use a hosts file entry to use the Moodle web server's IP address instead of the Cloudflare IP address.

You can see if cached content is being served by looking for the cf-cache-status HTTP header in your browser's developer tools (e.g. Network Monitor in Firefox).

Firefox Network Tools showing HTTP header cf-cache-status

The header cf-cache-status: HIT means that cached content is being served for that file.

If the Cloudflare cache is ruled out then the next things to check are 1) do you have any additional plugins installed and could they be interfering with the layout and 2) are there any JavaScript errors in the browser (e.g. Web Console in Firefox or Console in Chrome).


回复Leon Stringer

Re: Updating problem

Louie Angelo Villegas -
BTW, does the updating also updates the moodledata folder?