Closed (fixed)
Project:
PHPlist Integration Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2008 at 06:59 UTC
Updated:
26 Jan 2009 at 09:11 UTC
is there a fix for the 6.x version of this module for the Oops error, I can't get the subscribe block to work
My db connection info is correct
the path to my phplist install is "domain.com/phplist" so I've tried these four paths in the phplist configure settings page for the path:
/phplist
/phplist/
http://domain.com/phplist
http://domain.com/phplist/
Comments
Comment #1
paulbeaney commentedHi briskday,
Assuming your PHPlist installation is on a different domain name to your Drupal installation, then:
http://domain.com/phplist/is the one to use. If they are on the same domain, then:
/phplist/should work ok.
The error message implies one of 2 things - Drupal can't access your PHPlist server, or it's not finding the text "Thank you for subscribing" in the returned page (have you edited the default templates, perhaps??)
Add this code just before line 1067 in phplist.module to see exactly what the module is getting back from the PHPlist server:
If you don't see a page very similar to the one you normally get when subscribing directly on PHPlist, then there is something wrong in the connection between your Drupal server and the PHPlist server (firewall?).
Regards,
- Paul
Comment #2
briskday commentedok adding that bit of 'print $result->data;...' does take me to the normal phplist subscribe page
I did edit the default subscribe template to match my drupal 'look', my edits were in the
-Intro
-Header
-Footer
boxes
the thank you page text is the default...and the 'thank you for subscribing' text is there on top
Comment #3
paulbeaney commentedHi briskday,
A million apologies - it was a bug. I have fixed it now and updated the D6-DEV version, so feel free to download it and try again once the site filters the changes through.
Regards,
- Paul
Comment #4
briskday commentedThanks Paul!
I can confirm that the 6.x dev version subscription sign up now works for me, you rock!
Comment #6
sifaan commentedHi!
I'm running the -dev version of Dec 5 and I get this error (drupal is running on www.domain.com, and phplist is on news.domain.com)
I think it's connecting to the database fine - the admin email account on drupal is subscribed to the list (via the list interface) and the newsletter shows up in My account
(on a separate note, I can click unsubscribe in My Account, and it doesn't throw an error - but I don't get an unsubscribe mail, and when I go back to my account, the subscription still appears as active. so can it be a case that it can read from the database but not write to it?)
thanks!
/Sifaan
Comment #7
paulbeaney commentedHi Sifann,
You raise a few issues here, so here we go.
1. The "oops" message
This is a result of Drupal not being able to "see" the PHPlist server. Have you tried my suggestion in #1 of this thread? What did you get on the screen?
2. "I can click unsubscribe in My Account, and it doesn't throw an error - but I don't get an unsubscribe mail"
You won't get an unsubscribe email - this module goes direct into the PHPlist database to (un)subscribe registered Drupal users. The thinking behind that is that the person is (theoretically) the only person with access to their Drupal account, so we know who they are and confirmation is redundant.
3."... the subscription still appears as active"
Yes, it sounds like something isn't right with your installation. Can you check that your database user has write permissions to the the PHPlist database from the Drupal host?
Regards,
- Paul
Comment #8
sifaan commentedHi Paul
When I enable the debug output, it shows that the reason the subscription didn't go through is cos I've configured the site to ask for certain additional information (e.g. First Name, Last Name) - so what gets printed is the page asking for that information. Is there anyway to allow this module to capture the custom information? (it doesn't need to be dynamic)
As for the unsubscribing (when I'm logged in to drupal) it seems to work fine now, and I don't know that I did anything different (except that the debug output code is still active).
Thanks
/Sifaan
Comment #9
paulbeaney commentedHi Sifaan,
Ok, that explains why it's not working for you then. You can't use manadatory PHPlist attributes with this Drupal module. You can use the node_profile to add profile first and last name fields for registered Drupal users, but this won't help you for anonymous users, I'm afraid. I've never come across anyone using mandatory PHPlist attributes yet, otherwise I would have thought of suggesting this before!
Feel free to open a feature request if you wish and it'll get added to the list.
Regards,
- Paul
Comment #10
sifaan commented- duplicate post. sorry -
Comment #11
paulbeaney commented