InMotion Hosting Support Center

Moodle Database Error

Category: Moodle

2013-07-18 10:20 am EST

Hits: 1,073
My installation of moodle has been working perfect until last night. I receive the following error when I go to my Moodle page at
Use of undefined constant _DIR_-assumed '_DIR_' in /home/explor29/public_html/moodle/lib/dml/moodle_database.php on line 27.

I tried reinstalling moodle with no luck.
Can you help?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



9,968 Points
2013-07-18 12:15 pm EST
Hello scxq28, and sorry about the issues.

Our senior system administration team did update the version of PHP on the servers yesterday, and this did have some unintended side-effects relating to the php.ini file being used by default.

I went ahead and reverted back to PHP 5.3 for you, instead of PHP 5.4 and this looked to resolve your Moodle issues for you.

Please let us know if you're still experiencing issues anywhere else on your site. Sorry again for the problems and any inconvenience.

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!