Hi, I'm struggling to get to the root of this problem.
I am using 3.1.6 version and can't upgrade or delete anything. I keep getting this message.
Can anyone help me?
First step is to enable Debugging (all the way to developer and tick the show errors option underneath). Reproduce the error. Hopefully you will see extra messages. What are they?
You might have to check your web server's error log.
Thank you very much. I now get this:
Not sure what to do.
Jonny
Hi Jonathan
Please try after a clean cache in the moodledata folder.
If not working let me know.
Thank you very much.
Sorry, could you tell me how to get to the Moodledata folder?
Jonny
If you mean via Moodle Admin interface ... not possible.
Your debug indicates operating system is linux. Below is description via ssh/command line. If you do not use ssh/command line then use whatever tool you have to browse files and translate the commands into whatever buttons/tools you have in whatever you are using to browse files.
To locate the moodledata diretory, check the config.php file of your moodle code.
The line that shows the path (below is example):
$CFG->dataroot = '/home/example/moodledata';
So via ssh:
cd /home/example/moodledata/
issue 'pwd' to verify location
issue 'ls' which list all files/folders in moodledata
There will be two caches to clear:
cd cache
rm -fR * (this removes all files/folders in 'cache' directory)
It is safe to manually remove as the cache and localcache will be rebuilt as moodle is used.
You are located now in /home/example/moodledata/cache/
cd ../localcache/
You've moved up the tree one level and now in 'localcache'.
rm -fR * (as above ditto ... but in 'localcache'
There is no need to restart any service/moodle. Just hit moodle site with browser. Login. It will appear to be slower because caches are being rebuilt as you navigate Moodle links.
NOTE: after resolving the issue, turn off debugging.
** Important: make sure you are in 'moodledata' AND NOT the code directory for Moodle.
'spirit of sharing', Ken
....more likely the muc directory but deleting the 'cache' directory as well will do no harm.
'muc' folder contains the configuration and I'm pretty sure that's what's gone wrong. It's pointing to resources that no longer exist. We've had a few reports of this recently.
This is great. Is the 'much' folder in moodle site admin? or, hosting server. Or PHPadmin in host server?
Thank you Ken, this is very useful. But, above my level of understanding. I kind of get it but would need someone more experienced to actually do it.
Your moodledata folder is wherever $CFG->dataroot line points to in Moodle's config.php file (which is in the 'root' directory of your Moodle install).
When you've found it, completely delete the 'muc' folder and see what happens.
Obviously you'll need file level access to your server or hosting - or know someone that does.
Thanks, I have asked Krystal my hosts to do this. Is it dangerous?
No. The directory is recreated with a default version of the contents. That's why it will (hopefully) fix your problem.
Hi Howard, I deleted the 'Muc' with help from Krystal. Then tried the upgrade to 3.2 again. Which said 'fine', 'Done'. Then when I navigated to my Moodle I got this:
Then I did a reinstall from a back up of 3.1.6
Not sure how to progress.
Jonny
Did you restore from a backup before trying the upgrade again? It's possible your database was partly upgraded and was corrupted.
No, when I go to 'Upgrade' on 'Installation' it does a back up then upgrades independently.
When I navigated at the top of the other text I sent it said:
'Error reading from database'
Is this one of those third-party upgrade scripts?
If it is, it's very difficult to comment (at moodle.org) didn't develop it. I know I keep saying this but don't use these installers/upgraders as we have no idea what they do and it's very hard to help you when they go wrong.
I would observe though - are you saying this is restoring your site to the state it was in before it all went wrong and then upgrading? I highly doubt it
Hi,
It's the Moodle update, they just apply it for me.
I have backed up before each attempt to upgrade and I have to go back to the one I did a couple of days ago before I attempted to
This is my notifications page. I have tried to instal from here but it's a maze.
The problem is probably with this installer. Unfortunately we have no idea what these programs do to Moodle so it is impossible for us to help you trouble shoot.
At some point, for the long haul, you would be better to get rid of the installer and manually install Moodle. There is a bit of a learning curve but it is worth it in the long run.
Thanks, I need someone to take on sorting this immediate issue of upgrades out. Or, to take down my current version and reinstall the latest version. Do you know of anyone who can do this for me?
I would speak to whoever provided that installer and ask them to sort it out for you.