[solved] error with $phpwcms['i18n_parse'] of config

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

[solved] error with $phpwcms['i18n_parse'] of config

Post by Jensensen »

when set to 1 like

Code: Select all

$phpwcms['i18n_parse']	  	  = 1; // enable|disable browser based language parser - all @@Text@@ will be parsed and checked for translation/var based replacement
i get:

Code: Select all

Warning: fopen(/is/htdocs/123XYZ/cms/template/template_lang/de.php) [function.fopen]: failed to open stream: Permission denied in /is/htdocs/123XYZ/cms/include/inc_lib/helper.inc.php on line 101
$phpwcms['i18n_parse'] = 0; is working perfect! WHAT'S WRONG?
Thank you.

(r_306 running)
Last edited by Jensensen on Wed 11. Feb 2009, 01:20, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

[solved] $phpwcms['i18n_parse'] =1 ==> error

Post by Jensensen »

For me it is required to CHMOD the directory /template/template_lang/ to 0777 (default was 755).
Now the cms is allowed creating/writing files within.

And these files for example are called: 'en.php' or 'de.php'. On my web server they have some settings like 'nobody 644'.

Conclusion: DIR /template/template_lang CHMOD 0777 may fix problems that could occur when you set $phpwcms['i18n_parse'] = 1;
(default is on)
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: [solved] error with $phpwcms['i18n_parse'] of config

Post by Jensensen »

strange enough. i have another site with template_lang set to 755 running without any errors. it must be a questions of ENV, i guess. so, take this as info only.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply