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

Re: Video vimeo Embedly cdn in frame scorm not loading

$
0
0
by Rick Jerz.  

Your problem, as described, does not connect with Vimeo, but rather seems to be a SCORM issue. The web page that could not be loaded refers to "file://", which might be pointing to a physical hard disk instead of a file on your website. This could be internal to your SCORM component. Having said this, I don't do SCORM so this is about all that I can say. There are others here on Moodle.org who should be able to help with other ideas. I just wanted to give you my quick observation.

"Error: Internal script failure" on login page after trying to configure CAS

$
0
0
by Jacob Walker.  

Hi all,

I've been trying to configure CAS for SSO. I've configured it (badly, I guess...) and disabled all auth plugins except manual accounts and CAS. I now get "Error: Internal script failure" on the login page. I can't access anything but the empty front page and this error.

I've followed the instructions here and still can't find any useful logs anywhere, so there's no way to tell what the actual issue is. I've had a look through the database but can't find how I would change which auth plugins are enabled. There's another forum post somewhere about a similar issue, but the resolution seemed to involve logging in.... which I can't do.

Any advice?

This is a fresh installation of Moodle 3.9 running on Ubuntu server 20.04.1 LTS.

Re: Shared hosting not allowing 1 minute Cron

$
0
0
by Antonio A.  

Rick and Visvanath, Thanks for your help here!

Rick your observation is very helpful!

Visvanath, thanks I didn't want to go the way of the Web based Cron as the documentation says unit might be removed in the future, but I might consider it:

"...If, for some reason, you cannot run the CLI script there is the web based script. Note that this is now deprecated and may be removed in future versions.

(https://docs.moodle.org/en/Cron)

...

Re: Import function Moodle 3.9.2 not working in xampp/bitnami

$
0
0
by Phillip Braas.  

Don't know how but I turned on the debug function and now it's working. Problem solved.

Re: JSON.parse: unexpected character at line 1 column 1 of the JSON data

$
0
0
by Josef Kovar.  

Solved.

The problem was caused by the presence of jQuery before the JSON response in the file /mod/wiziq/locallib.php.
[{"error":false,"data":{"content_items":[{"id":3,"name":"choice","title":"Anketa","link":"https:\/\/moodletest.mup.cz\/course\/mod.php?id=663&add=choice","icon":"

After uninstalling A Virtual Classroom Plugin: WizIQ: mod_wiziq
immediately everything started to work perfectly.

Re: Unable to convert mdl_user table collation

$
0
0
by Syed Ali.  

It did not work.
When I list collation using following command.
php admin/cli/mysql_collation.php -l
It shows manay tables with utf8mb4_unicode_ci
and table mdl_user with  utf8_general_ci
and bunch of ohter table with  utf8_general_ci
total 129 tables are using  utf8_general_ci

OAuth 2 Microsoft service issue

$
0
0
by kiko derrij.  

Hello,

after setup the Oauthen2 within moodle and following the documentaion:  https://docs.moodle.org/39/en/OAuth_2_Microsoft_service  i'am trying to use  azure user account to authenticate my users 

but when i  try to connect to microsoft i get this error message  can someone help please it's the first time that i setup a moodle platform and i don't know to much about it 



Thank you 

Re: Unable to convert mdl_user table collation

$
0
0
by Ken Task.  

Command did not work using 'superuser' credentials added to config.php of site?

In config.php what is the current setting for db collation?

Can you use mysql client (not the php script) and alter the database to use utf8mb4 character set and utf8mb4_general_ci?

Do you have any settings in my.cnf for system wide character set collation?  How about a 'client' section in my.cnf settings for same?

Reason for using script .. it loops through all tables and columns in the DB ... other wise, one has to issue alter commands per table/columns to convert ... and there's just too many tables/columns to do that one at a time.

Suggest making a sql dump of database for moodle.   Import that to a DB by a different name - change config.php to point to the db by different name and tinker some more.

Do you see any mysql DB errors?

And just to make sure ... what version of MySQL are you running?

Check PM on this system for additional assistance with this.

'SoS', Ken


Re: Unable to convert mdl_user table collation

$
0
0
by Ken Task.  

Always more than one way to 'skin a cat'! smile

Please see:

https://docs.moodle.org/31/en/Converting_your_MySQL_database_to_UTF8

There are two other ways besides the script using a valid sql dump of the database ... described in link above - a sed command or editing the sql file with a text editor.

However, rather than using 'vi' editor as shown in link above, one can use 'nano' (which is normally present on RH family servers and am gonna say 'more user friendly' [debatable as usual]).   Nano has search and replace.

After successful search and replace with an editor, import DB by a new DB name.   Change config.php to point to new DB.   Then access site and do an environment check ... or run that same command with -i (for information).

'SoS', Ken

Re: Unable to convert mdl_user table collation

$
0
0
by Syed Ali.  

We are using Marida DB 10.3

Re: Unable to convert mdl_user table collation

$
0
0
by Ken Task.  

That version of MariaDB is supposed to be a 'drop in replacement' for MySQL.  The following commands are the same: mysql, mysqldump, mysqladmin.

At any rate, editing the sql dump with nano and doing search and replace with nano is outside of DB service.  You only have to import the edited sql into a new DB for the moodle:

mysql -u root -p

At the mysql> prompt create a new DB for the moodle:

mysql> create database newmoodle character set utf8mb4 collate utf8mb4_general_ci;

Quit the client ... \q [ENTER]

Now import the edited sql into the 'newmoodle' DB;

mysql -u root -p newmoodle < editedsqldumpfile.sql [ENTER]

Quit client: \q [ENTER]

Edit config.php file and change the DB name to 'newmoodle'.

To check, use the same php script you used before with the -l (lower case "L") option for listing.

php mysql_collation.php -l

screen will scroll showing all tables and columns in those tables.  At the very end you should see something similar to:

Table collations summary for [yoursite]:
utf8mb4_general_ci: 1547

'SoS', Ken


Re: MAMP on laptop - Config table does not contain version

$
0
0
by Alan Brown.  

Thanks Rick - this is amazing! Worked flawlessly 🙂
This was SO helpful. 
Those other Moodle packages need some major reworking...

Re: MAMP on laptop - Config table does not contain version

$
0
0
by Rick Jerz.  

Glad everything worked. Now the fun begins. It is really great to have a Moodle sandbox where you can experiment, have fun, cause damage (to your ego), then simply redo it when needed.

I think that I have a feature request somewhere in Tracker requesting a few changes and improvements to their AMP distributions. The folks at Moodle headquarters are great folks, I have met a number of them, and they are hard working individuals. However, priorities are important, and I totally understand when some things get fixed and some things do not.

Re: Moodle 3.5 to 3.9 upgrade FAIL

$
0
0
by Leon Stringer.  

Presumably MySQL (or MariaDB) is in use as the site database?

I think after the failed first upgrade attempt some new tables including mdl_badge_alignment were created.

When the 3.5 database was restored this didn't remove the new tables, this is the default behaviour with mysqldump/mysql < XXX.sql.

So the upgrade is failing because Moodle expects only the un-upgraded 3.5 tables to be present in the database.

The solution would be to either remove the new tables or, probably easiest, delete and re-create the database, e.g. assuming 1) it is MySQL/MariaDB, 2) the database character set and collation is utf8mb4 and utf8mb4_unicode_ci respectively, and 3) the database is called moodle:

DROP DATABASE moodle;
CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Then do the database restore and the upgrade should then work. If you upgrade using the command line then max_execution_time isn't an issue (it's 0, i.e. infinite) so there's no risk of a timeout.

Re: Unable to convert mdl_user table collation

$
0
0
by Syed Ali.  

CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
or
I supposed to use utf8mb4_general_ci ?

Re: Unable to convert mdl_user table collation

Re: Unable to convert mdl_user table collation

Re: Unable to convert mdl_user table collation

$
0
0
by Ken Task.  

@Leon ... you can butt in anytime! smile

Guess leaving old docs around not such a good idea.

unicode if you plan to use emoj's or have courses using Asian languages?   If the use of emoj's is that important in online education then what can I say!

'SoS', Ken



Re: Unable to convert mdl_user table collation

$
0
0
by Leon Stringer.  

The docs do need some love, there's some out-of-date and contradictory information in there.

I think it's the utf8mb4 character set that's important for storing emojis, and other newer characters. The collation is important for the sort order, as far as I can work out utf8mb4_unicode_ci is favoured over utf8mb4_general_ci in general not just for Moodle – the MySQL docs describe the latter as"faster, but slightly less correct".

I have a problem displaying files loaded with the update to version 3.9.2

$
0
0
by maria jose carballo.  

I have updated the moodle to version 3.9.2. Now when I upload an image, a video or any attachment in the editor, the application uploads it, but I no longer see it. This implies that I cannot delete it, nor modify anything. According to those responsible for my hosting, it may be a bug in the moodle version. I don't know if this has happened to anyone, but I'm a bit anxious.


Viewing all 46972 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>