Bug #34176
Argument 1 passed to tx_multicolumn_div::prefixArray() must be an array, null given
| Status: | Resolved | Start date: | 2012-02-22 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 2.1.14 | Estimated time: | 0.17 hour | |
| TYPO3 Version: | 6.0 | PHP Version: | ||
| Votes: | 4 (View) |
Description
Depending on the configured languages, an fatal error is possible:
#1: PHP Catchable Fatal Error: Argument 1 passed to tx_multicolumn_div::prefixArray() must be an array, null given, called in C:\TYPO3_4.6.0\htdocs\Introduction\typo3conf\ext\multicolumn\pi1\class.tx_multicolumn_pi1.php on line 137 and defined in C:\TYPO3_4.6.0\htdocs\Introduction\typo3conf\ext\multicolumn\lib\class.tx_multicolumn_div.php line 194
This problem can be fixed with this code:
$llArray = ($this->LOCAL_LANG[$this->LLkey]) ? $this->LOCAL_LANG[$this->LLkey] : $this->LOCAL_LANG['default']; $this->llPrefixed = tx_multicolumn_div::prefixArray($llArray, 'lll:');
instead of:
$this->llPrefixed = tx_multicolumn_div::prefixArray($this->LOCAL_LANG[$this->LLkey], 'lll:');
This means: 'default' as language-key will cause an error and this changes will fix this problem.
History
Updated by Chris no-lastname-given 11 months ago
Got the same problem, the patch works fine, thx!
Updated by Dmitry Dulepov 3 months ago
- Status changed from New to Resolved
- Target version set to 2.1.14
- % Done changed from 0 to 100
- TYPO3 Version set to 6.0
Already fixed in svn. The code there is:
$LLkey = (isset($this->LOCAL_LANG[$this->LLkey])) ? $this->LLkey : 'default'; $this->llPrefixed = tx_multicolumn_div::prefixArray($this->LOCAL_LANG[$LLkey], 'lll:');