New users are not geting subscribed to aweber
victorburgos - March 18, 2008 - 01:21
| Project: | AWeber Integration |
| Version: | 5.x-1.0-beta1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi, i installed the module on drupal 5.0 and it worker for 1 day and then suddenly stopped working so I upgraded my website to Drupal 5.7 but still not working.
I made some tests on my pc with a local drupal install to verify that my List and Id are ok. On local test pc the user gets registered with AWEBER, but on the live site when a new user is created he gets drupal welcome email, but the user never gets AWEBER email and is never registered on AWEBER.
This is the post that Internet Explorer sends to the server on the live server: name=userxx&mail=userxx@mymail.com&aweber_signup=1&form_id=user_register&op=Crear+cuenta+nueva
I have no idea why this is not working.
Thanks in advance.

#1
Can you clarify what you mean by the post IE sends to the server? Are you interrupting the post during user register or is that what is returned from AWeber after submitting?
Thanks
#2
Hi Coltrane, no, I am not interrupting the post, I used a program called Ethereal to capture all network traffic because I am not very god with PHP and that was the only way to find out what was sending the user after they registered to the web site.
All new users are listed on Home › Administer › User management / AWeber, but they are never listed on AWEBER.
How can I troubleshoot this?
Tanks in advance.
#3
What you posted that ethereal is capturing, is that the entire string? I'm wondering cause it should contain more data like the aweber unit and id.
#4
Let me make another capture.
To troubleshoot this, I am creating a user with a valid email account, the user gets the new drupal account immediately, but never AWEBER email, after that I delete the account on Drupal to test again, but I just got this error after deleting the lead on Home › Administer › User management AWeber
user warning: Duplicate entry '' for key 2 query: INSERT INTO users (uid, created, access) VALUES (2126, 1206418347, 1206418347) in /home/mydomains.com/includes/database.mysql.inc on line 172.
#5
This is sent from my machine to the server when I click create account
------------------------------------------------
POST /user/register HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://www.mydomain.com/user/register
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2)
Host: www.mydomain.com
Content-Length: 149
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=ckl9kh0.....
name=myname&mail=myname@gmail.com&pass%5Bpass1%5D=
Mypass&pass%5Bpass2%5D=Mypass&aweber_signup=1&form_id=
user_register&op=Crear+cuenta+nueva
---------------------------------------
This is sent back from the server to my machine, check the first line.. (HTTP/1.1 302 Found)
---------------------------------------
HTTP/1.1 302 Found
Date: Tue, 25 Mar 2008 04:52:25 GMT
Server: Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
X-Powered-By: PHP/5.2.3
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Last-Modified: Tue, 25 Mar 2008 04:52:25 GMT
Location: http://www.mydomain.com/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
-----------------------------------------------------
Note: If I use the aweber block it works fine.
Hope this helps.
#6
Hi, it has been 4 days since I posted this, I wonder if anyone can help me with this?
#7
I need to get a chance to debug the code and look for possible failure points that might cause this problem for you. I'm uncertain if the POST from your machine has the meta_web_form_id and unit in it.
#8
If you're OK getting into the PHP you could throw in a watchdog() call to see if AWeber is being sent the correct data it needs for its addform.pl.
In
aweber_form_post()which is the second to last function in aweber.module put the following watchdog() call before thedrupal_http_request(). In HEAD put this on line 475, if you're using beta1 then its 468.<?phpwatchdog('aweber', http_build_query($data, '', '&'));
?>
After registering a new user with AWeber set in the registration form you should have a log entry like so (I've removed some identifiables and formated for legibility):
Type aweberDate Wednesday, April 9, 2008 - 14:51
User Anonymous
Location http://example.com/aweber/user/register
Referrer http://example.com/aweber/user/register
Message from=email%2Btest3%40gmail.com&meta_web_form_id=1xxxxxxxx3&meta_split_id=&unit=testdrupallist
&redirect=http%3A%2F%2Fwww.aweber.com%2Fform%2Fthankyou_vo.html&meta_redirect_onlist=&meta_adtracking=&meta_message=1
&meta_required=from&meta_forward_vars=0
Severity notice
Hostname xxx.xxx.xxx.xxx
New registrations are showing up on AWeber's site so the process is running fine for me. I'm not doing this on my local machine but on a fully qualified domain. Were you running this on a local machine that isn't accessible externally?
#9
Hi Coltrane, sorry for taking so long to respond.
After many tries I was able to put the code on the file (I had no idea)
The line I get is the next, and the module is working on a fully qualified domain.
from=testmail%40gmail.com&meta_web_form_id=2xxxxxxxx5&meta_split_id=&unit=testmylist&redirect=http%3A%2F%2Fwww.aweber.com%2Fform%2Fthankyou_vo.html&meta_redirect_onlist=&
meta_adtracking=&meta_message=1&meta_required=from&meta_forward_vars=0
If you want and have the time, I can give you access to my site.
Hope this helps.
#10
Coltrane, one question, I use Dream host, they are very unstable and slow, I am planning to move to http://www.bluehost.com/track/cristinav/drupalhosting, so the question is: on this post I found that Dreamhost disabled remote url access using fopen for security reasons and I don't know if this has anything to do with the problem I have.
http://drupal.org/node/180101
Regards.
#11
The watchdog line looks correct so the module is building what Aweber.com expects. When you said the module is working on a fully qualified domain do you mean you only experience the problem of new users not getting subscribed when submitting from a local machine?
The module uses drupal_http_request() which uses sockets and file writes, that may be a problem for some hosts yes. Do you get any errors in system level logs?
#12
I cannot replicate this so I'll need more information to narrow down the problem if it's in the code. Thanks.