Page 1 of 1

Language string failed to load: instantiate

Posted: Mon 13. Mar 2006, 06:49
by Kosse
shoot me...
:oops: :oops: :oops:
I've come accros this a couple of times (in different sites) and still...
I use fr lang pack, last dev release...
it's about the cnt.23 // email contact form content part ...
cannot get it to work, I usually don't like to beg, but I'm in a hurry...
:shock: :( :cry:

OG "explained" it a while ago, to be honest, didn't understand it...
I know some posts talk about it, but could not find the solution (and the worst part is that I think I already did it ... grrrrr)

Thx for any help, really.

Cheers

Anyone??????????????????????????????????????????????????

Posted: Mon 13. Mar 2006, 22:20
by Ben
Kosse,

I just went through this in a project I'm working. Suprisingly, your problems probably do not relate to the language file. The error messages resulted from the server not having an SMTP server running on it. This thread was very helpful to me - http://www.phpwcms.de/forum/viewtopic.php?t=8528

Let me know if you have further questions.

Posted: Tue 14. Mar 2006, 14:02
by Kosse
Hi Ben,

thank you for your reply, at least I feel less lonely ;)
The thing is that I watched that topic (and even posted in it) and ...sadly that is not my problem as I always use the same provider for my sites and the mail function does work on the other ones, so I guess it's not the server.

I pointed to the language file because I remember (but not quite good enough) I had to tweak something to make it work on my other sites, the problem is that I can't remember WHAT I did :? stupid but true...

So, I'm still stuck and any help/hint/solution would be really appreciated...

Cheers

Posted: Tue 14. Mar 2006, 17:21
by StudioZ
Hi Kosse :wink:
Could your problem be related to this:

Code: Select all

$BL['be_cnt_field']						= array("text"=>'texte', "email"=>'email', "textarea"=>'texte (multi-lignes)',
"hidden"=>'caché', "password"=>'mot de passe', "select"=>'sélectionner le menu',
"list"=>'menu de la liste', "checkbox"=>'checkbox', "radio"=>'bouton radio',
"upload"=>'upload fichier', "submit"=>'bouton d\'envoi', "reset"=>'bouton reset',
"break"=>'séparateur', "breaktext"=>'séparateur (texte)', "special"=>'texte (spécial)');
:?:

Cheers,

Posted: Tue 14. Mar 2006, 17:33
by Kosse
StudioZ wrote:Hi Kosse :wink:
Could your problem be related to this:

Code: Select all

$BL['be_cnt_field']						= array("text"=>'texte', "email"=>'email', "textarea"=>'texte (multi-lignes)',
"hidden"=>'caché', "password"=>'mot de passe', "select"=>'sélectionner le menu',
"list"=>'menu de la liste', "checkbox"=>'checkbox', "radio"=>'bouton radio',
"upload"=>'upload fichier', "submit"=>'bouton d\'envoi', "reset"=>'bouton reset',
"break"=>'séparateur', "breaktext"=>'séparateur (texte)', "special"=>'texte (spécial)');
:?:

Cheers,
Salut l'ami! ;)

I will try ~again ~ with your piece of code (tried already but didn't change... :( ) I'll post again (in a few secs) :D if it worked !
Thx
Cheers

Posted: Tue 14. Mar 2006, 18:01
by Kosse
Wasn't that ... :(
:? :cry: :cry: :cry: :cry: :cry:

Posted: Tue 14. Mar 2006, 18:07
by StudioZ
Kosse wrote:Wasn't that ... :(
:? :cry: :cry: :cry: :cry: :cry:
hmmm... then maybe these threads I found could help you ?
http://www.phpwcms.de/forum/viewtopic.php?t=8365
http://www.phpwcms.de/forum/viewtopic.php?t=8480

:?:

Posted: Wed 15. Mar 2006, 10:41
by Kosse
Ok, finally what I did (as I couldn't find the solution ??? ) was setting the mail function in conf.inc.php (/config/phpwcms/conf.inc.php) to smtp and not the default mail function

So, in conf.inc.php around the last line I modified this:

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'webmaster@piezoworks.be'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'phpwcms webmaster'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
to this:

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'webmaster@piezoworks.be'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'phpwcms webmaster'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'smtp'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 1; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = 'smtp@piezoworks.be'; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = 'mypass'; // default SMTP password
That worked (perelandra gave the hint)
Hope to know one day why it didn't work, anyway now I know for the future:
Use smtp with auth ON, so all is fine,
hope someone can benefit from this too.

And... many thx Ben/Yves for support ;)

Cheers

Posted: Fri 24. Mar 2006, 11:48
by sudoku
Thx, Kosse!

Your hint did help to solve my problem with formulars as well!

BTW: It also works with "sendmail" ;-)

Tilo

Posted: Wed 10. May 2006, 16:52
by lpsoleil
I got the same trouble and came here for help. Trying SMTP solution I find out that for me, i just had to change this line

Code: Select all

$phpwcms["default_lang"]      = "en";  //default language
to french, and it works fine. But i don't know if your default language is french "fr" as mine...