Moodle

install.php produces empty page upon initial entry due to redeclaration of xmlize()

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.6.4
  • Fix Version/s: 1.8
  • Component/s: Installation
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

I just fetched the head of the 1.6 branch and attempted a clean new install. However, instead of getting the installation script's welcome page, I get a blank page and the http logs the following error

[Mon Jan 8 17:08:49 2007] [error] PHP Fatal error: Cannot redeclare xmlize() (previously declared in /Library/WebServer/Documents/moodle/lib/xmlize.php:46) in /Library/WebServer/Documents/moodle16/lib/xmlize.php on line 70

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

This is most probably a bug in include handling in your PHP. What version are you using?
In anycase I have changed the install.php script in HEAD to use FILE instead of include starting with dot, this might solve it. But I guess you still might run into other problems if the include/require does not work as expected.

I have changed the priority because this bug is not blocker, you can try manual install instead.

closing now.

Show
Petr Škoda (skodak) added a comment - This is most probably a bug in include handling in your PHP. What version are you using? In anycase I have changed the install.php script in HEAD to use FILE instead of include starting with dot, this might solve it. But I guess you still might run into other problems if the include/require does not work as expected. I have changed the priority because this bug is not blocker, you can try manual install instead. closing now.
Hide
Robert Brenstein added a comment -

I am using PHP 5.1.6 and I have Moodle 1.5.4+ running on that computer. It can, of course, be a PHP issue. I am aware of some issues causes by PHP 5.2 but as far as I know 5.1.6 is ok.

What do you mean by manual install, please? I am following the installation procedure given at moodle.org and there is no mention of any alternative. This is my own server not a hosted account. I put the software where it belongs, and go to my moodle's address, which really launches the install.php script (going to install.php directly does exactly the same). That is where I get stuck: I should get the welcome page to begin installation but get an empty page instead. If that is not a blocker, then I don't know what you call a blocker.

I got a private email from someone who seems to have experienced the same problem. He wrote he had happened to fetch the code about a week earlier and it worked, so he just rolled back to that version. If that is true, it can be some fairly recent change that causes the trouble.

I find it ridiculous that you are fixing such an issue in 1.8 development and not in 1.6 branch. This is rather disrespecful for Moodle users who may have a need to install 1.6 anew, like I do. If I experience such a serious trouble, others may too. Even if the development focus is on 1.7 and 1.8, one should be able to install 1.6.

Show
Robert Brenstein added a comment - I am using PHP 5.1.6 and I have Moodle 1.5.4+ running on that computer. It can, of course, be a PHP issue. I am aware of some issues causes by PHP 5.2 but as far as I know 5.1.6 is ok. What do you mean by manual install, please? I am following the installation procedure given at moodle.org and there is no mention of any alternative. This is my own server not a hosted account. I put the software where it belongs, and go to my moodle's address, which really launches the install.php script (going to install.php directly does exactly the same). That is where I get stuck: I should get the welcome page to begin installation but get an empty page instead. If that is not a blocker, then I don't know what you call a blocker. I got a private email from someone who seems to have experienced the same problem. He wrote he had happened to fetch the code about a week earlier and it worked, so he just rolled back to that version. If that is true, it can be some fairly recent change that causes the trouble. I find it ridiculous that you are fixing such an issue in 1.8 development and not in 1.6 branch. This is rather disrespecful for Moodle users who may have a need to install 1.6 anew, like I do. If I experience such a serious trouble, others may too. Even if the development focus is on 1.7 and 1.8, one should be able to install 1.6.
Hide
Petr Škoda (skodak) added a comment -

Blocker is a problem that affects significant number of people that results in non-functioning sites or major data loss.

Manual installation means to copy config-dist.php to config.php and manually edit the file to state your server settings.

I am not sure what is causing this problem on your server, but it works on my test servers (and now I know only about two servers affected from your reports) - that is the reason I do not want to commit code I can not test into STABLE release - sorry.

I can only help if you find out more about the problem yourself or find a way to replicate it on another server. You can also try to install the latest version from HEAD. In anycase please add detailed server configuration, thanks.

Show
Petr Škoda (skodak) added a comment - Blocker is a problem that affects significant number of people that results in non-functioning sites or major data loss. Manual installation means to copy config-dist.php to config.php and manually edit the file to state your server settings. I am not sure what is causing this problem on your server, but it works on my test servers (and now I know only about two servers affected from your reports) - that is the reason I do not want to commit code I can not test into STABLE release - sorry. I can only help if you find out more about the problem yourself or find a way to replicate it on another server. You can also try to install the latest version from HEAD. In anycase please add detailed server configuration, thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: