1
atlaseuro
Notice [PHP]: Use of undefined constant _MAIL_MAILGOOD
  • 2004/11/16 13:02

  • atlaseuro

  • Just popping in

  • Posts: 12

  • Since: 2004/11/4


Hello everyone,

(I am using xoops/language/french)
In the menu of module X-HELP I have this error coming on the waiting page "thank's for your submission" :

Notice [PHP]: Use of undefined constant _MAIL_MAILGOOD - assumed '_MAIL_MAILGOOD' in file class/xoopsmailer.php line 290

Looking to the kee _MAIL_MAILGOOD in file class/xoopsmailer.php line 290 I read :


} else {
if ($debug) {
$this->success[] = sprintf(_MAIL_MAILGOOD, $mailaddr);

These kee is used by mail.php in xoops/language/english
that way:

define("_MAIL_MAILGOOD", "Mail sent to %s.");


And then when looking in mail.php in xoops/language/french
we can read :

define("_AM_MAILGOOD", "Mail envoyé à %s.");

That is, may be, the reason...

Why the french mail.php is writed with "_AM_MAILGOOD" when the english one is with _MAIL_MAILGOOD ?
The X-HELP module is looking for the _MAIL_MAILGOOD, $mailaddr

Is this the cause of the error?

Thank's veryone who can help me,

John

2
Herko
Re: Notice [PHP]: Use of undefined constant _MAIL_MAILGOOD
  • 2004/11/16 14:38

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Yes, if you change the _AM_ to _MAIL_ in the frnech main.php file, then it should work fine. To be sure, add the line with _MAIL_ to the file, and not remove the _AM_ declaration, maybe its used elsewhere?

Herko

3
atlaseuro
Re: Notice [PHP]: Use of undefined constant _MAIL_MAILGOOD
  • 2004/11/16 15:16

  • atlaseuro

  • Just popping in

  • Posts: 12

  • Since: 2004/11/4


Thank's Herko,

I will try just at the minute !
I did not change before asking here because my
mail.php in xoops/language/french is writed :

// Support Francophone de XOOPS (http://www.frxoops.org)
define("_AM_MSGBODY", "Le corps du message n'est pas saisi.");
define("_AM_FAILOPTPL", "Echec d'ouverture du fichier template.");
define("_AM_FNAMENG", "Le nom de l'expéditeur n'est pas saisi.");
define("_AM_FEMAILNG", "L'e-mail de l'expéditeur n'est pas saisi.");
define("_AM_SENDMAILNG", "Impossible d'envoyer le mail à %s.");
define("_AM_MAILGOOD", "Mail envoyé à %s.");
define("_AM_SENDPMNG", "Impossible d'envoyer le message privé à %s.");
define("_AM_PMGOOD", "Message privé envoyé à %s.");
?>

and the original english one is :

define("_MAIL_MSGBODY", "Message body is not set.");
define("_MAIL_FAILOPTPL", "Failed opening template file.");
define("_MAIL_FNAMENG", "From Name is not set.");
define("_MAIL_FEMAILNG", "From Email is not set.");
define("_MAIL_SENDMAILNG", "Could not send mail to %s.");
define("_MAIL_MAILGOOD", "Mail sent to %s.");
define("_MAIL_SENDPMNG", "Could not send private message to %s.");
define("_MAIL_PMGOOD", "Private message sent to %s.");
?>


I never touch thoses files before, they are the original files of the last official XOOPS V2 download staff.

Are those _AM_xxxxx keys all wrong and necessary to change the whole in _MAIL_xxxx ?

Best regards
attempting for your answer,

john

4
atlaseuro
Re: Notice [PHP]: Use of undefined constant _MAIL_MAILGOOD
  • 2004/11/16 15:26

  • atlaseuro

  • Just popping in

  • Posts: 12

  • Since: 2004/11/4


Herko,

I change only:

define("_AM_MAILGOOD", "Mail sent to %s.");
in
define("_MAIL_MAILGOOD", "Mail sent to %s.");

and at this time I have no more alert,
the module works perfectly

Well, do you think I have to do with all others?

If it is the case, could you alert frxoops.org team or the XF-HELP team that it quite boring to have such error in a module supposed to be perfect?

Any way, your contribution is a must for me, a bit losted in
" XOOPS obstructions "
:)

(I keep your adress...)

from Paris (France)

john

Login

Who's Online

506 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 506


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits