0

i am using moodle version 1.9.19. all thing are working properly. but i have an error like below:

Warning: Creating default object from empty value in D:\xampp\htdocs\moodel\server\moodle\theme\standardwhite\config.php on line 9

Warning: Creating default object from empty value in D:\xampp\htdocs\moodel\server\moodle\lib\uploadlib.php on line 78

how to solve this error. please help me

3

1 Answer 1

0

Correct solution - upgrade to Moodle 2.x. These warnings are due to Moodle 1.9 not being fully compatible with PHP 5.4 (and above) - these warnings have all been fixed in supported versions of Moodle.

If you really need to work with Moodle 1.9, then you will have to manually fix all of these by adding in the missing '$object = new stdClass();' calls before each of the warnings (where '$object' should be replaced by the name of the object that has not been initialised properly).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.