[SOLVED] my Global Content Blocks (GCB) vanished

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.
Locked
WolleKK
Forum Members
Forum Members
Posts: 15
Joined: Sat Nov 21, 2009 4:42 pm

[SOLVED] my Global Content Blocks (GCB) vanished

Post by WolleKK »

Hey there,

at first thanks for creating these great mle-version. Second sorry for my very bad English. I asked first at the German forum but no one knew the answer, but an admin redirected me to the mle forum.
I made my CMSMS-mle website at my local xampp server. It's version 1.6.6 mle. Now I moved my site to a "real" webserver. I had some problems, but after re uploading some times the site works :)
Well, it nearly works, my Global Content Block "footer" (my only GCB) is not shown. Instead of the footer I have the message:

Code: Select all

string(61) "Smarty error: unable to read resource: "globalcontent:footer"
At backend menu I can choose the GCB, but nothing is shown. Even when I create a new GCB. At the database I can see the content of the GCB.

My server's php is v5.2.0-8+etch15, Apache 2.0, MySQL 5.0.32. Read and write permission should be okay.

Thanks for your help
and best greetings,
Wolfgang
Last edited by WolleKK on Fri Nov 27, 2009 7:03 am, edited 1 time in total.
Peciura

Re: Help, my Global Content Blocks (GCB) vanished

Post by Peciura »

Upgrade CGExtentions  ???. Upload GCB folder from new mle-fork package ??? Use binary transfer mode.
WolleKK
Forum Members
Forum Members
Posts: 15
Joined: Sat Nov 21, 2009 4:42 pm

Re: Help, my Global Content Blocks (GCB) vanished

Post by WolleKK »

Hi, thanks for your answer!

I didn't have CGExtensions installed  ;D So I installed it.... and nothing happened  :(
I reuploaded all files with *global* in name... nothing
I also used checksum test. Everything okay. The only thing I think could be the problem is at administrator-->system information-->root_path:  

Code: Select all

/data/www/wollekk/html (0) Fehler
Fehler is German and means error. Behind this message is this red X instead of the green check
Peciura

Re: Help, my Global Content Blocks (GCB) vanished

Post by Peciura »

OK. Make files (exept config.php) accessible to apache server.
GCB also may require higher php version (up to 5.2.11) your (5.2.0) is 3y old. :)
WolleKK
Forum Members
Forum Members
Posts: 15
Joined: Sat Nov 21, 2009 4:42 pm

Re: Help, my Global Content Blocks (GCB) vanished

Post by WolleKK »

Hi Peciura :)

I made chmod777 to all files at the webserver (except config.php), same problem :(
I'm sorry I can't update my php server to a higher version. But my server at my localhost worked at php4.x, so it should not be the problem.
Peciura

Re: Help, my Global Content Blocks (GCB) vanished

Post by Peciura »

Last thing i can think of is to create back up and than to install the same CMSms version but without default content (untick checkbox on step 5 or 6).
WolleKK
Forum Members
Forum Members
Posts: 15
Joined: Sat Nov 21, 2009 4:42 pm

Re: Help, my Global Content Blocks (GCB) vanished

Post by WolleKK »

No change happened :(

BUT I found a potential reason. Admin->Global->MLE Languages

Code: Select all

You have a OLD config_lang.php (pre 1.6). Please checks ALL values BELOW and Submit for create a correct new version of config_lang.php!
But I just reinstalled v1.6.6
The content of my config_lang.php is

Code: Select all

<?php

/*******
 SINTAX:
 'KEY' => array(
	'locale_cms' => 'LOCALE LANGUAGE IN CMSMS', //MANDATORY One valid CMSMS locale or near to
	'block' => 'DATABASE KEY', //MANDATORY AND UNIQUE In general 2 chars same of 'parent'
	'parent' => 'PARENT LANGUAGE', //OPTIONAL 2 chars parent language, if you have others set to 5 WITH DASH, ex: en-AU
	'flag' => 'HTML IMG TAG FOR LOCALE FLAG', //MANDATORY ABSOLUTE URL PATH
	'text' => 'NATIVE LANGUAGE', //OPTIONAL Use for lang plugin if you don't use flags icon
	'locale' => 'SERVER LOCALE', //OPTIONAL Set for specific locale server if different from 'locale_cms'
 ),
 *******/

define('DEFAULT_LANG', 'de_DE');


$hls = array(
 'en' => array(
	'locale_cms'=>'en_US',
	'block'=>'en',
	'parent'=>'en',
	'flag'=>'<img src="uploads/lang/us.png" style="border:0;opacity:1;" alt="English" title="English" />',
	'text'=>'English',
	'locale'=>'en_US.UTF-8'
 ),
 'de' => array(
	'locale_cms'=>'de_DE',
	'block'=>'de',
	'parent'=>'de',
	'flag'=>'<img src="uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
	'text'=>'Deutsch (German)',
	'locale'=>'de_DE.UTF-8'
 ),
);
?>
Default lang is German. Sometimes when I click on sites I have to choose a language before I can click the content sites.
Peciura

Re: Help, my Global Content Blocks (GCB) vanished

Post by Peciura »

Code: Select all

define('DEFAULT_LANG', 'de_DE');
this line is from old config_lang.php.

Set default language to German in "Site Admin » Global Settings » MLE languages".
If default language is not set the first member of "$hls" is assumed to be default language. So if your "config_lang.php" looked like this probably you would not have any issues.

Code: Select all

<?php
$hls = array(
 'de' => array(
	'locale_cms'=>'de_DE',
	'block'=>'de',
	'parent'=>'de',
	'flag'=>'<img src="uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
	'text'=>'Deutsch (German)',
	'locale'=>'de_DE.UTF-8'
 ),
 'en' => array(
	'locale_cms'=>'en_US',
	'block'=>'en',
	'parent'=>'en',
	'flag'=>'<img src="uploads/lang/us.png" style="border:0;opacity:1;" alt="English" title="English" />',
	'text'=>'English',
	'locale'=>'en_US.UTF-8'
 ),

);
?>
Also test mle settings http://forum.cmsmadesimple.org/index.ph ... #msg183059
WolleKK
Forum Members
Forum Members
Posts: 15
Joined: Sat Nov 21, 2009 4:42 pm

Re: Help, my Global Content Blocks (GCB) vanished

Post by WolleKK »

The mle-test said everything was alright

But updating the config_lang actually was the reason of the failure. Now it is working. Thank you very very much. You helped me a lot :) :) :)
Locked

Return to “[locked] CMSMS MLE fork”