Installation Pains - Undefined property and could not create guest or admin account.

Installation Pains - Undefined property and could not create guest or admin account.

by Tony Phillips -
Number of replies: 1

I went through a lot of pain installing Moodle on my hosting account.  I hit some walls, but where able to fix them on my own until now.  I am now at a point where I am getting the following errors:

Notice: Undefined property: object::$capabilities in /home/mysite/public_html/lib/accesslib.php on line 482

Notice: Undefined property: stdClass::$proxyhost in /home/mysite/public_html/lib/rsslib.php on line 344

Notice: Undefined property: stdClass::$proxyport in /home/mysite/public_html/lib/rsslib.php on line 345

Notice: Undefined property: object::$capabilities in /home/mysite/public_html/lib/accesslib.php on line 482

Notice: Undefined property: stdClass::$mnet_localhost_id in /home/mysite/public_html/lib/moodlelib.php on line 2475

Could not create guest user record !!!



Notice: Undefined property: stdClass::$mnet_localhost_id in /home/mysite/public_html/lib/adminlib.php on line 498

 

SERIOUS ERROR: Could not create admin user record !!!
Average of ratings: -
In reply to Tony Phillips

Re: Installation Pains - Undefined property and could not create guest or admin account.

by Richard Enison -

TP,

  1. The "Undefined property" messages are not errors, they are, as they say, notices. I believe you can ignore them. You are probably seeing them because you have error_reporting set to show notices in php.ini.
  2. The "could not create user record" errors seem to have several possible causes. The first is:
  3. If you are running MySQL in strict mode, turn it off. See http://docs.moodle.org/en/Installing_Moodle#Creating_an_empty_database
  4. Delete all cookies.
  5. If those don't help (after starting over), try KW's advice in http://moodle.org/mod/forum/discuss.php?d=74767#p333598

RLE