Re: Video vimeo Embedly cdn in frame scorm not loading
"Error: Internal script failure" on login page after trying to configure CAS
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
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
Re: JSON.parse: unexpected character at line 1 column 1 of the JSON data
[{"error":false,"data":{"content_items":[{"id":3,"name":"choice","title":"Anketa","link":"https:\/\/moodletest.mup.cz\/course\/mod.php?id=663&add=choice","icon":"
immediately everything started to work perfectly.
Re: Unable to convert mdl_user table collation
When I list collation using following command.
and bunch of ohter table with utf8_general_ci
OAuth 2 Microsoft service issue
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
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
Always more than one way to 'skin a cat'!
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
Re: Unable to convert mdl_user table collation
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
Re: MAMP on laptop - Config table does not contain version
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
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
Re: Unable to convert mdl_user table collation
According to:
https://docs.moodle.org/31/en/Converting_your_MySQL_database_to_UTF8
referenced earlier ... all on that page shows 'utf8mb4_general_ci'
check it out.
'SoS', Ken
Re: Unable to convert mdl_user table collation
Hope you don't mind me butting in:
I'm pretty sure it should be utf8mb4_unicode_ci.
That document Converting_your_MySQL_database_to_UTF8 is mainly from 2012 (Moodle 3.1), the current instructions are MySQL_full_unicode_support.
Both that latter document and the installation instructions use utf8mb4_unicode_ci.
Re: Unable to convert mdl_user table collation
@Leon ... you can butt in anytime!
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
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
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.