I am working on 2 Drupal installations (on two different servers). I can't get Constant Contact module to work on either ....
I uploaded the module along with the additional ConstantContact.php file, activated the module, and then I believe successfully entered settings on the Constant Contact Settings page. I assume that I have to have a list in order to create a block ... but when I try to import users, in one installation I get this error as soon as I load the page:
* warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /home/userxxx/public_html/sites/all/modules/constant_contact/constant_contact.module on line 396.
* warning: Invalid argument supplied for foreach() in /home/userxxx/public_html/includes/form.inc on line 949.
In the second installation, the import users page loads fine, but when
Fatal error: constant_contact_import_submit(): Failed opening required 'ConstantContact.php' (include_path='.:/usr/local/php/share/pear') in /home/www/sitename/dp/modules/constant_contact/constant_contact.module on line 417
thanks for your help ...
Comments
Comment #1
Thomasr976 commentedHave same error. Can someone respond. Thanks
Comment #2
konsumer commentedIt appears that it cannot find ConstantContact.php.
Please put that file in the same directory.
The array_combine error is saying that you don't have any users on your system.
Also, the synch-users feature is against Constant Contact's terms of service (mass imports), so I have decided to discontinue support. If you want to hack on the module, feel free (it's open-source) but future releases will not include support for these features, and rather allow users to sign up using the block, or at register-time.
Comment #3
konsumer commentedComment #4
Thomasr976 commentedThanks, that did it.
Comment #5
j4 commentedDear Konsumer,
Have uploaded the constantcontact.php to the same directory but still it is not working. Even if this option of bulk import is not available where do i configure the block for email sign-up. I am at a loss and the site has to go online early next week. Please help. It doesnt matter if the import doesnt work, but we most certainly need the email signup. The client already has an existing account with Constant contact.
Thank you very much.
Jaya
Comment #6
graper commentedWhile the issue is closed, it was the first issue that had the same issue that I was having.
The best answer to this problem is as follows.
in administer > site configuration > Constant Contact Settings there is a section at the bottom called "List Settings" and you need to add the title of the list you want to add to "Constant Contact". This will create your block with that title. Save those settings and then go back down and look at the "block text" which will allow you to change the title there. Once a single list is setup at the minimum you will not get the array error.
Granville
Kirkham Systems Inc.
Comment #7
konsumer commentedGlad that worked for you.
Please do not change issue titles to non-descriptive text. You can just re-open the issue, if you're really unsatisfied.