Whenever I put in an ASIN and execute a submit, preview, or search (in the import menu)
I get the following error:
Fatal error: Call to undefined function: domxml_open_mem() in C:\Server\xampp\htdocs\dp\modules\amazontools\amazon.inc on line 325
best regards
lennart
Comments
Comment #1
Prometheus6 commentedWhat version of PHP are you running? That function [domxml_open_mem()] is in version 4.2.1 and higher, which is a higher version than Drupal in general requires (4.1)...something I'll have to note right up front.
Comment #2
lennart commentedThanks for the fast reply. I am running PHP v. 4.3.10 on a Windows configuration
and the same PHP v. 4.3.10 on a Debian system. I get the error on both systems.
Comment #3
lennart commentedI just tested with PHP v. 5.0.3 on a Windows setup. I still get the exact same error. I do not think it is related only to php versions.
Comment #4
Prometheus6 commentedI just remembered that the DOM XML functions are an optional extension in Windows.
On Debian I guess it would have to be compiled in, or maybe it's a .so file. I know '--with-dom' is part of the configure command in my setup, but my public server isn't here and I'm a Windows baby.
Under Windows (and you may know but someone else doesn't), if you've downloaded the full install you'll have a 'extensions' subdirectory off your PHP install directory. You'll need to copy php_domxml.dll to your system directory, and uncomment
;extension=php_domxml.dll
in your php.ini file. If
;extension=php_iconv.dll
is there, uncomment that too.
Comment #5
lennart commentedI followed your advice, and now it works under windows! Thanks!
I still have to find out how to activate '--with-dom' under the Debian system. It is a hosted setup, and I only have access through .htaccess
I could not find anything on how to activate '--with-dom' from .htaccess
Do you know if that is even possible? Otherwise I will have to find another host because they will not change php.ini
Comment #6
lennart commentedMy host allows neither php_flag or php_value in .htaccess so I am changing host. Your module is too good to be missed just because of a bad host
Comment #7
Prometheus6 commented