Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: milenmk on July 10, 2009, 10:04:16 AM

Title: Problem with birthday emial templates
Post by: milenmk on July 10, 2009, 10:04:16 AM
I use SMF 2.0 RC 1-1. When I go to Admin>>Mail>>Mail Setting, where I have to choose birthday mail template it's inactive


In the log it gives me error:

Apply Filter: Only show the error messages of this URL  http://forum.softwarefreaks.org/index.php?action=admin;area=mailqueue;sa=settings;a8c046b=41a94ff25210f08651b2ee680e1512b0
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
file: ~/Sources/ManageMail.php
line: 305


http://forum.softwarefreaks.org/index.php?action=admin;area=mailqueue;sa=settings;a8c046b=41a94ff25210f08651b2ee680e1512b0
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: ~/Sources/ManageMail.php
Line: 251



The file "Managemail.php" has:



250    $emails = array();
251    foreach ($birthdayEmails as $index => $dummy)
252    $emails[$index] = $index;


305 foreach ($birthdayEmails as $index => $email)

Title: Re: Problem with birthday emial templates
Post by: H on July 12, 2009, 08:13:35 AM
Does the same problem occur with the English language files? I wonder if the birthday strings are missing
Title: Re: Problem with birthday emial templates
Post by: milenmk on July 16, 2009, 08:26:55 AM
Quote from: H on July 12, 2009, 08:13:35 AM
Does the same problem occur with the English language files? I wonder if the birthday strings are missing

I'll try it later and will update this post.
Title: Re: Problem with birthday emial templates
Post by: H on July 18, 2009, 06:21:53 PM
Hi milenmk, did you have time to take a look at this? :)
Title: Re: Problem with birthday emial templates
Post by: milenmk on July 18, 2009, 08:41:37 PM
Quote from: H on July 18, 2009, 06:21:53 PM
Hi milenmk, did you have time to take a look at this? :)
Yup. On English all is OK. However, I already installed v2 RC 1-2 and it's the same - can't see them on Bulgarian.
Title: Re: Problem with birthday emial templates
Post by: H on July 19, 2009, 12:51:35 PM
Please try downloading a new set of language files in case there was a temporary glitch. If the problem remains, please attach the EmailTemplates.galician.php file that you're using (from Themes/default/languages)
Title: Re: Problem with birthday emial templates
Post by: milenmk on July 19, 2009, 01:51:15 PM
I've re-download Bulgarian UTF-8 for v2 RC 1-2 and replace EmailTemplates.bulgarian-utf8.php but no change. I can see the templates in the file, but they don't appear in settings section
Title: Re: Problem with birthday emial templates
Post by: H on July 19, 2009, 02:01:50 PM
There is a problem with the language file. I'll try and get this sorted with the language team. For now you can try copying the english file and renaming it so you atleast have something displayed
Title: Re: Problem with birthday emial templates
Post by: milenmk on July 19, 2009, 02:34:13 PM
Thanks.
Title: Re: Problem with birthday emial templates
Post by: GravuTrad on July 19, 2009, 08:20:30 PM
entry reputted like english one.

the bulgarian language was the only one concerned due to a bad modification on this entry (empty string). Corrected, and available at the next cron update of the packs (each 24h)
Title: Re: Problem with birthday emial templates
Post by: milenmk on July 20, 2009, 06:21:48 AM
Quote from: GravuTrad on July 19, 2009, 08:20:30 PM
...Corrected, and available at the next cron update of the packs (each 24h)

Looking forward for it. :)