I'm bulding a new website for one of my customers and I'm having a serius problem with the Newsletter module.

The propblem happens when I try to add a new list, you know that the Template field is mandatory, I've added several templated but None of them appear int the template list when I try to creat a new List.

I'm using Drupal 7 and I tried both the beta version and the development version of the module, they both have the same problem.

Thanks a lot in advance.

Mohamed

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

coolman7’s picture

I have same issue.

coolman7’s picture

I tested with Drupal 7.14, and it seems works. I think the problem exists with Drupal 7.15.

ParisLiakos’s picture

Assigned: Unassigned » ParisLiakos
Priority: Normal » Critical

Indeed, i can reproduce it with 7.15

ParisLiakos’s picture

Seems there is something wrong with the entity reference field.
quick fix:
apply the patch below that exposes the Field UI under admin/config/media/newsletter/lists/fields, clear cache then edit and resave the field_newsletter_template field

coolman7’s picture

It didn't work for me.
I applied the patch, cleared the cache
But I don't know how to "edit and resave the field_newsletter_template field"

And the result was the same as before.
Would you please let me know how to "edit and resave the field_newsletter_template field" ?

Thanks

ParisLiakos’s picture

Through the UI under
admin/config/media/newsletter/lists/fields
Click edit and then save

coolman7’s picture

Thanks for reply. I made the changes, now Template list is not empty and I can select it with no problem. But this time I cannot see any list on Subscription Page, even I defined several lists on the configuration page. So I cannot select any list and if I press Subscribe button, I get "Please select at least one newsletter list." message.

ParisLiakos’s picture

do the same for the lists field assigned to newsletter subscribers
under
admin/config/media/newsletter/lists/fields

seems the same issue exists for all entityreference fields

coolman7’s picture

It is working now. Thanks

Mohamed_Almasry’s picture

Thanks Paris,

The patch worked fine, and the drop down list now shows the list of templates and I could creat new lists easilly, but getting back to the frontend block, I find that none of theses lists show up in the subscription list, it's not even there.

I think we need to look at the changelog of version 7.1.15 to understand what changes impacted the entity reference module.

Thanks alot for your help

Mohamed_Almasry’s picture

Now it works fine.
Thanks a hundered.

milos.kroulik’s picture

Shouldn't we post a bug to Entity Reference queue?

ParisLiakos’s picture

Assigned: ParisLiakos » Unassigned

I need to find out exactly where the problem is before posting over to Entityreference. Maybe something changed on their API and the entityreference instances need to be initialized with another way
thing is, i am out of time those days.if anyone could take a look i would appreciate it.

ParisLiakos’s picture

Mohamed_Almasry’s picture

Now that this bug is fixed, whenever I try deleting one of the lists, it dissapears from the backend but still shows up in the modal window in the frontend though it's completely deleted from the backend !

jim005’s picture

Status: Active » Patch (to be ported)

Working well thanks !

TomSherlock’s picture

FileSize
65.4 KB

Since I encountered the same problem with version 7.x-1.0-beta8+21-dev I successfully applied the patch.
However, now I am unable to see the list of Lists on the anonymous subscription form (see attached image).

Any suggestions?

ParisLiakos’s picture

Tom:
go here:
admin/config/media/newsletter/subscribers/fields/field_newsletter_list

and just click save;)

ParisLiakos’s picture

Status: Patch (to be ported) » Fixed

fix commited:
http://drupalcode.org/project/newsletter.git/blobdiff/85e65077cdf9544572...

Thanks everyone, i will release a new version with this fix

TomSherlock’s picture

Thanks, rootatwc. That worked.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.