Issue Details (XML | Word | Printable)

Key: MDL-8730
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Nicolas Connault
Reporter: Dmitry Pupinin
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

Call to undefined function while install

Created: 03/Mar/07 04:12 AM   Updated: 26/Mar/07 02:42 PM
Return to search
Component/s: Installation
Affects Version/s: 1.8
Fix Version/s: 1.7.2, 1.8

Participants: David Mudrak, Dmitry Pupinin, Eloy Lafuente (stronk7), Martin Dougiamas and Nicolas Connault
Security Level: None
Resolved date: 26/Mar/07
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_17_STABLE, MOODLE_18_STABLE


 Description  « Hide
Fatal error: Call to undefined function: libxml_use_internal_errors() in \lib\xmldb\classes\XMLDBFile.class.php on line 79

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 07/Mar/07 11:40 AM
Nick can you try an install from scratch (rename your config.php and view the moodle site to verify if this is happening for you, if not close it, it might be missing files on the reporter's site).

Nicolas Connault added a comment - 07/Mar/07 12:12 PM
Can't replicate error, conclusion is that report is missing the file in which libxml_user_internal_errors() is defined

Nicolas Connault added a comment - 07/Mar/07 12:13 PM
See Previous comment for reason of closure

David Mudrak added a comment - 25/Mar/07 09:44 AM
I have to agree with Dmitry and confirm. I am having the same problem with the very fresh checkout of MOODLE_18_STABLE:

$~/public_html/moodle-18-stable$ cvs update

The function is not defined in any file, it is just used. See:

$~/public_html/moodle-18-stable$ grep -R libxml_use_internal_errors *
lib/xmldb/classes/XMLDBFile.class.php: libxml_use_internal_errors(true);

I receive an Error! XML parsing failed: syntax error (Line: 133, Character: 0) Error:unexpected end-of-file during an site upgrade:
http://localhost/~mudrd8mz/moodle-18-stable/admin/index.php?confirmgroupupgrade=yes
probably because of calling die() - see the end of source code of the page:

<div class="notifytiny" style="text-align:center">Index groupingid-groupid do not exist. Delete skipped<ul style="text-align: left"><li>line 1109 of lib/ddllib.php: call to debugging()</li><li>line 257 of group/db/upgrade.php: call to drop_index()</li><li>line 420 of group/db/upgrade.php: call to groups_drop_keys_indexes_db()</li><li>line 115 of group/db/upgrade.php: call to xmldb_group_upgrade()</li><li>line 407 of admin/index.php: call to upgrade_group_db()</li></ul></div><br />
<br />
<b>Fatal error</b>: Call to undefined function libxml_use_internal_errors() in <b>/home/mudrd8mz/public_html/moodle-18-stable/lib/xmldb/classes/XMLDBFile.class.php</b> on line <b>79</b><br />

Can you please report where the function libxml_use_internal_errors() is supposed to be defined?


David Mudrak added a comment - 25/Mar/07 09:56 AM
I am getting the same error at the XMLDB editor:
http://localhost/~mudrd8mz/moodle-18-stable/admin/xmldb/
if I choose [Load] (load_xml_file) action. Hope this helps.

From my point of view, this is a big blocker as the upgrade process failed and now I have the site home page full of error messages: ERROR: relation "mdl_groups_courses_groups" does not exist (IMHO table have been removed but not recreated correctly).

Please, let me know where the function is defined at your site. I will compare.


Nicolas Connault added a comment - 26/Mar/07 11:43 AM
This function is not defined in Moodle, it is a PHP5 built-in function. Because of this dependency, I have wrapped any such call inside conditional blocks, so they will only run if you are running on a php5 server.

Eloy Lafuente (stronk7) added a comment - 26/Mar/07 02:42 PM
Hi, sorry, my fault.

Just to clarify a bit about the libxml_use_internal_errors() problem,

I thought it was enough to check for extension_loaded('dom'),
but seems that the deprecated domxml extension registers under
the same extension name and it caused the problem.

Nicolas patch looks ok and should be working fine, anyway...

David, Dimitry, can you confirm if you are running any "dom" extension
in your site, posting here PHP version and DOM extension name and
version. Just to know all the combinations...

TIA and ciao