Bug #28523
closedProblems with new Card Layout in backend modules
100%
Description
PHP Warning: explode() expects parameter 2 to be string, array given in t3lib/class.t3lib_div.php line 1430
PHP Warning: array_map() [function.array-map]: Argument #2 should be an array in t3lib/class.t3lib_div.php line 1432
PHP Warning: Invalid argument supplied for foreach() in t3lib/class.t3lib_loadmodules.php line 409
This is due to 120d38d [FEATURE] Speed-up Backend with CardLayout.
There a new array is introduced inside GLOBALS['TBE_MODULES'] and called ['_JSINIT'].
However $GLOBALS['TBE_MODULES'] should only contain strings (at least this is assumed by the code in t3lib_loadmodules). ['_JSINIT'] is an array and thus leads to those warnings.
I am not sure how to fix this easily. Anyone?
Updated by Oliver Hader over 13 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
- Target version set to 4.6.0-beta1
For example I get the following at the mentioned position - however a list as string is expected.
array(29) { ["web_layout"]=> string(119) " TYPO3.Viewport.ContentCards.addContentCard("web_layout", { xtype: "iframePanel" } ); " ["tools_em"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("tools_em", { xtype: "iframePanel" } ); " ["web_list"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("web_list", { xtype: "iframePanel" } ); " ["help_txtsconfighelpM1"]=> string(130) " TYPO3.Viewport.ContentCards.addContentCard("help_txtsconfighelpM1", { xtype: "iframePanel" } ); " ["web_ts"]=> string(115) " TYPO3.Viewport.ContentCards.addContentCard("web_ts", { xtype: "iframePanel" } ); " ["tools_dbint"]=> string(120) " TYPO3.Viewport.ContentCards.addContentCard("tools_dbint", { xtype: "iframePanel" } ); " ["tools_config"]=> string(121) " TYPO3.Viewport.ContentCards.addContentCard("tools_config", { xtype: "iframePanel" } ); " ["tools_install"]=> string(122) " TYPO3.Viewport.ContentCards.addContentCard("tools_install", { xtype: "iframePanel" } ); " ["tools_log"]=> string(118) " TYPO3.Viewport.ContentCards.addContentCard("tools_log", { xtype: "iframePanel" } ); " ["tools_beuser"]=> string(121) " TYPO3.Viewport.ContentCards.addContentCard("tools_beuser", { xtype: "iframePanel" } ); " ["help_aboutmodules"]=> string(126) " TYPO3.Viewport.ContentCards.addContentCard("help_aboutmodules", { xtype: "iframePanel" } ); " ["user_setup"]=> string(119) " TYPO3.Viewport.ContentCards.addContentCard("user_setup", { xtype: "iframePanel" } ); " ["user_task"]=> string(118) " TYPO3.Viewport.ContentCards.addContentCard("user_task", { xtype: "iframePanel" } ); " ["web_view"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("web_view", { xtype: "iframePanel" } ); " ["tools_txphpmyadmin"]=> string(127) " TYPO3.Viewport.ContentCards.addContentCard("tools_txphpmyadmin", { xtype: "iframePanel" } ); " ["web_info"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("web_info", { xtype: "iframePanel" } ); " ["web_perm"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("web_perm", { xtype: "iframePanel" } ); " ["web_func"]=> string(117) " TYPO3.Viewport.ContentCards.addContentCard("web_func", { xtype: "iframePanel" } ); " ["file_list"]=> string(118) " TYPO3.Viewport.ContentCards.addContentCard("file_list", { xtype: "iframePanel" } ); " ["help_about"]=> string(119) " TYPO3.Viewport.ContentCards.addContentCard("help_about", { xtype: "iframePanel" } ); " ["help_cshmanual"]=> string(123) " TYPO3.Viewport.ContentCards.addContentCard("help_cshmanual", { xtype: "iframePanel" } ); " ["tools_txphpunitbeM1"]=> string(128) " TYPO3.Viewport.ContentCards.addContentCard("tools_txphpunitbeM1", { xtype: "iframePanel" } ); " ["web_txrecyclerM1"]=> string(125) " TYPO3.Viewport.ContentCards.addContentCard("web_txrecyclerM1", { xtype: "iframePanel" } ); " ["tools_txreportsM1"]=> string(126) " TYPO3.Viewport.ContentCards.addContentCard("tools_txreportsM1", { xtype: "iframePanel" } ); " ["tools_txschedulerM1"]=> string(128) " TYPO3.Viewport.ContentCards.addContentCard("tools_txschedulerM1", { xtype: "iframePanel" } ); " ["tools_txextdevevalM1"]=> string(129) " TYPO3.Viewport.ContentCards.addContentCard("tools_txextdevevalM1", { xtype: "iframePanel" } ); " ["web_txirretutorialM1"]=> string(129) " TYPO3.Viewport.ContentCards.addContentCard("web_txirretutorialM1", { xtype: "iframePanel" } ); " ["txllxml"]=> string(116) " TYPO3.Viewport.ContentCards.addContentCard("txllxml", { xtype: "iframePanel" } ); " ["txllxml_translate"]=> string(126) " TYPO3.Viewport.ContentCards.addContentCard("txllxml_translate", { xtype: "iframePanel" } ); " }
Updated by Oliver Hader over 13 years ago
- Subject changed from Regression: php warnings in User Settings to Problems with new Card Layout in backend modules
Updated by Kay Strobach over 13 years ago
i check it out - sry for inconvience
I currently have 2 possible solutions:
1. modify functions to ignore _JSINIT normaly -> possibly unclean
2. use either $TBE_MODULES $TBE_MODULES_EXT module properties
Will be back at desk in about 3h.
Updated by Kay Strobach over 13 years ago
[11:44:33] Kay Strobach: perfect - back to #28523 i would like to change it so, that the cards are created on runtime for modules which do not add extjs cards - this way the em api stays untouched compared to 4.5, new modules can add their extjs modules as in the example and we do not need a new superglobal
[11:44:55] Xavier Perseguers: then go!
[11:44:58] Kay Strobach: good
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820
Updated by Kay Strobach over 13 years ago
Thanks Steffen for the idea of simply hiding all "_" namend keys from the interpretor ;)
Updated by Mr. Hudson over 13 years ago
Patch set 3 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820
Updated by Mr. Hudson over 13 years ago
Patch set 4 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820
Updated by Mr. Hudson over 13 years ago
Patch set 5 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820
Updated by Kay Strobach over 13 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset a408234cdf05ef4b69682161d8e2198db71318fd.
Updated by Xavier Perseguers over 12 years ago
- Status changed from Resolved to Closed
Updated by Ernesto Baschny over 11 years ago
- Target version deleted (
4.6.0-beta1)