SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Blank SiteTree Items after install 2334 Views

Re: Blank SiteTree Items after install

26 June 2011 at 8:01pm

Hello Phill,

i presume that you are using SilverCart 1.0. The page inheritance error message is already translated in our revision. It will be published soon.
You have to stick to the installation process. SilverCart is not a simple module. The deep changes to JS handling and the fact that there is actually a new parent class to "Page" do not allow to install the module as easy as any other.
Imprint is legally required in Germany. It should contain tax information and the address of the person responsible for the sites content.
I think your site tree is so messed up because some pages are duplicated and others where not created right. In my humble opinion it would be the best to delete the whole database and start the installation from the beginning as described in the tutorial.
Please tell me if it worked.

Greetings,

Roland

Re: Blank SiteTree Items after install

26 June 2011 at 8:02pm

The installation screencast saves you from reading the manual:
http://www.youtube.com/watch?v=lDclAfELK98

Re: Blank SiteTree Items after install

27 June 2011 at 12:08pm

Hello Phill,

did you set the language to en_US or en_GB? I never ran an installation with en_GB and that strange look of the site tree might come from missing translations and a wrong behavior when pull the language strings.

We will release a new SilverCart version this afternoon.
Maybe your problems will be gone when you use this.

Re: Blank SiteTree Items after install

27 June 2011 at 12:54pm

Hello Phill,

I was able to reproduce the error. If the locale is set to en_GB some pages in the site tree do not have a name. I fixed this quick by adding a file silvercart/lang/en_GB.php and filling it with the content from the en_US.php. Af course you have to replace all array keys 'en_US' with 'en_GB' then.
This change will go into our standard. A new version of SilverCart will be released by the end of today.
Many thanks for your feedback, Phill. We never installed SilverCart with any other language than en_US and de_DE. Without your hint we wouldn't have found this bug.

I would appreciate if you would adjust the en_GB.php to real british english.

Re: Blank SiteTree Items after install

27 June 2011 at 7:41pm

Hi Phill,

we just updated our public bitbucket repository.
Your issue is fixed in the actual tip version, but I really do not recommend to use this version in a productive state. There are still a few layout issues which are not finished yet (especially display errors in IE7 and IE8, non styled templates, etc.).

You can download the tip version from http://code.silvercart.org/silvercart/downloads

Alternatively, you can fix your issue by yourself by adding an i18n plugin like mentioned in the topic Setting the language and adding the following code to your plugins registered function:

i18n::include_locale_file('silvercart', 'en_US');

global $lang;

if (array_key_exists('en_GB', $lang) && is_array($lang['en_GB'])) {
$lang['en_GB'] = array_merge($lang['en_US'], $lang['en_GB']);
} else {
$lang['en_GB'] = $lang['en_US'];
}

I didn't really try this, but it should work. ;-)

A third alternative is to add a copy of silvercart/lang/en_US.php to the lang directory of your project renamed to en_GB.php (e.g. mysite/lang/en_GB.php) and setting the array keys to 'en_GB' like Roland mentioned in the previous post. The reason to add the lang file outside of the silvercart module directory is to keep your version updatable without merging any code.

Regards,
Sebastian