Quantcast
Channel: Installing and upgrading help
Viewing all 46917 articles
Browse latest View live

Re: Automated and Manual backups do not finish

$
0
0
by Howard Miller.  

You should debugging set to Developer and to display the messages. Nothing else is required.

You should also check your web server's error log in case anything has turned up in there. It's not impossible but it's unlikely that this is happing with no errors or warnings at all

Ajax error when using proxy reverse/Azure Gateway Service

$
0
0
by seaghan moriarty.  

We migrated a moodle application from version 3.5 to 3.9.9+ and we moved the application infrastructure from On-premise to Azure cloud provider.

We decided to use proxy reverse (Azure gateway service) and we are facing some errors with the Ajax requests. When we point moodle to the server ip address directly it works fine. The error is happening only with proxy reverse.

Notes: We are using database with SSL connection

In the Apache2 webserver logs we are seeing:

[proxy_fcgi:error] [pid 1879823:tid 140681771210496] [client 10.0.0.4:59766] AH01071: Got error 'PHP message: Default exception handler: Coding error detected, it must be fixed by a programmer: Invalid json in request: Syntax error Debug: \nError code: codingerror\n* line 63 of /lib/ajax/service.php: coding_exception thrown\n* line 33 of /lib/ajax/service-nologin.php: call to require_once()\n'



In the moodle config.php we configured in the following way to work with reverse proxy:

$CFG->wwwroot   = 'https://moodleurl.com'; // Domain pointed to gateway service IP address
$CFG->sslproxy = true;

We've tried a few configurations from moodle docs and some other articles.

https://docs.moodle.org/310/en/Reverse_proxy_frontend

https://moodle.org/mod/forum/discuss.php?d=406791

Re: Ajax error when using proxy reverse/Azure Gateway Service

$
0
0
by seaghan moriarty.  

The problem was solved! The configuration was fine. The problem was the WAF on Azure side that was blocking the requests.

MathML to MathJax conversion

$
0
0
by Zol Szekely.  

It is about math formulas in Moodle. My institution had recently upgraded the Moolde system from 3.8 to 3.9

Moodle 3.9 comes with the MathJax formula editor, that is different from the MathML plugin we had so far. The formats of the files in the Test Bank are also different. For some reason, the old files written by the previous editor cannot be displayed anymore. The Quizzes became cut-off and unreadable by Moodle. What technical tolols are available to perform the necessary file conversion successfully?

Thanks.

Re: Moodle upgrage from Moodle 3.6.10 to 3.11.2 halts with no error message

$
0
0
by Katlego Lerebolo.  

Hi Ken,


Will you outline and share with me recommended OS and DB requirements for moodle 3.11.2?

Regards

K

First upgrade help, going from Moodle 3.6.3 to 3.11

$
0
0
by James Wilson.  

Hi,


I am in the process of upgrading our school. It is currently set up on a local host using Apache, PHP, MariaDB and XAMPP.


I have to upgrade PHP and MariaDB but all I can find are references noting they need to be upgraded but not how to upgrade them.


I have checked many links and webpages, and there seems to be so many ways to upgrade Moodle but I have not found out how to upgrade the components that came with 3.6.3.


Can anyone give me a simple direction to the answer?


Thank you in advance for any help,


Jim W.

Re: First upgrade help, going from Moodle 3.6.3 to 3.11

$
0
0
by Howard Miller.  

XAMPP's purpose is to bundle all those things (PHP, Apache, MySQL etc) together to make for a straightforward installation for **test/development**. It's not intended for live sites - so you may have an issue there.

If you continue to use XAMPP then the question becomes "how do I upgrade XAMPP?" which may help you. I have never used it so can't be more help in that area.

Re: First upgrade help, going from Moodle 3.6.3 to 3.11


DDL Execute Error

$
0
0
by Brian Ball.  

Good afternoon, first time Moodle admin, first time poster.
I'm following the CLI upgrade process, and ran into the same error reported previously on this forum. My max execution time = 1200, so I'm not sure that's my fix. I'm more than happy to post anything you need. 

Re: DDL Execute Error

$
0
0
by Howard Miller.  

What versions are you upgrading from and to?

Re: DDL Execute Error

$
0
0
by Ken Task.  

in addition to responding to Howard's question and might be right on target.    First line of the debug output says the upgrade is trying to alter a table (change structure of it) ...  make sure the DB user in config.php of site has the privliges to do so.  And, the later lines suggest an additional plugin you've installed on instance might be incompatible.

Themes are plugins.   The default theme for 3.9+> is boost.  If you had a 3rd party theme, suggest editing config.php and adding a line to force the site to use 'boost':

$CFG-->theme="boost";

The local_sandbox plugin is an addon also! smile

Then try the command line upgrade again. smile

Always advised to do an environment check prior to updating/upgrading any moodle.   Site Admin Menu, Server, Environment check ... no reds! smile

'SoS', Ken

Re: DDL Execute Error

$
0
0
by Brian Ball.  

3.9.4 Build 20210118 Going to 3.11

Re: DDL Execute Error

$
0
0
by Brian Ball.  

I painstakingly went through every step laid out in Moodle's article on upgrading, so I did do the Environment check ,and all was good to go, no reds.
I will try your fixes, but not sure why the dbuser rights would have changed, and it appears that some tables were created successfully. Why would others fail if it were due to permission? That said, can you guide me on checking that the config.php dbuser 'moodle' has the necessary rights?

Re: DDL Execute Error

$
0
0
by Ken Task.  

It's not unusual for an update or upgrade to alter tables ... and it's not all that unusual that db user may not have all privs.

Before we fall into what might be a rabbit hole, there are some CLI scripts in admin/cli/ that will provide a lot of info about DB, tables, and columns in those tables.  And they use settings from config.php to do so (so it's like checking privs)

In admin/cli/ do a ls and any script that has mysql_ in beginning of the filename, run them. smile   Issuing just php mysql_whatever.php will bring up help screen that shows other options to the script.

'SoS', Ken

Re: Importancy and risk of moodle data folder with upgrade from 3.10.6 to 3.11.2

$
0
0
by Tim Gorter.  

Dear Leon,

Thanks for your update.
The problem likely occured because we were using the 'Installatron' tool to upgrade, thus leaving some old files.

We will follow your advise at the next upgrade!

Regards,

Tim Gorter


Re: DDL Execute Error

$
0
0
by Leon Stringer.  

There should be the error returned by MySQL/MariaDB before the part of the output you've posted, can you post that too?

It looks like this error concerns the H5P additional plugin mod_hvp (not to be confused with the H5P core plugin mod_h5p). However it looks like this is being installed for the first time, not upgraded. If the Moodle 3.8 site is still available can you check if this plugin is installed and which version?

Also, if this is Moodle 3.11 then it looks like the source code files are out of date as the line numbers in that stack trace don't match the current version. Working backwards:

So either you've got an older release of Moodle 3.11 for some reason, or there's some other problem with the Moodle source code you have.

Also: the advantage of using the CLI to upgrade is that the max_execution_time limit doesn't apply, so you don't need to change that.

Re: DDL Execute Error

$
0
0
by Leon Stringer.  

This error could occur if the mod_hvp tables were present in the database but the mod_hvp plugin wasn't actually installed in Moodle. The upgrade process would try to create the plugin's tables and fail because they already exist. So possibly the fix is to drop (delete) all the mdl_hvp_XXX tables.

If this is the case, you'll need to find out if the Moodle 3.8 site did have mod_hvp installed. If it did then Moodle shouldn't be attempting to create mdl_hvp_XXX tables now. If it didn't then what's the reason for installing the additional mod_hvp plugin when upgrading to Moodle 3.11?

If you do make any database changes, ensure you have a database backup first.

Cant complete upgrading and add activity/resource

$
0
0
by dinesh bakshi.  

Hi, 

I recently upgraded my moodle from 3.8 to 3.11+ however, during the final upgradation stage I am getting a blank screen with the message

Forbidden

You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


I am running php7.4  on the server.

I  ignored it and accessed my courses and everything looks fine to me when I view my courses.

However, I am unable to add any activity or resource to my course. The link does not work!

I have enabled debugging and I am getting the following message 

Notice: Undefined property: stdClass::$downloadcoursecontentallowed in /home/xxxxxxxx/public_html/vle/lib/classes/content.php on line 60

Kindly help.

Re: Cant complete upgrading and add activity/resource

$
0
0
by Ken Task.  

That's an apache error and suggest ownership/permissions on moodle code files has been set not to allow.

So ... exactly how did you upgrade?

3.11 is now $release  = '3.11.2+ (Build: 20210827)'

And how does one 'ignore' the error?

That section of code in that file has comments:

// If enabled/disabled explicitly set on course, use that as the course setting, otherwise use site default.

// Modules can only be exported if exporting is allowed in their course context.

'SoS', Ken

Re: Cant complete upgrading and add activity/resource

$
0
0
by dinesh bakshi.  

Dear Ken,
Thanks a ton for the immediate help. I followed your suggestion and now everything is working fine!
Viewing all 46917 articles
Browse latest View live