Issue Details (XML | Word | Printable)

Key: MDL-9796
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Eloy Lafuente (stronk7)
Reporter: Christopher Johnson
Votes: 1
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

I can't install Moodle, I tried 1.8+ that I downloaded yesterday..

Created: 13/May/07 09:30 PM   Updated: 18/Feb/09 05:49 AM
Return to search
Component/s: Installation
Affects Version/s: 1.8.8, 1.9.4
Fix Version/s: 1.8.9, 1.9.5

Environment: hosted unix based server. moodle 1.8+ from yesterday may 12th
Issue Links:
Relates
 

Database: MySQL
URL: http://portallanguageservices.com/moodle/install.php
Participants: Christopher Johnson, Eloy Lafuente (stronk7), Iñaki Arenaza, Larry Crosswell, norberto, Petr Skoda, Richard L. Enison and Todd Lutton
Security Level: None
Resolved date: 15/Feb/09
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
It won't install.


Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhosts/portallanguageservices.com/httpdocs/moodle/lib/environmentlib.php on line 406

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/portallanguageservices.com/httpdocs/moodle/lib/environmentlib.php on line 147
Name Information Report Status
You must solve all the environmental problems (errors) found above before proceeding to install this Moodle version!

when I click on next again I get:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhosts/portallanguageservices.com/httpdocs/moodle/lib/environmentlib.php on line 406

Moodle logo


Installation install.php

Checking your environment ...

We are checking if the various components of your system meet the system requirements

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/portallanguageservices.com/httpdocs/moodle/lib/environmentlib.php on line 147
Name Information Report Status

subsequent nexts do nothing


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Todd Lutton added a comment - 17/May/07 02:28 AM
I observed same error:

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+


norberto added a comment - 22/May/07 11:23 PM
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.

Larry Crosswell added a comment - 19/Jun/07 11:46 PM
I have the same error running MySQL v. 5. I haven't changed the names of any folders.

Petr Skoda added a comment - 11/Jan/09 02:32 AM
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


Richard L. Enison added a comment - 08/Feb/09 09:25 PM
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. As you can see, I tried to get CJ to give the Tracker # of this issue back in May of 2007 but he steadfastly refused. He didn't even reference his original forum post here, so you never got to see my take on the glitch in the PHP code. And no, it was not fixed long ago.

Replicated in 1.9.x? You bet! Just look at http://moodle.org/mod/forum/discuss.php?d=115803. As I said in that thread, I tried to reopen this issue, but I can't find the link for that. I guess it is because I am not CJ. Well, CJ has flown the coop. So now nobody can reopen it!

Crying shame.

RLE


Iñaki Arenaza added a comment - 08/Feb/09 11:21 PM
Reopening the bug on behalf of Richar L. Enison.

Saludos. Iñaki.


Petr Skoda added a comment - 09/Feb/09 06:15 AM
Please write here exact steps needed to reproduce this problem in latest 1.9.x including PHP.ini file, thanks.

Petr Skoda added a comment - 09/Feb/09 06:47 AM
I have fixed those error messages, but it DOES not the real problem in environment.xml file.

There are two possibilities:
1/ admin/environment.xml is broken - reinstall it, or better reinstall moodle completely
2/ file $CFG->dataroot/environment/environment.xml is broken - please note the file date first, copy the file somewhere and then delete it


Eloy Lafuente (stronk7) added a comment - 10/Feb/09 03:43 AM
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.
2) Under 2.0: Refactor environmental stuff to use only admin env file at install/upgrade

Ciao


Eloy Lafuente (stronk7) added a comment - 14/Feb/09 12:48 AM
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


Eloy Lafuente (stronk7) added a comment - 15/Feb/09 08:19 AM
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.


Petr Skoda added a comment - 18/Feb/09 05:49 AM
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