Is it possible to restore my moodle from a cron job?
Here's my cron that I run every night at midnight my time (EST)
If so, please give detailed instructions as I am not much of a techie. I'm looking at this method because I have an error after trying to do an upgrade and it won't let me past the page with the following error message:
=====snip=====
Error code: detectedmisplacedplugin
- line 454 of /lib/upgradelib.php: plugin_misplaced_exception thrown
- line 1630 of /lib/upgradelib.php: call to upgrade_plugins()
- line 433 of /admin/index.php: call to upgrade_noncore()
======end snip=====
=====snip=====
Let me guess, you arrived here after trying to install a new theme? If so then check that the version.php of the theme in question, and make sure that it is completed correctly, especially this line...
$plugin->component = 'theme_yourthemename'; // Full name of the plugin (used for diagnostics)
...where 'yourthemename' is the correct spelling of the theme you are trying to install.
=====end snip======
I was not trying to install a theme, rather an upgrade. Currently using 2.9. Here's my cron job:
/usr/local/bin/php -q /home/barbhall/public_html/learnpianotechnology.com/moodle/admin/cli/cron.php
Can anyone help?
Thanks in advance,
Barb