Bug #31923
Problem with multilanguage usage
| Status: | Resolved | Start date: | 2011-11-18 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Dmitry Dulepov | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 2.1.14 | |||
| TYPO3 Version: | 4.5 | PHP Version: | ||
| Votes: | 6 (View) |
Description
We hav a test Typo3 4.6 installation and try multicolumn with two languages. The default language german works fine, we can also create the content for the second language english.
If we try to view the english page in the frontend we get the error:
PHP Catchable Fatal Error: Argument 1 passed to txmulticolumndiv::prefixArray() must be an array, null given, called in /var/www/vhosts/typo4.epion.info/httpdocs/typo3conf/ext/multicolumn/pi1/class.txmulticolumnpi1.php on line 137 and defined in /var/www/vhosts/typo4.epion.info/httpdocs/typo3conf/ext/multicolumn/lib/class.txmulticolumndiv.php line 193
I fix this by changing line 137 of pi1/class.txmulticolumnpi1.php to
$this->llPrefixed = tx_multicolumn_div::prefixArray(($this->LOCAL_LANG[$this->LLkey]?$this->LOCAL_LANG[$this->LLkey]:$this->LOCAL_LANG['default']), 'lll:');
History
Updated by Kurt Kunig about 1 year ago
Status should be "MUST HAVE"!!!
$this->llPrefixed = tx_multicolumn_div::prefixArray(($this->LOCAL_LANG[$this->LLkey]?$this->LOCAL_LANG[$this->LLkey]:$this->LOCAL_LANG['default']), 'lll:');
must be copied out of an old version!?
in multicolumn version 2.1.13 line 138 it was:
$this->llPrefixed = tx_multicolumn_div::prefixArray($this->LOCAL_LANG [$this->LLkey] , 'lll:');
I replaced the mentioned statement with:
$this->llPrefixed = tx_multicolumn_div::prefixArray($this->LOCAL_LANG, 'lll:');
After that, the error disappeared!
Updated by d.ros no-lastname-given about 1 year ago
Can confirm. Same behaviour here.
Updated by Blogger about 1 year ago
I confirm this bug,
TYPO3 4.6.4 and Multicolumn 2.1.13
Updated by Stephan Petzl 8 months ago
Confirmed
Updated by Alex Kellner 5 months ago
Another idea is listed here:
http://www.typo3.net/forum/beitraege/diverse_sonstige_module/108794/
// public static function prefixArray($array, $prefix) {
public static function prefixArray((array) $array, $prefix) {
Why is nobody interested in updating multicolumn?
Updated by Dmitry Dulepov about 1 month ago
- Status changed from New to Resolved
- Assignee set to Dmitry Dulepov
- Target version set to 2.1.14
- TYPO3 Version set to 4.5
This is resolved in version 2.1.14.