Issue Details (XML | Word | Printable)

Key: MDL-17405
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Dan Poltawski
Votes: 0
Watchers: 2
Operations

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

Installer broken by call to formslib

Created: 26/Nov/08 06:08 AM   Updated: 08/Jan/09 05:43 PM
Return to search
Component/s: Installation
Affects Version/s: 2.0
Fix Version/s: 2.0

Issue Links:
Duplicate
 
Relates

Participants: Dan Poltawski, Jerome Mouneyrac, Petr Skoda and Samuli Karevaara
Security Level: None
Resolved date: 08/Jan/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
When the web installer gets to the environmental checks it dies on call to formslib.. did a debgging('foo') to get the backtrace ;)

foo
line 24 of lib/formslib.php: call to debugging()
line 30 of lib/portfolio/forms.php: call to require_once()
line 35 of lib/portfoliolib.php: call to require_once()
line 2579 of mod/data/lib.php: call to require_once()
line 555 of lib/environmentlib.php: call to include_once()
line 452 of lib/environmentlib.php: call to environment_custom_checks()
line 86 of lib/environmentlib.php: call to environment_check()
line 802 of install.php: call to check_moodle_environment()
line 610 of install.php: call to form_table()

Warning: require_once(HTML/QuickForm.php) [function.require-once]: failed to open stream: No such file or directory in /srv/moodledev/moodle/lib/formslib.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/moodledev/moodle/lib/formslib.php on line 27


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 26/Nov/08 07:10 AM
eh, just noticed that too - seems to work fine in 1.9.x

Dan Poltawski added a comment - 26/Nov/08 07:22 AM
Portfolio not in 1.9 and including call to formslib?

Presumably its broken by the pear include_path 'hack' not being setup at that point


Samuli Karevaara added a comment - 27/Nov/08 03:37 PM
What Dan said: work's fine if the ini_set trick is done in the formslib.php, as it used to. Maybe it should be done in the beginning of install.php, as config.php is not present to call the setup.php yet?

Samuli Karevaara added a comment - 27/Nov/08 03:43 PM
The environment check is calling the function data_check_required_entries_fields(), for this function it includes the /mod/data/lib.php. This file has require_once('portfoliolib.php') is outside the called function, maybe it's not even needed by the install.php, but just included "in case"?

Petr Skoda added a comment - 28/Nov/08 04:23 AM
hmm, module specific code does not belong into environment.xml, 3rd party modules can not do this, there is no reason why official mods should be allowed to do it - going to rewrite the this part

Petr Skoda added a comment - 28/Nov/08 07:14 AM
should be fixed now....

Jerome Mouneyrac added a comment - 02/Dec/08 03:44 PM
Hi Petr,
in mod/data/db/upgrade.php if there is not flag, we don't need to unset it:

if (!get_config('data', 'requiredentriesfixflag')) {
unset_config('requiredentriesfixflag', 'data');
...

You probably wanted to unset it if there is one...


Petr Skoda added a comment - 02/Dec/08 05:07 PM
hmm, yes - will have a look at it again today

Jerome Mouneyrac added a comment - 08/Jan/09 10:18 AM
I reopened this issue in order to remind you, Petr. I just fixed the MDL-16999. Thanks.

Petr Skoda added a comment - 08/Jan/09 05:43 PM
flag unsetting moved, thanks