Language string failed to load: instantiate

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Language string failed to load: instantiate

Post 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??????????????????????????????????????????????????
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Wasn't that ... :(
:? :cry: :cry: :cry: :cry: :cry:
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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

:?:
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
sudoku
Posts: 7
Joined: Mon 26. Sep 2005, 22:25
Location: Leipzig
Contact:

Post by sudoku »

Thx, Kosse!

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

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

Tilo
lpsoleil
Posts: 17
Joined: Sun 25. Dec 2005, 23:04
Location: Montreal, Canada
Contact:

Post 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...
Post Reply