Closed (fixed)
Project:
Drupal Contact List Importer
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2009 at 10:17 UTC
Updated:
27 Oct 2009 at 08:40 UTC
I'm getting following errors:
* warning: domdocument::domdocument() expects at least 1 parameter, 0 given in D:\xampp\htdocs\arch\sites\all\modules\dcl_importer\importers\openinviter_engine\OpenInviter\plugins\gmail.plg.php on line 100.
* warning: domdocument::domdocument() expects at least 1 parameter, 0 given in D:\xampp\htdocs\arch\sites\all\modules\dcl_importer\importers\openinviter_engine\OpenInviter\plugins\_base.php on line 91.
* warning: domdocument::domdocument() expects at least 1 parameter, 0 given in D:\xampp\htdocs\arch\sites\all\modules\dcl_importer\importers\openinviter_engine\OpenInviter\plugins\_base.php on line 91.
When ever I try to import, I also see...
Fatal error: Call to undefined method domdocument::loadHTML() in D:\xampp\htdocs\arch\sites\all\modules\dcl_importer\importers\openinviter_engine\OpenInviter\plugins\_base.php on line 91
I'm using xampp for localhost in winxp. and it took around 10min to for postinstall.php script to run.
Comments
Comment #1
himagarwal commentedI checked php.ini and dom enabled for both xml and html....what would have been the problem. Is it due to the fact that the DCL will not work in localhost?
Comment #2
hadsie commentedWhat version of php are you running? domdocment->loadHTML doesn't exist in PHP4 afaik.
Comment #3
himagarwal commentedPHP Version 5.2.6
Comment #4
ari-meetai commentedSame here. I was having the problem with other project, though.
Solution:
[...]make sure
extension=php_domxml.dll
is commented out in php.ini
Source: http://answermyquery.com/viewtopic.php?f=5&t=400&start=0&st=0&sk=t&sd=a
Comment #5
ari-meetai commentedComment #6
hadsie commentedThanks @arielon, I don't think I would have found that one :). @himagarwal, re-open this if you're still having an issue.
Comment #7
himagarwal commentedI'm having the issue with localhost (xampp) but it works PERFECTLY fine in server.
Comment #8
hadsie commentedok, well there's nothing in the DCL Importer code that would make something work on a server and not on localhost. And I doubt that openinviter has done things that would prevent it from working there, but I don't know their code base so...
Anyway, the problem is most likely to do with your php and/or apache config on your localhost. I'm not sure what xampp means either. What OS is the server running? Do the OS/php/apache versions all match that of your localhost? And did you try the suggestion in #4.
I need more info to help you here otherwise all I can do is google the error, which i'm sure you've already done. The error that you have implies to me that some module, specifically the one that creates the domdocument class is either not loaded or an old version.
Comment #9
himagarwal commentedI've searched and found that the problem is not with DCL Importer module. The problem is likely with OpenInviter as I've tested OpenInivter alone in server where it worked but not in localhost.
I'm using linux in server, wehreas in desktop I'm using winxp. You can find information on xampp at www.apachefriends.org/en/xampp.html
Sorry, but I don't remember exactly if I used #4 or not....anyways its working good enough in server! Thanks for your help.