Cannot add anonymous users; get "Oops, you have not been added to the mailing list; please contact a site administrator." error

EddieN120 - April 9, 2009 - 02:07
Project:phplist Integration Module
Version:6.x-1.0
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

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

#1

paulbeaney - April 11, 2009 - 10:51

Hi 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

#2

rabbisthop - April 14, 2009 - 15:17
Version:5.x-1.1» 6.x-1.0

Hi,

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

#3

paulbeaney - May 1, 2009 - 10:01

Hi,

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

#4

drizzi - May 28, 2009 - 19:30

hi 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

#5

drizzi - May 30, 2009 - 08:45

hi 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

#6

paulbeaney - June 1, 2009 - 07:11

i was trying to follow #298572, but due to another version, i was not able to find the right lines.

I have updated that post to show the correct line now.

Regards,

- Paul

#7

paulbeaney - June 1, 2009 - 07:15

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

what page should be used for the preference page for drupal anonymous users

Sorry, the module does not currently provide a prefs page for anonymous users.

Regards,

- Paul

#8

paulbeaney - July 20, 2009 - 13:50
Status:active» closed

No recent update so closing.

#9

johnmullin2003 - July 30, 2009 - 22:28
Status:closed» active

Hello 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:

stdClass Object ( [request] => POST /lists/?p=subscribe HTTP/1.0 Host: mysite.netsons.org User-Agent: Drupal (+http://drupal.org/) Content-Length: 134 Content-Type: application/x-www-form-urlencoded email=spuzzy88%40hotmail.it&emailconfirm=spuzzy88%40hotmail.it&htmlemail=1&subscribe=Subscribe&list%5B2%5D=signup&list%5B3%5D=signup [data] =>

Then the PhpList message: Thank you for subscribing etc etc..

[headers] => Array ( [Date] => Thu, 30 Jul 2009 22:22:44 GMT [Server] => Apache [Expires] => Thu, 19 Nov 1981 08:52:00 GMT [Cache-Control] => no-store, no-cache, must-revalidate, post-check=0, pre-check=0 [Pragma] => no-cache [Set-Cookie] => PHPSESSID=3cb2de44a2b5cf52c3a40d24ddadc2c3; path=/ [Connection] => close [Content-Type] => text/html ) [code] => 301 [redirect_code] => 200 [redirect_url] => http://mysite.netsons.org/lists/?p=subscribe )

it seems a redirection code 301, but I don't know how to solve this.

Thank you all.

#10

paulbeaney - August 2, 2009 - 16:57

Hi,

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

#11

johnmullin2003 - August 2, 2009 - 23:43

sorry 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.

#12

paulbeaney - August 3, 2009 - 09:05

Hi,

It takes time for the updates to appear. It is there now.

- Paul

#13

johnmullin2003 - August 3, 2009 - 22:38

Thanks paul.

Done:

stdClass Object ( [request] => POST /lists/?p=subscribe HTTP/1.0 Host: mysite.netsons.org User-Agent: Drupal (+http://drupal.org/) Content-Length: 115 Content-Type: application/x-www-form-urlencoded email=mickey2009%40hotmail.it&emailconfirm=mickey2009%40hotmail.it&htmlemail=1&subscribe=Subscribe&list%5B2%5D=signup [data] =>

phpList screen message in my native language: Thanks for subscribing to our lists...etc..

[headers] => Array ( [Date] => Mon, 03 Aug 2009 22:34:56 GMT [Server] => Apache [Expires] => Thu, 19 Nov 1981 08:52:00 GMT [Cache-Control] => no-store, no-cache, must-revalidate, post-check=0, pre-check=0 [Pragma] => no-cache [Set-Cookie] => PHPSESSID=494d79b85cb7bdacdc7a25dc59a6947e; path=/ [Connection] => close [Content-Type] => text/html ) [code] => 301 [redirect_code] => 200 [redirect_url] => http://mysite.netsons.org/lists/?p=subscribe )

#14

paulbeaney - August 4, 2009 - 07:59

Hi,

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

#15

paulbeaney - August 4, 2009 - 08:48

Hang 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

#16

johnmullin2003 - August 4, 2009 - 15:57

Thanks 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

#17

paulbeaney - August 4, 2009 - 16:36

Hi 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

#19

paulbeaney - October 29, 2009 - 10:06
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.