PHP Errors on Installation and Hanging Specification Validation

PHP Errors on Installation and Hanging Specification Validation

Joshua Curtis發表於
Number of replies: 2

Hey all,

I'm trying to install an instance of Moodle 1.8.14 on my machine with WAMP 2.2 for development purposes (for numerous reasons, I lack FTP access to the live site). However, after setting up the MySQL database with a new user and a new table, the installation screen presents with the following errors:

Warning: Creating default object from empty value in
C:\wamp\www\moodle\install.php on line 124
# 1 | Time: 0.0030 | Memory 526696 | Function {main}() | Location . .\install.php:0

Warning: Creating default object from empty value in
C:\wamp\www\moodle\install.php on line 125
# 1 | Time: 0.0030 | Memory 526696 | Function {main}() | Location . .\install.php:0

Warning: Creating default object from empty value in
C:\wamp\www\moodle\install.php on line 133
# 1 | Time: 0.0030 | Memory 526696 | Function {main}() | Location . .\install.php:0

I've isolated it to the following section of code, wherein the vars $SESSION, $CFG, and $COURSE are defined:

 122 /// Fake some settings so that we can use selected functions from moodlelib.php and weblib.php
123
124 $SESSION->lang = (!empty($_POST['language'])) ? $_POST['language'] : $INSTALL['language'];

125 $CFG->dirroot = $INSTALL['dirroot'];
126 $CFG->libdir = $INSTALL['dirroot'].'/lib';
127 $CFG->dataroot = $INSTALL['dataroot'];
128 $CFG->admin = $INSTALL['admindirname'];
129 $CFG->directorypermissions = 00777;
130 $CFG->running_installer = true;
131 $CFG->docroot = 'http://docs.moodle.org';
132 $CFG->httpswwwroot = $INSTALL['wwwrootform']; // Needed by doc_link() in Server Checks page.
133 $COURSE->id = 0;

A search of the web indicated that I should set $SESSION =new stdClass();, $CFG =new stdClass();, and $COURSE =new stdClass();. While this does clear the error, it doesn't get rid of the next part, which I am inclined to believe still stems from this issue.

After inputting the credentials and database for the server, the install.php file does a validation to make sure my machine is running with the minimum system requirements. It hangs either here, or after inputting the database info, and I don't know why or how to resolve it.

Searching the forums revealed very little help here. I checked all of the PHP settings and dependencies, and as far as I can tell, everything is in line. Some older posts suggested that I turn off Strict mode for PHP, but either searching here or on the web revealed no help for how to accomplish this (as the documentation has changed from when 1.8 was released several years ago).

All that is to say, can you help me?

評比平均分數: -
In reply to Joshua Curtis

Re: PHP Errors on Installation and Hanging Specification Validation

Joshua Curtis發表於

Bumping this topic, because it's been a week with no reply, and no progress on my end. Does anyone have any ideas?