|
Hi Guys,
I was having this error with a webhost provider that I accidentally figured out what was happening. I renamed the admin folder to moodleadmin so it would not conflict with the webhost providers folder. Well I kept getting this error and I tried everything. Finally realized that it is not php or even the webhost. I changed the name of the moodleadmin back to admin and suddenly it started working. Wait till after you've installed moodle completely to go and adjust the name of the admin folder in the config.php file. Hope this helps. I have the same error running MySQL v. 5. I haven't changed the names of any folders.
I guess if this was caused by our php code (and not just server configuration) it was fixed long ago
closing, please reopen if you can replicate it in latest 1.9.x thanks for thereport PS,
This is what I was afraid of. What a gigantic waste of time – almost two years. I can summarize my comment with one link: http://moodle.org/mod/forum/discuss.php?d=71387 Replicated in 1.9.x? You bet! Just look at http://moodle.org/mod/forum/discuss.php?d=115803 Crying shame. RLE Reopening the bug on behalf of Richar L. Enison.
Saludos. Iñaki. Please write here exact steps needed to reproduce this problem in latest 1.9.x including PHP.ini file, thanks.
I have fixed those error messages, but it DOES not the real problem in environment.xml file.
There are two possibilities: Going to do this (after chat with Petr):
1) Under 1.8 and 1.9: Delete the dataroot env file. That will force to check against admin one. Ciao Step 1) Done. Now both Moodle 1.8 and Moodle 1.9 delete the downloaded dataroot/environment stuff, so checks on upgrade are always performed using release environmental xml info.
Going to fight with HEAD (2) now. Ciao Step 2) done. Now HEAD entry points support one new parameter ($env_select) to specify what xml to use (ENV_SELECT_NEWER, ENV_SELECT_DATAROOT, ENV_SELECT_RELEASE). Tested in web install, web upgrade and admin.
Resolving as fixed. Ciao PS: When implementing this... I've created MDL-18252 about to improve current environment stuff for 2.0, wrapping current (complex) code into a class. solves the problem with manually borked environemnt.xml file in dataroot, please post here if anybody can reproduce it, but first make sure the dataroot directory is writable
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\moodle\lib\environmentlib.php on line 406 PHP Warning: Invalid argument supplied for foreach() in C:\moodle\lib\environmentlib.php on line 147
Environment:
Win xp pro
IIS 5.1
PHP 5.1.5
MS SQL 2005 Express
Moodle 1.8+