By waxmop on
i just installed drupal on my localhost, and i pointed my browser at:
http://localhost/drupal-4.1.0/
and i got these messages at the top of the screen:
Warning: Unable to load dynamic library '/usr/lib/php/extensions/xml.so' - /usr/lib/php/extensions/xml.so: cannot open shared object file: No such file or directory in /var/www/html/drupal-4.1.0/includes/xmlrpc.inc on line 44<br />
<br />
Warning: Cannot send session cookie - headers already sent by (output started at /var/www/html/drupal-4.1.0/includes/xmlrpc.inc:44) in /var/www/html/drupal-4.1.0/modules/user.module on line 5<br />
<br />
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/drupal-4.1.0/includes/xmlrpc.inc:44) in /var/www/html/drupal-4.1.0/modules/user.module on line 5
i'm using mysql and apache on mandrake linux 9.0. any ideas?
Comments
php problem most likely
Something amiss in your php installation. Refer to php-documentation for how to enable or install php with xml-support.
Drupal handbook doesn't specify which php-libs Drupal requires. Can anyone confirm that xml-parser is a requirement?
xml-parser is a requirement
Can anyone confirm that xml-parser is a requirement?
drupal-4-1-0/includes/xmlrpc.inc:
looks like it is a requirement. i just documented this in System requirements.
shouldn't be a problem, though, as the PHP XML extension is enabled by default (even built in in the windows version of PHP). if for some reasons you don't have it, you must ask your administrator to enable it.
note: as far as i can see, xml-parser functions are only required for {bloggerapi|drupal|jabber|ping}.module. as those aren't required modules, strictly speaking the xml parser is not required (as long as you don't use these modules). xmlrpc.inc, however, is included unconditionally in common.inc.
suggestion: make xml-parser and dependend modules optional (ie. only include xmlrpc.inc, and only make above modules enabable if there is a parser installed). opinions?
Here's how I fixed it
The problem comes from this file being missing:
That file is in the php-xml package, which I then installed, and now everything works.
Here's exactly what I did at the command line to fix it:
can you help me
where i can get the php-xml,
php-xml is part of all distros
I just had the same problem, and found this old thread with google.
I could easily install php-xml on my mandriva platform with the simple command, as root:
If your urpmi sources are configured properly, or if you have the installation CDs, you won't need to 'get' the module. It's part of the distribution.
If you use another distro (Debian, etc...) check the documentation on how to install a new package.
I hope it helps.
--
http://www.reuniting.info/
Healing with Sexual Relationships.