Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Error Language Interface 2.3.1rc2


Reply


6 Posts   2164 Views

Avatar
Foulensois

Community Member, 13 Posts

18 March 2009 at 3:19am

Hi,

I test the new version and I ve got the following errors :

- Interface Language in Admin/my profile

I tested to change the language to french and it s not working. The language is always english and I ve got an error "It s not an array..."

- Search engine

It appears some problems with ssviewer. The script says it is not defined...

This errors appear when I ve installed the new version. Now, it s Ok but I don t have the french admin language. I tested to have an other default language "hungarian" and it s working... (For polish, it s not working...)

Avatar
Foulensois

Community Member, 13 Posts

18 March 2009 at 4:11am

- First error

[Warning] array_merge() [function.array-merge]: Argument #1 is not an array
GET /mf/admin/myprofile

Line 14 in /homez.20/virtuaso/www/mf/cms/lang/fr_FR.php
Source

5 * @package cms
6 * @subpackage i18n
7 */
8
9 i18n::include_locale_file('cms', 'en_US');
10
11 global $lang;
12
13 if(array_key_exists('fr_FR', $lang) && is_array($lang['fr_FR'])) {
14    $lang['fr_FR'] = array_merge($lang['en_US'], $lang['fr_FR']);
15 } else {
16    $lang['fr_FR'] = $lang['en_US'];
17 }
18
19 $lang['fr_FR']['AssetAdmin']['CHOOSEFILE'] = 'Choisir un fichier';
20 $lang['fr_FR']['AssetAdmin']['CONTENTMODBY'] = 'Contenu modifiable par';

Trace

* array_merge(,Array)
Line 14 of fr_FR.php
* include_once(/homez.20/virtuaso/www/mf/cms/lang/fr_FR.php)
Line 1108 of i18n.php
* i18n::include_by_locale(fr_FR)
Line 856 of i18n.php
* i18n::_t(LeftAndMain.HELP,Help,100,Menu title)
Line 286 of Core.php
* _t(LeftAndMain.HELP,Help,100,Menu title)
Line 113 of LeftAndMain.php
* LeftAndMain->init()
Line 80 of CMSMain.php
* CMSMain->init()
Line 113 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 262 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 106 of Director.php
* Director::direct(/admin/myprofile)
Line 115 of main.php

- 2nd error

[Warning] None of these templates can be found: Security_SearchForm.ss, Security.ss
GET /mf/Security/SearchForm?Search=cms&action_results=Search

Line 175 in /homez.20/virtuaso/www/mf/sapphire/core/SSViewer.php
Source

166                $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
167                unset($this->chosenTemplates[$templateFolder]);
168             }
169          }
170
171          if(isset($_GET['debug_request'])) Debug::message("Final template selections made: " . var_export($this->chosenTemplates, true));
172
173       }
174
175       if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
176
177       parent::__construct();
178    }
179    
180    /**
181     * Returns true if at least one of the listed templates exists

Trace

* None of these templates can be found: Security_SearchForm.ss, Security.ss
Line 175 of SSViewer.php
* SSViewer->__construct(Array)
Line 308 of Controller.php
* Controller->getViewer(SearchForm)
Line 175 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 262 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 106 of Director.php
* Director::direct(/Security/SearchForm)
Line 115 of main.php

Avatar
Struchin

Community Member, 2 Posts

20 March 2009 at 6:11pm

I have some trouble with Russian!!!

Avatar
Struchin

Community Member, 2 Posts

20 March 2009 at 6:15pm

Im reinstall to SS 2.2.3 - everything fine!

Avatar
denisrosset

Community Member, 4 Posts

22 May 2009 at 4:59am

I had the same problem, caused by my webhost having register_globals on. A quick fix to the .htaccess stopped the problem :

Add to the root .htaccess file :

php_flag register_globals off

Avatar
Mindaugas

Community Member, 1 Post

12 July 2011 at 12:59am

I had the same problem with my language.

I was added missing translations to mysite/_config.php file:

global $lang;
$lang['en_US']['QnAForm']['NAME'] = "Your Name";
$lang['en_US']['QnAForm']['EMAIL'] = "Email";
...

After I've moved all the translations to the individual language files in the directory mysite/lang/, everything picks up.