Jump to:

1149 Posts in 2553 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Error Language Interface 2.3.1rc2

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 2060 Views
  • Foulensois
    Avatar
    Community Member
    13 Posts

    Error Language Interface 2.3.1rc2 Link to this post

    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...)

  • Foulensois
    Avatar
    Community Member
    13 Posts

    Re: Error Language Interface 2.3.1rc2 Link to this post

    - 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

  • Struchin
    Avatar
    Community Member
    2 Posts

    Re: Error Language Interface 2.3.1rc2 Link to this post

    I have some trouble with Russian!!!

  • Struchin
    Avatar
    Community Member
    2 Posts

    Re: Error Language Interface 2.3.1rc2 Link to this post

    Im reinstall to SS 2.2.3 - everything fine!

  • denisrosset
    Avatar
    Community Member
    4 Posts

    Re: Error Language Interface 2.3.1rc2 Link to this post

    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

  • Mindaugas
    Avatar
    Community Member
    1 Post

    Re: Error Language Interface 2.3.1rc2 Link to this post

    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.

    2060 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.