Project

General

Profile

Actions

Bug #28523

closed

Problems with new Card Layout in backend modules

Added by Philipp Gampe over 12 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-07-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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?


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Task #28590: Backport some changes for 4.6 to 4.5 as discussed before (related to Cardlayout)Rejected2011-07-30

Actions
Related to TYPO3 Core - Task #30645: Revert "[FEATURE] Speed-up Backend with CardLayout"ClosedXavier Perseguers2011-10-08

Actions
Follows TYPO3 Core - Feature #12664: Idea about faster loading modulesClosedKay Strobach2011-01-31

Actions
Actions #1

Updated by Oliver Hader over 12 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" 
                        }
                    );
                " 
}
Actions #2

Updated by Oliver Hader over 12 years ago

  • Subject changed from Regression: php warnings in User Settings to Problems with new Card Layout in backend modules
Actions #3

Updated by Kay Strobach over 12 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.

Actions #4

Updated by Kay Strobach over 12 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

Actions #5

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820

Actions #6

Updated by Mr. Hudson over 12 years ago

Patch set 2 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820

Actions #7

Updated by Kay Strobach over 12 years ago

Thanks Steffen for the idea of simply hiding all "_" namend keys from the interpretor ;)

Actions #8

Updated by Mr. Hudson over 12 years ago

Patch set 3 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820

Actions #9

Updated by Mr. Hudson over 12 years ago

Patch set 4 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820

Actions #10

Updated by Mr. Hudson over 12 years ago

Patch set 5 of change Id749538dd8ee570581cb49df172800ec76242041 has been pushed to the review server.
It is available at http://review.typo3.org/3820

Actions #11

Updated by Kay Strobach over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Xavier Perseguers about 12 years ago

  • Status changed from Resolved to Closed
Actions #13

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF