global content blocks not showing

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Peciura

Re: global content blocks not showing

Post by Peciura »

Try to change  'block'=>'en', to  'block'=>'en_US' (and may by 'block'=>'fr'  to 'block'=>'fr_FR').

If noting appears in GCB tab or you will get other errors, post structure of tables, lets say, "cms_content" and "cms_htmlblobs" to forum.
User avatar
grudz
Forum Members
Forum Members
Posts: 66
Joined: Mon Jul 28, 2008 4:54 pm

Re: global content blocks not showing

Post by grudz »

well the problem with the GCB not appearing has been fixed by changing the column name "html" to "html_" in the table htmlblobs.

however, after enabling the debug feature, i am still getting these two errors
otice: Undefined index: en_US in /mnt/w0002/d01/s46/b02e2ac4/www/tillemont.com/include.php on line 246

Warning: Cannot modify header information - headers already sent by (output started at /mnt/w0002/d01/s46/b02e2ac4/www/tillemont.com/include.php:246) in /mnt/w0002/d01/s46/b02e2ac4/www/tillemont.com/index.php on line 376
also, if i change my config_lang to what you asked (block -> en to en_US) my website doesnt work and i get these errors
Error in some DB fields:
Error check column content_name_en_US in cms_content
Error check column menu_text_en_US in cms_content
Error check column metadata_en_US in cms_content
Error check column titleattribute_en_US in cms_content
Error check column html_en_US in cms_htmlblobs
Error check column content_name_fr_FR in cms_content
Error check column menu_text_fr_FR in cms_content
Error check column metadata_fr_FR in cms_content
Error check column titleattribute_fr_FR in cms_content
Error check column html_fr_FR in cms_htmlblobs
Peciura

Re: global content blocks not showing

Post by Peciura »

Post to forum:
line 246 of file "include.php" (is it " if(!empty($default_lang_fallback) && (DEFAULT_LANG !=$hl)) $mleblockfallback = '_'.$hls[DEFAULT_LANG]['block'];" line ?),
structure of data base tables "cms_content" and
                                              "cms_htmlblobs"
screenshots of "Site Admin » Global Settings » MLE settings" and
                        "Site Admin » Global Settings » MLE languages"
Last edited by Peciura on Fri Oct 02, 2009 10:24 pm, edited 1 time in total.
User avatar
grudz
Forum Members
Forum Members
Posts: 66
Joined: Mon Jul 28, 2008 4:54 pm

Re: global content blocks not showing

Post by grudz »

to be safe i put from lines 239 to 251
$mlelocale_cms = (isset($hls[$hl]['locale_cms'])) ?$hls[$hl]['locale_cms']:$hl;
$mleblock = '_'.$hls[$hl]['block'];
$mleparent = strtolower((isset($hls[$hl]['parent'])) ?$hls[$hl]['parent']:$hls[$hl]['block']);
$mleflag = $hls[$hl]['flag'];
$mletext = (isset($hls[$hl]['text'])) ?$hls[$hl]['text']:'';
$mlelocale = (isset($hls[$hl]['locale'])) ?$hls[$hl]['locale']:$mlelocale_cms;
if(!empty($default_lang_fallback) && (DEFAULT_LANG !=$hl)) $mleblockfallback = '_'.$hls[DEFAULT_LANG]['block'];
if(DEFAULT_LANG !=$hl) $mlegcbfallback = '_'.$hls[DEFAULT_LANG]['block'];

//Start DEPRECATED
$arr_mlelang_fallback=array();
$arr_mlelang=array();
if(!empty($default_lang_fallback) && (DEFAULT_LANG !=$hl)) {
please click on www.tillemont.com/cms/Archive.zip to get the tables from my DB
Attachments
mle-settings.jpg
mle-languages.jpg
Peciura

Re: global content blocks not showing

Post by Peciura »

Set your default languge.

Edit. If default language is not set in site preferences, CMSms assumes default languge to be 'en_US'. Unfortunately  :) your language key is "eng" not "en_US".
Last edited by Peciura on Fri Oct 02, 2009 10:25 pm, edited 1 time in total.
User avatar
grudz
Forum Members
Forum Members
Posts: 66
Joined: Mon Jul 28, 2008 4:54 pm

Re: global content blocks not showing

Post by grudz »

well, that makes sense...thank you very much, i enabled debugging and have no errors on my website. :D
Locked

Return to “[locked] CMSMS MLE fork”