News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Problem with birthday emial templates

Started by milenmk, July 10, 2009, 10:04:16 AM

Previous topic - Next topic

milenmk

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)


H

Does the same problem occur with the English language files? I wonder if the birthday strings are missing
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

milenmk

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.

H

Hi milenmk, did you have time to take a look at this? :)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

milenmk

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.

H

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)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

milenmk

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

H

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
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             


GravuTrad

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)
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

milenmk

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. :)

Advertisement: