1043 Posts in 379 Topics by 373 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1897 Views |
-
Error Language Interface 2.3.1rc2

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...)
-
Re: Error Language Interface 2.3.1rc2

18 March 2009 at 4:11am
- First error
[Warning] array_merge() [function.array-merge]: Argument #1 is not an array
GET /mf/admin/myprofileLine 14 in /homez.20/virtuaso/www/mf/cms/lang/fr_FR.php
Source5 * @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=SearchLine 175 in /homez.20/virtuaso/www/mf/sapphire/core/SSViewer.php
Source166 $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 existsTrace
* 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 -
Re: Error Language Interface 2.3.1rc2

20 March 2009 at 6:15pm
Im reinstall to SS 2.2.3 - everything fine!
-
Re: Error Language Interface 2.3.1rc2

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
-
Re: Error Language Interface 2.3.1rc2

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.
| 1897 Views | ||
|
Page:
1
|
Go to Top |


