I am using Xampp 1.6.7 to install the 1.9.1 version of moodle on my laptop. when it gets to setting up the database I get "
Fatal error: Call to undefined method domdocument::load() in C:\xampp\htdocs\moodle\lib\xmldb\classes\XMLDBFile.class.php on line 85
'
Any ideas on what is causing this?
Scott Karren
4 moodlers have asked the same question during the last week so obviously the problem is in Xampp installer itself and the solution is:
You need to comment (add ; before) the extension for domxml in php.ini - or actually BOTH of the php.ini files in XAMPP:
[path to xampp folder]/php/php.ini
and:
[path to xampp folder]/apache/bin/php.ini
;extension=php_domxml.dll
Scott Karren
hi
i have the same problem
but i did not understand from the answer what and where i have to add
thanks irith
hi
i have the same problem
but i did not understand from the answer what and where i have to add
thanks irith
It depends on whether you have your own server and therefore you have access to php.ini, or whether you are using a commercial web host that you share with many other clients (more likely). See http://docs.moodle.org/en/Installation_FAQ#System_information_needed_for_Installation_Forum.
In the latter case, the host has its own php.ini file that applies to the websites of all its clients, and is therefore inaccessible to the clients. You might be allowed to override some of the settings in the common php.ini file for your site only, by using an .htaccess file (only if the web server is Apache) or by creating a custom php.ini file. Contact tech support to find out which of these methods you can use, and how.
If you have your own server, see http://moodle.org/mod/forum/discuss.php?d=94601#p417895 on how to find the location of your active php.ini file. Then search for "extension=php_domxml.dll" in that file and put a semicolon in front of it. This file will probably be in the bin subdirectory of the apache subdirectory of your main xampp directory (where you extracted the files to from the file you downloaded). MK suggests doing the same in the php.ini file in the php subdirectory of your xampp directory, probably because it is used when you run PHP in cli mode for the cron script.
RLE
תשובה ל: Re: תשובה ל: Re: Error when setting up the database
hi
thank you but it didnt help
ifound the file and changed but nothing happened
irith
- Are you sure you found the active php.ini file? With PHP 5 or higher there is only one (at a time).
- You still haven't said whether you have your own server or are sharing one. In my last post I gave you a link about how to describe your server environment for this forum. You are more likely to get relevant help if you follow it.
- KR reminded me: whatever changes you make to php.ini won't take effect until after you restart your web server!
תשובה ל: Re: תשובה ל: Re: Error when setting up the database
When I restarted my laptop and then went back to Moodle the changes had resolved the problem and Moodle went through its setup paces perfectly.
Greatly appreciate the help
irith
I too have this problem and have tried the edits you suggest but not getting anywhere. I'm currently using localhost. Is their something else I should do in this case?
Thanks
Kayren
Success!
When I restarted my laptop and then went back to Moodle the changes had resolved the problem and Moodle went through its setup paces perfectly.
Greatly appreciate the help!
Kayren
Thanks so much for all your helpful replies. I owe you a lot!
Isha
Mauno and RLE,
Once again, you have both come up with the goods!
I had been trying to install xampp and Moodle on a Mac, ran into snags, and posted to the forums. RLE replied with possible solutions. Due to pressure of time, I had to abandon the Mac, and set everything up on a Windows box (I'm more familiar with Windows).
Ran into this glitch with Windows, but a quick search on the forums led me directly to this discussion, and my problem was solved.
Many thanks to you both,
Matt
This domxml package is no longer supported
But you made me think about a workaround..
Uncheck the package, install fresh database, recheck domxml .. works!!
(I now only wonder why this works )
I now get during a notifications-call the message:
Enabling the PHP setting display_errors is not recommended on production sites because some error messages may reveal sensitive information about your server.
(Moodle makes that by default YES (on the server>>>debugging page)
- Doing a new notification with extension=php_domxml.dll switched on is NOT working. (gives you a blank screen)
- And the display_errors = on is also set in php.ini (Moodle cannot overrule this..)
Thanks again
-Phill
Thanks!
i did all the setup steps successfully,but when i test database connection, i received the message :
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: localhost in D:\xampp\htdocs\test.php on line 2
Could not connect
i tried to resolve this problem but not looks like it's a problem specific to MSSQL 2005!