Hello:
We have a Drupal site that has phplist and the phplist Integration Module installed. If the user logs into our Drupal site, and signs up for our newsletter, it works; the user is added to the database, and the user gets the message
Your subscriptions have been updated.
It shows the list that you are subscribed to, as well as the unsubscribe link.
However, if the user attempts to sign up for our newsletter anonymously via the "Subscribe to our mailing list" block (i.e. without being logged in to the site), the following message is displayed:
Oops, you have not been added to the mailing list; please contact a site administrator.
Also note that our Drupal installation is in a test directory (http://www.lovingday.org/test) and our phplist installation is running on our live site: (http://www.lovingday.org/lists/?p=subscribe&id=1).
We've looked at it for weeks now, and just cannot see where the problem could lie. Please help.
Installed:
Drupal 5.14
phplist 2.10.9
phplist Integration Module 5.x-1.1
Comments
Comment #1
paulbeaney commentedHi EddieN120,
Presumably you have the "PHPlist" URL set to "http://www.lovingday.org/lists/"? It yes, then the problem is most likely because your Drupal/PHP installation cannot access the server where you are hosting PHPlist. I have a weird problem on my OSX development server where PHP can only find sites that I have pinged (to force the host name to be resolved) prior to starting Apache. Strange but true...
Please check your network access (firewalls, routing rules etc.) and try the Ping hack? Can you do a CURL lookup on your PHPlist server from a test PHP script? The post #298572: Users not subscribed to any list might also provide some pointers.
Regards,
- Paul
Comment #2
rabbisthop commentedHi,
I've got the same issue here. but I'm using Drupal 6.10.
My phplists database is on the same server as my drupal database.
I can sign up for a mailinglist when I'm logged on but anonymous sign-up isn't possible (I got the 'Oops...' message...).
My site is in testing folder as well, same situation as EddieN120, but in Drupal 6.
any idea what it could possibly be?
some help would be more then welcome since I'm looking for a solution for two days now... :s
thanks!
Installed:
Drupal 6.10
phplist 2.10.9
phplist Integration Module 6.x-1.x-dev
Comment #3
paulbeaney commentedHi,
Please post the results of the amendment mentioned in #298572: Users not subscribed to any list (post #9) - this will give us more information to help diagnose the problem.
Regards,
- Paul
Comment #4
drizzi commentedhi paul,
i have the same effect on our page.
drupal 6.12
recent phplist and phplist module.
i was trying to follow #298572, but due to another version, i was not able to find the right lines.
could you please help us ?
thanks in advance
steffen
Comment #5
drizzi commentedhi paul,
i gonna run mad with the module... :-(
changing the path to phplist from /lists/ to http:{complete url}/lists/ did the trick for the comfirmation page to get no "oops" message. but - the design is broken and no mailing lists are appearing on the page. just a blank page.
second: the unscribe page shows an error message:
user warning: Table 'usr_web33_2.phplist_user' doesn't exist query: SELECT email FROM phplist_user WHERE uniqid='ded99ba91609654b954f3910fa1bf19a' in /var/www/web33/html/v1/sites/all/modules/phplist/phplist.module on line 1314.
comparing the uid's - there always the same for the same user.
last - what page should be used for the preference page for drupal anonymous users ? i did not find a hint in the documentations or it's too early in the morning or too less coffee :-)
thanks for assistence.
steffen
Comment #6
paulbeaney commentedI have updated that post to show the correct line now.
Regards,
- Paul
Comment #7
paulbeaney commentedHi drizzi,
Are you able to synchronize users ok? Does the "My Newsletters" page work ok for allowing users to (un)subscribe to newsletters? Is it *only* the unsubscribe page that has this problem?
Sorry, the module does not currently provide a prefs page for anonymous users.
Regards,
- Paul
Comment #8
paulbeaney commentedNo recent update so closing.
Comment #9
johnmullin2003 commentedHello Paul, i've just set up phplistmodule (last dev 6.x) but anonymous user when enters his email address, still gets same error:
"Oop, you have not been added to... etc"...
I get this error on anonymous subscription with only 1 list enabled and with more than one.
User receives error on screen but the list-registration process is ok (user is on the list and he get email message).
would you wanna check my infos retrieved by using #298572?
Thanks for your help and your effort for the community.
jM.
======================
update:
info printed using #298572:
Then the PhpList message: Thank you for subscribing etc etc..
it seems a redirection code 301, but I don't know how to solve this.
Thank you all.
Comment #10
paulbeaney commentedHi,
I have just uploaded an update which provides a checkbox in the admin settings to turn on debugging. Tick it, and when you try the anonymous signup it will print what Drupal "sees" at the PHPlist URL to screen. That ought to give you a lot more information for debugging this problem.
Regards,
- Paul
Comment #11
johnmullin2003 commentedsorry Paul but I don't see the new dev version.
The last one avaiable was released on " July 21, 2009 - 00:33"
Thank you.
jM.
Comment #12
paulbeaney commentedHi,
It takes time for the updates to appear. It is there now.
- Paul
Comment #13
johnmullin2003 commentedThanks paul.
Done:
Comment #14
paulbeaney commentedHi,
Everything looks ok to me. Can you provide more details please: you seem to imply that your native lanugauge not English. If this is the case, have you added a translation of "Thank you for subscribing" to Drupal? Until you do this, the anonymous subscribe process cannot work.
Regards,
- Paul
Comment #15
paulbeaney commentedHang on a second - just realised what (although not "why") you get the problem. You get a redirection code to http://mysite.netsons.org/lists/?p=subscribe even though you have attempted to open /lists/?p=subscribe at http://mysite.netsons.org in the inital call.
Something is therefore amiss with your PHPlist web server configuration. Resolve this, and you should find that anonymous signup starts working just fine. Please post your findings here as, although this isn't directly related to the module, it might help someone else in the future.
Regards,
- Paul
Comment #16
johnmullin2003 commentedThanks Paul, but unfortunately all my efforts since now are unuseful.
Anonymous users can successfully subscribe using phpList page.
I tried all the path settings (in "admin/settings/phplist", in "config.php", and in "lists/admin/?page=configure" )
...absolute path/ relative path / with and without slash...
Dunno why I get this error during drupal site subscribing.. (but followed by a real successful user subscription).
Please note that phpList and Drupal are in the same directory:
Drupal --> /public_html/
phpList --> /public_html/lists.
Thanks in advance for your suggestions.
regards,
jM
Comment #17
paulbeaney commentedHi John,
If you've got them in the same directory, then unless you have modified your web server setup, the mod_rewrite rules for Drupal will be attempting to act on PHPlist URLs too. I've never come across anyone with them both installed in the same place before, but my advice would be simple - unless you are comfortable with configuring .htaccess and mod_rewrite, steer well clear !
Sorry not to be of more help.
Regards,
- Paul
Comment #19
paulbeaney commentedComment #21
Liam_Mc commentedI have a similar problem.
I have just installed PHPlist and the PHPlist integration module on my Drupal site, all on the same server as in #16 (is this wrong / what is the best structure?), with Drupal 6.22, PHPlist Integration module 6.x-1.6, and PHPlist 2.10.15.
Everything works fine for logged in users, the databases can be synchronised and list preferences changed. But for anonymous users the subscribe block doesn't work. I get the Oops message and the PHPlist database isn't updated. If I turn on debugging, the PHPlist subscription form comes up, but still doesn't update the database.
Incidentally, whenever I navigate to a page where the Integration module is active I get another message: "Looking for lists available to ".
Any help would be much appreciated.
Many thanks,
Liam
Ps. Having read this thread http://drupal.org/node/314429, I noticed that the current version of PHPlist that I am using (2.10.15) has a different default message for new subscribers. I added the text "Thank you for subscribing" but it still didn't work. I wonder of there are some more incompatibilities between the versions?
PPS. Sorry, my mistake, I had a couple of attributes set as required. All working now (except persistent "Looking for available lists on " message).
Comment #22
abhisheknagar commentedThis message would also appear if you have few Mandatory fields in your Subscription Page, remove them and use the Module if using for Anonymous Users