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

himagarwal’s picture

I 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?

hadsie’s picture

Category: bug » support

What version of php are you running? domdocment->loadHTML doesn't exist in PHP4 afaik.

himagarwal’s picture

PHP Version 5.2.6

ari-meetai’s picture

Status: Reviewed & tested by the community » Active

Same 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

ari-meetai’s picture

Status: Active » Reviewed & tested by the community
hadsie’s picture

Status: Active » Fixed

Thanks @arielon, I don't think I would have found that one :). @himagarwal, re-open this if you're still having an issue.

himagarwal’s picture

I'm having the issue with localhost (xampp) but it works PERFECTLY fine in server.

hadsie’s picture

ok, 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.

himagarwal’s picture

I'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.