Moodle not working after hosting migration

Moodle not working after hosting migration

by Nayara Grande -
Number of replies: 6

Hello, 

A client of mine (web design client) changed hosting recently and moodle stopped working. The person that installed this is MIA so he turned to me for help but i don't know what to do here, i am flying blind and i don't want to make things worse, i already downloaded a backup and a entire database backup (better safe than sorry)

After migration he is getting this error:
Fatal error: Non-abstract method core_component::get_component_list() must contain body in /home/capaci17/public_html/moodle364/lib/classes/component.php on line 1266

*Extra info: The new server is running on php 5.6 i don't know if this is even relevant, i will need to change it to the latest but i don't know if that will have any impact on moodle.

Any idea how can i get this to work, any tutorial i can refer, anything at all will help me. 

Thanks in advance.  

Attachment Sin-título-1.jpg
Average of ratings: -
In reply to Nayara Grande

Re: Moodle not working after hosting migration

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
"The new server is running on php 5.6"? Not the newest, I would say. The support for PHP 5.6 ended a good year ago: https://www.php.net/supported-versions.php.

Moodle is not a CMS like WordPress, it is very particular about PHP and the database. See the release notes linked from https://docs.moodle.org/dev/Releases. What Moodle release is yours?

From the old site you need a https://docs.moodle.org/en/Site_backup, preferably when it was working. You restore it in the new server as explained in https://docs.moodle.org/en/Site_backup.
In reply to Visvanath Ratnaweera

Re: Moodle not working after hosting migration

by Nayara Grande -
Hello, thank you so much for your fast response.

I was waiting for some info on the php front to change it to the latest version. I didn't wanted to blow things up. (Latest version is ok?)

The current Moodle version is 3.6.4 and there is an update pending on the softaculous view.

There is no backup since the owner had no idea of this and the dev that set it up disappeared. I never had access to the cpanel only to the wordpress install, so i wasn't aware there were more things running on the back, he granted me access just today.

The migration was made by the hosting and they cloned the entire cpanel and just place it on a faster server (same company, speed upgrade).
This new server has new DNS, i don't know if this has anything to do.
In reply to Nayara Grande

Re: Moodle not working after hosting migration

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Softaculous is impossible to troubleshoot as we have no idea what they do to the code. Who did the migration? What php was the old server on? What does the line referenced to in that file say? Is there anything in that file?
If that file is empty, one option would be to replace the moodle code folder with a fresh download of the same version - like you are doing a manual upgrade but with the same code base. Copy over config.php and all your plugins plus any odd files that your host might have put in your html folder (often a htaccess and php.ini) and see if that resolves (do a full site back up first with your host)
In reply to Emma Richardson

Re: Moodle not working after hosting migration

by Nayara Grande -
Thanks Emma for taking the time,

We finally got a hold of the dev but sadly he has moved on with his life to another career path and don't want to take care of this problem, he told us though that the issue was the php version that was too low, so i am asking the hosting if they can replicate the old environment.

If that doesn't work i'll give it a try to your instructions. I really appreciate the help.
In reply to Nayara Grande

Re: Moodle not working after hosting migration

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Do you think that you have the "technical" ability to tackle this problem, or are you relying on others for their technical ability? If you are relying upon others, consider contacting a Moodle partner. Yes, it might be that your hosting company can help, but unless they are familiar with supporting Moodle, their ability to help will not go very far.
In reply to Nayara Grande

Re: Moodle not working after hosting migration

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Around Moodle release 3.6, PHP 7.1 is a safe choice. The full story is in the Releases document and the corresponding Release notes. I made a summary here: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases (continuously updated).

I don't understand how you plan to migrate the site without backups. Whatever, here is the documentation https://docs.moodle.org/36/en/Moodle_migration. You'll see that three things are needed from the old Moodle site.

Well, about the "devs", you seem to call everybody except you a "dev". If it is supposed to be an abbreviation to _developer_, then the Microsoft ex-boss gave it a very specific meaning: Watch https://www.youtube.com/watch?foo=bar&v=I14b-C67EXY. smile For other designations ref. to instructional designer, system administrator and web master.