If I send newsletters with a list of few subscribers, everything works. My newsletter with 100 subscribers doesn´t. In this case, no log entry is created.
The only log entries I get related to newsletter is: "Notice: Undefined index: 4 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42.."
Does anyone know, what´s happening here?

Comments

ParisLiakos’s picture

Status:Active» Closed (works as designed)

Did you delete a template?
If so, you need to assign a new one to your list

anni’s picture

No I didn´t delete a template and one is assigned.

ParisLiakos’s picture

Check your database.
Do you have a template with id 4 in the table newsletter_template?

anni’s picture

Yes I do. It was a deleted list.
After deleting the database entry the error remains.
Additional I get the error: "Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc".

ParisLiakos’s picture

Status:Closed (works as designed)» Active

there is something wrong with this list..can you visit all your lists and just re-save them?
when these errors appears?on every page load?or a particular page?

anni’s picture

Status:Active» Closed (works as designed)

Fortunately after resaving my lists, my new created list was sent.
Many thanks for this!!!

The errors still appear. It´s on every page request.
4 Errors, one twice:

"Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc"

"Notice: Undefined index: 4 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42...sites/all/modules/newsletter/includes/newsletter.functions.inc"

"Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc"

"Notice: Undefined index: 5 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42...sites/all/modules/newsletter/includes/newsletter.functions.inc"

ParisLiakos’s picture

Clear your cache.
i cant understand why it cant find the templates with id 4 and 5 since they exist in database

ParisLiakos’s picture

btw if you update to the latest dev version, this warnings will be gone for sure
(be sure to back everything up before you do though, there are a lot of changes:P)

anni’s picture

I´ll give it a try.

anni’s picture

Status:Closed (works as designed)» Active

Sorry, but after upgrading to .dev no mails where sent.

ParisLiakos’s picture

any entries in dblog?
warnings disappear right?

anni’s picture

It tells:
"1 Newsletter Lists failed to send because no subscribers found subscribed to them"

But there are subscribers. As test I deleted them and added them another time. Nothing...

ParisLiakos’s picture

can you send me a database dump of the following tables:

newsletter_list
newsletter_newsletter
newsletter_subscriber
newsletter_template
field_data_field_list_description
field_data_field_newsletter_body
field_data_field_newsletter_categories
field_data_field_newsletter_list
field_data_field_newsletter_template

my mail is my username here at gmail.com
there is something really wrong happening there:/

ParisLiakos’s picture

Version:7.x-1.0-beta6» 7.x-1.x-dev
Status:Active» Postponed (maintainer needs more info)
anni’s picture

I´ll try out a clean installation and report back.
I can´t send all tables because of customer data, sorry.

ParisLiakos’s picture

No problem,i understand..

Did you check it?i plan to release a new beta version soon and wonder if i should check this more before

mvahlsing’s picture

Was there any more information found on this issue? I have the same issue across two different installs - drops the error on me when trying to manually send out newsletters.
Thanks for any info -
MV

<code>    Notice: Undefined index: 3 in newsletter_newsletter_load() (line 1023 of /home2/chesapg3/public_html/sites/all/modules/newsletter/newsletter.module).
    Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 29 of /home2/chesapg3/public_html/sites/all/modules/newsletter/includes/newsletter.custom.inc).
    Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 40 of /home2/chesapg3/public_html/sites/all/modules/newsletter/includes/newsletter.custom.inc).
    Notice: Undefined index: 3 in newsletter_newsletter_load() (line 1023 of /home2/chesapg3/public_html/sites/all/modules/newsletter/newsletter.module).
    Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 29 of /home2/chesapg3/public_html/sites/all/modules/newsletter/includes/newsletter.custom.inc).
    Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 40 of /home2/chesapg3/public_html/sites/all/modules/newsletter/includes/newsletter.custom.inc).
tafsir001’s picture

I am also got this type of notice.
Notice: Undefined index: 14 in newsletter_newsletter_load() (line 1023 of /home/testing/sites/all/modules/contrib/newsletter/newsletter.module).
Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 29 of /home/testing/sites/all/modules/contrib/newsletter/includes/newsletter.custom.inc).
Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 40 of /home/testing/sites/all/modules/contrib/newsletter/includes/newsletter.custom.inc).
I am getting the notice when I am running the cron.
The templates is sending only two or three subscribers,who subscribed first.The subscribers who subscribed early not sending the templates but they are receiving confirmation and welcome mail.plz help me

Tetris7’s picture

Issue summary:View changes

Hi, im getting this problem too.

Notice: Undefined index: 7 en newsletter_newsletter_load() (línea 1031 de /var/www/drupal/sites/all/modules/newsletter/newsletter.module).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 29 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 40 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).
Notice: Undefined index: 8 en newsletter_newsletter_load() (línea 1031 de /var/www/drupal/sites/all/modules/newsletter/newsletter.module).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 29 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 40 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).
Notice: Undefined index: 10 en newsletter_newsletter_load() (línea 1031 de /var/www/drupal/sites/all/modules/newsletter/newsletter.module).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 29 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).
Notice: Trying to get property of non-object en NewsletterCustom->updateNewsletter() (línea 40 de /var/www/drupal/sites/all/modules/newsletter/includes/newsletter.custom.inc).

My version 7.x-1.0-beta10. As tafsir001, for subscribers is not sending the templates but they are receiving confirmation and welcome mail.

EDIT:
After investigating i saw that at table "variable", the var "newsletter_custom_for_next_cron" have a blob with some newsletters that i've removed from admin panel. Don't know why still there when text was removed.

As a temporary solution, i have cloned a record of the table "newsletter_newsletter" and pasted it in that table for each index that drupal said that was undefined (i know that is a stupid solution , but meanwhile :/)

Now i need to investigate how to truncate this var and keep just my current newsletters.