Bug #42346
closed
COMPARE in "Database Analyser" in Install tool crasches
Added by Mattias Nilsson almost 12 years ago.
Updated almost 7 years ago.
Description
When trying to use COMPARE (with the latest master for TYPO3 CMS 6.0) in "Database Analyser" in Install tool it crasches with the following error:
PHP Fatal error: Cannot use string offset as an array in /Applications/MAMP/htdocs/typo3_src-git/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3875
- Status changed from New to Under Review
Mattias Nilsson wrote:
When trying to use COMPARE (with the latest master for TYPO3 CMS 6.0) in "Database Analyser" in Install tool it crasches with the following error:
PHP Fatal error: Cannot use string offset as an array in /Applications/MAMP/htdocs/typo3_src-git/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3875
Can you add some more hints how to reproduce this?
Do you have a specific extension installed which causes this?
When entering Install Tool from backend and clicking on the menu item "Database analyzer" and then using the function "COMPARE", this error occurs.
I have currently only installed the Goverment Package other than the submodules from GIT. Both the frontend and backend works fine, the only time the error occurs is when using "COMPARE".
Hmm, I wonder why loadTCA is called for a table that does not exist, or that at least has no correct ctrl section. It would be nice to know the value of $table before here, maybe together with a full backtrace.
Still, the proposed patch sanitizes the method a bit and won't harm.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF