Is it as simple as web-based cron has not been switched on? It's off by default.
As others have noted, if there's some way you can run the command line cron it would be better. Moodle has been threatening to remove the web-based version for years.
Yep, you are correct Howard! 200 indicates wget worked but doesn't mean actually running all of cron/task ... just like a mysqldump.
Still seems to be some conflicting info?
Moodle 3.7 ...
admin/cron.php file has the follwoing in comments:
* This file is best run from cron on the host system (ie outside PHP).
* It is strongly recommended to add password protection via admin settings.
*
* eg wget -q -O /dev/null 'http: *moodle.somewhere.edu/admin/cron.php?password=SeCreT666'
*
* It is also possible to use CLI script admin/cli/cron.php instead,
* you can not call this script from command line any more.
In a posting about cron a couple of years ago, a Moodle core programmer
said such methods (wget) have been depreciated and one should use the cron script in admin/cli/
In moodle docs online,
https://docs.moodle.org/37/en/Cron
there is a link for cron services.
"EasyCron - A webcron service provider that eliminates the need of crontab or other task schedulers to set cron job."
Screen shot uses wget as above example.
On remotely hosted systems using Easy Apache, cron has to be setup finding php-cli ...
and not the php used for the web service.
In moodle code directory, 'which php' on some systems using Easy Apache errantly found the highest available php version first ... has to do with how many versions of php provider has via cPanel/Easy Apache and the environmental path of system .
Have been into at least 6 different provider VPS's and it hasn't always been the same!!!
That to say ... no way Moodle docs could be 100% correct and cover all providers! :|
Always an 'adventure'!
'SoS', Ken
Hi there,
I have a fresh installation running that's working fine (everything looks great, messages are sent via Email) but nevertheless the server message says:
'The cli/cron.php maintenance script has not been run for at least 24 hours. '
I checked with my hosting provider, the cron job seems to tun correctly:
Line 3017: 109.237.138.50 - - [19/Oct/2019:09:35:01 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de Line 3054: 109.237.138.50 - - [19/Oct/2019:09:40:02 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de Line 3208: 109.237.138.50 - - [19/Oct/2019:09:45:00 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de Line 3232: 109.237.138.50 - - [19/Oct/2019:09:50:01 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de Line 3251: 109.237.138.50 - - [19/Oct/2019:09:55:00 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de
Any ideas or tipps?
Stefan
Click on "provide admin consent " button, then log in with an Azure administrator account to provide consent i am getting the following error .
"There was a problem logging you in. Please contact your administrator for assistance.
More information about this error"
Once click on more "more information about this error:
This page does not exist yet. You can search for this page title in other pages, or let us know by posting about it in one of the Moodle community forums.
Please help me to how i can achieve Microsoft office 365 integration with moodle .
Hello,
I have a strange issue with moodle 3.6.6 connecting to the Mariadbdatabase on our test enviroment, that I can't seem to make sense of...
I get a dmlreadexception- only when I try to open the messages. The strange thing is that can't seem to locate any other place where this occurs.
php errorlog gives me:
[21-Oct-2019 12:33:59 Europe/Stockholm] PHP Warning: mysqli::query(): MySQLserver has gone away in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 1246
[21-Oct-2019 12:33:59 Europe/Stockholm] PHP Warning: mysqli::query(): Error reading result set's header in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 1246
All tables are utf8mb4_unicode_ci
Hi Lewis,
I am planning an upgrade from 3.1 to 3.6 as well. I'm curious if you have a particular reason why upgrade to 3.3 first, instead of 3.4?
thanks.
Login to your moodle and go to Admin Menu -> Server -> Environment.
Update component.
Set pick list to the versions of moodle higher than what you are running now an observe the red and yellow checks. There's your roadmap for a 'march'.
3.1 -> 3.2 PHP 5.6.5 Min.
3.3 -> 3.4 PHP 7.0.x Min.
3.5 -> 3.6 PHP 7.0.x Min. + MySQL 5.6 Min
3.6 -> 3.8upwards ... ditto
When you see a required it means you must make that PHP/MySQL upgrade prior to attempting the Moodle upgrade.
'SoS', Ken
thanks this is really helpful.