This is an FYI post - not a request for help, but it may be helpful for others to see.
We have a client that was having a couple issues with "Manage Subscriptions" procedure that you get to from a Contact record. This client is currently on 4.5.1f.
The client reported that for some newsletter campaigns they would drag a newsletter from the right column to the left column and hit save but that when the page refreshed it would be back on the right column again making them think it wasn't adding them to the newsletter. I found that it was adding them to the newsletter subscription list, it just wasn't showing that it had done it.
For this client I found two different reasons for this issue. One of the issues (which I am submitting as a bug) is that the utils.php page has a function that determines if they are on the newsletter list or not, but instead of searching by the unique identifier of the list it searches by the name of the list. This poses a problem if there are two lists that have the same name. In this clients case they had an old list that was flagged as inactive that wasn't being used with a newsletter and a new list with the same name as the old one that was assigned to the newsletter. If a user was on the correct list but not on the old list then the manage subscriptions drag and drop tool would think that they were not subscribed because it was searching to see if they were not subscribed to a list with that name. The specific line of code that has the issue is:
if(!array_key_exists($news_list['name'],$unsubs_arr))
I did not change the code to use the unique identifier because I didn't want to search the rest of the code to see if the issue resides elsewhere or not, so I just renamed the inactive list to have a different name.
That resolved one of the two newsletters that weren't working with the manage subscriptions list, but not the other. The issue with the other newsletter is that it has multiple lists associated with it that are of the default subscribe type. The utils.php function that determines which newsletters someone is subscribed to basically checks to see if there are any lists associated with a newsletter that is a subscribe list that a user isn't on, and if there is even one list that they are not on that is associated with a newsletter than it will show in the drag and drop tool that they are not on that newsletter.
For this client I am going to ask them not to use multiple lists with a newsletter anymore and just create a new list and merge all the others in to it. The client has basically a big list that is made up of all of their small lists for general company news that goes to all the sub-groups, but this is not ideal with the way the code is right now. I feel that the drag and drop tool needs to have its code adjusted to match the same logic that is used to send the newsletters to determine if they should or should not get the email.
I really don't like the idea that the drag and drop tool displays newsletters but manages lists. This is confusing because you could add someone to a newsletter which basically just picks a list associated with that newsletter and adds them to it, but that list could be associated with multiple newsletters which would actually add them to multiple newsletters. I'm not so sure I even like the idea of having multiple lists being able to be set to a single newsletter or that one list can be set to multiple newsletters, at least not as it is currently implemented.
I am considering displaying to the user all of the lists that they are on and then displaying what newsletters are associated with those lists. This should make it possible for the user to get the whole picture and be able to manage it better. It would also not be too hard for me to take that one step further to then show if they would receive email from that newsletter or not and if not then why not.
Anyways, the point is, if you have some problems with the Manage Subscriptions drag and drop tool, make sure that you don't have lists that have the same name and make sure that you don't have multiple subscribe lists associated to the same newsletter and see if that resolves your issues.
Eric


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks