Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Re: SCORM missing in courses
Maybe turn on debugging to see if there are any errors when displaying a course page?
Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Nevertheless, next upgrade, or database change (plugin install or so), and all repeats. I see these are all the same plugins.
Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
That sounds like the DB user you have in config.php of the site, doesn't have rights to alter the DB for the moodle.
So in your cPanel/Other Panel, look for a tool that sets privs for users and grant that user the ability to alter the DB.
Basically, the DB user for the moodle needs all.
There is a mdl_config_plugins table that also might be in need of carefully removing any rows relate to those plugins.
'SoS', Ken
Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
To be sure I need to give any privileges to DB moodle user:
as admin, I am able to install and remove any plugins, not via web but via commands.
Does it still mean I need to alter privs?
Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Wouldn't hurt to check would it?
Using the mysql client, logged onto the DB server using the creds in config.php:
SHOW GRANTS FOR '<user>'@'<host>';
Your host is probably localhost.
in code/admin/cli/
php uninstall_plugins.php --show-all
php uninstall_plugins.php --show-contrib
php uninstall_plugins.php --show-missing
php uninstall_plugins.php --purge-missing --run
php uninstall_plugins.php --plugins=[shortnameofplugin],[shortnameofotherplugin]
above is dry run
To actually remove:
php uninstall_plugins.php --plugins=mod_assignment --run
That script has the ability to remove tables but you must also manually remove related directories in code directory.
Think I'd try removal of the 'health' ... that has been removed from core and now available as an addon.
'SoS', Ken
Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
One other suggestion ... doesn't hurt to have some sort of panel - even if you don't use it often.
Linux based ... there is a free panel that has been around for years and runs under Perl ... Webmin.
https://webmin.com/
'SoS', Ken
Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Thanks for the Webmin reminder. In the mad scramble to get everything done that I need to with the upcoming Moodle 4.4 release, and especially getting a new Rocky 9 server up and running, I had totally forgotten about Webmin. Got it up and running now. Thanks again.
Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
in config.php
I get
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydbname';
$CFG->dbuser = 'myusername';
Just to be sure, I need to verify privs for myusername.
Having webmin installed (again, thanks), in
Servers > MariaDBDatabaseServer
I choose User Permissions,


Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
@PIotr
Select all (that grants all) in that pick list.
You've kinda exposed too much about your DB setup. Next time make screen clips.
You might want to look over:
https://docs.moodle.org/403/en/MariaDB
That moodle@localhost shows 'hosts' ANY.
You don't need any DB's that allow other hosts other than localhost.
Using Webmin, you can schedule daily SQL dumps of all the DB's and direct those dumps to a directory on your server. Advise doing that.
I would, however, make db dumps just prior to updating core or updating any plugins you have installed in the moodle from command line.
bu script right inside moodle code:
# 4.1.9+ (Build: 20240326)'
tar -cvf /mnt/data/backup/mdlandcli/mdlandcli-code-419+-$(date +%Y%m%d%-H%M%S).tar ../mdlandcli;
tar -cvf /mnt/data/backup/mdlandcli/mdlandcli-data-min-419+-$(date +%Y%m%d%-H%M%S).tar /var/www/mdlandclidata/filedir /var/www/mdlandclidata/dkim;
mysqldump -u root -p'' mdlandcli > /mnt/data/backup/mdlandcli/mdlandcli-419+-db-$(date +%Y%m%d%-H%M%S).sql;
ls -l /mnt/data/backup/mdlandcli;
df -h;
du -h /mnt/data/backup/mdlandcli/
Adjust above to your setup when it comes to paths/where to save.
And another item suggested install ... MySQLtuner - a perl script.
Run with root privs.
Read the recommendations for fine tuning your DB server.
You also need to check the host DB ... you only need localhost.
'SoS', Ken
Odp: Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Did the first update of Moodle, got the list of plugins "to be deleted", all went well but with the next change to db I will see if it is clean finally, and will let you guys know.
Piotr
Moodle 3.11 Glossary is not working
These are the steps I took.
- From front page
- turn editing on
- add activity Glossary
- import glossary content from backed up XML file
- check and make sure it is all there
- Edit > Edit Settings
- Is this glossary global? : checked
- Entries > Automatically link glossary entries: Yes
- Glossary type: Main Glossary
- From Site administration > Plugins > Activity modules > Glossary
- Approved by Default: Yes (default)
- Automatically link glossary entries: Yes (change default)
- From Site administration > Plugins > Filters > Manage Filters
- Glossary auto-linking: On
Re: Moodle 3.11 Glossary is not working
I checked the box by "Automatically link glossary entries: [ ] Yes default"
Automatically link glossary entries: is set to "Yes" by default. So if I check that, then that should change the default to "No" - or so I would think.
If checking this leaves the setting at "Yes" then it's always "Yes" and why even have it.
But why would it be set to "No" if I want the links to be automatically linked?
Odp: Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: Plugins to be delete during upgrade
See Leon's post:
https://moodle.org/mod/forum/discuss.php?d=448319#p1836390
All of those should not be in the DB and their directories in moodle code should not be there as well.
In your Webmin, MySQL tool, use the DB for the moodle and edit mdl_config_plugins table.
You will be able to recognize which rows to delete.
After you delete the rows, access the moodle GUI again.
or
Re-read this post
https://moodle.org/mod/forum/discuss.php?d=448319#p1836610
'SoS', Ken
Moodle Windows server Upgrade from 2012 to 2019
Good afternoon. I am writing to you asking for help. Not long ago, we have decided to upgrade the version of windows server from 2012 to 2019 and after that, half of our files stopped working (videos stopped playing and PDF files stopped opening).
Those files that were no longer available could not even be downloaded. Re-importing these files in moodle did not fix the problem.
For the test, we have returned to the old snapshot and everything worked as it should.
At the moment we are using moodle 3.6.9, php 7.3.22, windows server 2019
I will be grateful for any help.
Re: Moodle Windows server Upgrade from 2012 to 2019
Ri: Re: Moodle Windows server Upgrade from 2012 to 2019
If I understood right, the upgrade is about the underlying operating system Windows Server 2012 -> 2019, an upgrade that broke moodle embedded files.
It's hard to say something useful, but if you're using an IIS web server, you should carefully check that all the configurations stay the same between the two OSes and double/triple check about file/directory permissions.
Anyway, without more precise information on this and some error from the webserver/php error log, who knows?
User is getting message that "No data was changed"
User is getting message that "No data was changed" and the forum grades are not being updated. Please see the attached picture.
I am a new moodle installer and I need help please?
Hi, I am working as a new developer for a company that wants a new 4.2 Moodle site to replace their old 3.11 site but they want to keep their old one why I am working on the new one. They are both hosted on Ionos under the web hosting option. the one I am working on is myoutdoorsmoodle.co.uk
In the past, my IT department used to look after this side of things with our own College server so this is all new to me. I used to get the site Admin attached
I have done all I can and have installed it on the Ionos site and I can access it at the domain I have set up via the website but I do not get the usual site admin page as attached I get a very scaled-back version as seen in the other Image.
What am I doing wrong or do I have to start again?
Please help a first-timer