[TYPO3-core] RFC: Fix EM2 issues

Franz Holzinger franz at fholzinger.com
Wed Mar 22 13:38:44 CET 2006


Hello,

another try where no global tt_products are available. Only in
typo3conf/ext tt_products 1.2.7 is installed.


[debug] in
/var/www/vhosts/fholzinger.com/httpdocs/TYPO3core/typo3/mod/tools/em/class.em_index.php
on line 2557
user variable debug
==> Variable scope report
Array (22)
$emConf
String (11) 	title 	Shop system
String (35) 	description 	Simple shop system with categories.
String (6) 	category 	plugin
Integer 	shy 	0
String (3) 	dependencies 	cms
String (0) 	conflicts 	 
String (0) 	priority 	 
String (0) 	module 	 
String (6) 	state 	stable
Integer 	internal 	0
Integer 	uploadfolder 	0
String (0) 	createDirs 	 
String (0) 	modify_tables 	 
Integer 	clearCacheOnLoad 	1
String (0) 	lockType 	 
String (14) 	author 	Kasper Skårhøj
String (20) 	author_email 	kasperYYYY at typo3.com
String (21) 	author_company 	Curby Soft Multimedia
Integer 	private 	0
String (0) 	download_password 	 
String (5) 	version 	1.2.7
String (1903) 	_md5_values_when_last_written
a:32:{s:31:"class.tx_ttproducts_wizicon.php";s:4:"7b77";s:12:"ext_icon.gif";s:4:"eb61";s:15:"ext_icon__h.gif";s:4:"d98f";s:16:"ext_icon__ht.gif";s:4:"40c5";s:17:"ext_icon__htu.gif";s:4:"4628";s:16:"ext_icon__hu.gif";s:4:"3b58";s:15:"ext_icon__t.gif";s:4:"04a3";s:16:"ext_icon__tu.gif";s:4:"fcac";s:15:"ext_icon__u.gif";s:4:"ef5a";s:15:"ext_icon__x.gif";s:4:"3998";s:14:"ext_tables.php";s:4:"94c3";s:14:"ext_tables.sql";s:4:"9812";s:28:"ext_typoscript_constants.txt";s:4:"e974";s:24:"ext_typoscript_setup.txt";s:4:"0715";s:13:"locallang.php";s:4:"4486";s:24:"locallang_csh_ttprod.php";s:4:"51ee";s:25:"locallang_csh_ttprodc.php";s:4:"9dea";s:17:"locallang_tca.php";s:4:"1e24";s:15:"productlist.gif";s:4:"a6c1";s:7:"tca.php";s:4:"bd41";s:14:"doc/manual.sxw";s:4:"f0d8";s:26:"pi/class.tx_ttproducts.php";s:4:"ac0f";s:19:"pi/payment_DIBS.php";s:4:"bb33";s:29:"pi/payment_DIBS_template.tmpl";s:4:"0eb3";s:32:"pi/payment_DIBS_template_uk.tmpl";s:4:"96f9";s:31:"pi/products_comp_calcScript.inc";s:4:"046b";s:21:"pi/products_help.tmpl";s:4:"7586";s:21:"pi/products_help1.gif";s:4:"46d1";s:20:"pi/products_mail.inc";s:4:"94f2";s:25:"pi/products_template.tmpl";s:4:"47dd";s:28:"pi/products_template_de.tmpl";s:4:"1c6a";s:34:"pi/products_template_htmlmail.tmpl";s:4:"aa8a";}



(277)  prev <javascript: errorJump(277, -1);> | next <javascript:
errorJump(277, 1);>
[2006-03-22 13:23:04]
[debug] in
/var/www/vhosts/fholzinger.com/httpdocs/TYPO3core/typo3/mod/tools/em/class.em_index.php
on line 2585
user variable debug
==> Variable scope report
Array (21)
$emConf
String (11) 	title 	Shop system
String (35) 	description 	Simple shop system with categories.
String (6) 	category 	plugin
Integer 	shy 	0
String (3) 	dependencies 	cms
String (0) 	conflicts 	 
String (0) 	priority 	 
String (0) 	module 	 
String (6) 	state 	stable
Integer 	internal 	0
Integer 	uploadfolder 	0
String (0) 	createDirs 	 
String (0) 	modify_tables 	 
Integer 	clearCacheOnLoad 	1
String (0) 	lockType 	 
String (14) 	author 	Kasper Skårhøj
String (20) 	author_email 	kasperYYYY at typo3.com
String (21) 	author_company 	Curby Soft Multimedia
String (5) 	version 	1.2.7
String (1903) 	_md5_values_when_last_written
a:32:{s:31:"class.tx_ttproducts_wizicon.php";s:4:"7b77";s:12:"ext_icon.gif";s:4:"eb61";s:15:"ext_icon__h.gif";s:4:"d98f";s:16:"ext_icon__ht.gif";s:4:"40c5";s:17:"ext_icon__htu.gif";s:4:"4628";s:16:"ext_icon__hu.gif";s:4:"3b58";s:15:"ext_icon__t.gif";s:4:"04a3";s:16:"ext_icon__tu.gif";s:4:"fcac";s:15:"ext_icon__u.gif";s:4:"ef5a";s:15:"ext_icon__x.gif";s:4:"3998";s:14:"ext_tables.php";s:4:"94c3";s:14:"ext_tables.sql";s:4:"9812";s:28:"ext_typoscript_constants.txt";s:4:"e974";s:24:"ext_typoscript_setup.txt";s:4:"0715";s:13:"locallang.php";s:4:"4486";s:24:"locallang_csh_ttprod.php";s:4:"51ee";s:25:"locallang_csh_ttprodc.php";s:4:"9dea";s:17:"locallang_tca.php";s:4:"1e24";s:15:"productlist.gif";s:4:"a6c1";s:7:"tca.php";s:4:"bd41";s:14:"doc/manual.sxw";s:4:"f0d8";s:26:"pi/class.tx_ttproducts.php";s:4:"ac0f";s:19:"pi/payment_DIBS.php";s:4:"bb33";s:29:"pi/payment_DIBS_template.tmpl";s:4:"0eb3";s:32:"pi/payment_DIBS_template_uk.tmpl";s:4:"96f9";s:31:"pi/products_comp_calcScript.inc";s:4:"046b";s:21:"pi/products_help.tmpl";s:4:"7586";s:21:"pi/products_help1.gif";s:4:"46d1";s:20:"pi/products_mail.inc";s:4:"94f2";s:25:"pi/products_template.tmpl";s:4:"47dd";s:28:"pi/products_template_de.tmpl";s:4:"1c6a";s:34:"pi/products_template_htmlmail.tmpl";s:4:"aa8a";}

Array (3) 	constraints 	
Array (1) 	depends 	
String (0) 	cms 	 

Array (0) 	conflicts 	

Array (0) 	suggests 	


(278)  prev <javascript: errorJump(278, -1);> | next <javascript:
errorJump(278, 1);>
[2006-03-22 13:23:04]
[debug] in
/var/www/vhosts/fholzinger.com/httpdocs/TYPO3core/typo3/mod/tools/em/class.em_index.php
on line 2532
user variable debug
==> Variable scope report
Array (21)
getInstExtList: $emConf
String (11) 	title 	Shop system
String (35) 	description 	Simple shop system with categories.
String (6) 	category 	plugin
Integer 	shy 	0
String (3) 	dependencies 	cms
String (0) 	conflicts 	 
String (0) 	priority 	 
String (0) 	module 	 
String (6) 	state 	stable
Integer 	internal 	0
Integer 	uploadfolder 	0
String (0) 	createDirs 	 
String (0) 	modify_tables 	 
Integer 	clearCacheOnLoad 	1
String (0) 	lockType 	 
String (14) 	author 	Kasper Skårhøj
String (20) 	author_email 	kasperYYYY at typo3.com
String (21) 	author_company 	Curby Soft Multimedia
String (5) 	version 	1.2.7
String (1903) 	_md5_values_when_last_written
a:32:{s:31:"class.tx_ttproducts_wizicon.php";s:4:"7b77";s:12:"ext_icon.gif";s:4:"eb61";s:15:"ext_icon__h.gif";s:4:"d98f";s:16:"ext_icon__ht.gif";s:4:"40c5";s:17:"ext_icon__htu.gif";s:4:"4628";s:16:"ext_icon__hu.gif";s:4:"3b58";s:15:"ext_icon__t.gif";s:4:"04a3";s:16:"ext_icon__tu.gif";s:4:"fcac";s:15:"ext_icon__u.gif";s:4:"ef5a";s:15:"ext_icon__x.gif";s:4:"3998";s:14:"ext_tables.php";s:4:"94c3";s:14:"ext_tables.sql";s:4:"9812";s:28:"ext_typoscript_constants.txt";s:4:"e974";s:24:"ext_typoscript_setup.txt";s:4:"0715";s:13:"locallang.php";s:4:"4486";s:24:"locallang_csh_ttprod.php";s:4:"51ee";s:25:"locallang_csh_ttprodc.php";s:4:"9dea";s:17:"locallang_tca.php";s:4:"1e24";s:15:"productlist.gif";s:4:"a6c1";s:7:"tca.php";s:4:"bd41";s:14:"doc/manual.sxw";s:4:"f0d8";s:26:"pi/class.tx_ttproducts.php";s:4:"ac0f";s:19:"pi/payment_DIBS.php";s:4:"bb33";s:29:"pi/payment_DIBS_template.tmpl";s:4:"0eb3";s:32:"pi/payment_DIBS_template_uk.tmpl";s:4:"96f9";s:31:"pi/products_comp_calcScript.inc";s:4:"046b";s:21:"pi/products_help.tmpl";s:4:"7586";s:21:"pi/products_help1.gif";s:4:"46d1";s:20:"pi/products_mail.inc";s:4:"94f2";s:25:"pi/products_template.tmpl";s:4:"47dd";s:28:"pi/products_template_de.tmpl";s:4:"1c6a";s:34:"pi/products_template_htmlmail.tmpl";s:4:"aa8a";}

Array (3) 	constraints 	
Array (1) 	depends 	
String (0) 	cms 	 

Array (0) 	conflicts 	

Array (0) 	suggests 	



However now the constraints are wrong! The come from tt_products 1.2.7
and not the one I want to install.

[debug] in
/var/www/vhosts/fholzinger.com/httpdocs/TYPO3core/typo3/mod/tools/em/class.em_index.php
on line 4583
user variable debug
==> Variable scope report
String (80) 	$path
/var/www/vhosts/fholzinger.com/httpdocs/typo3conf/ext/tt_products/ext_emconf.php



This is because the info has been taken from the local version.


    /**
     * Returns the $EM_CONF array from an extensions ext_emconf.php file
     *
     * @param    string        Absolute path to EMCONF file.
     * @param    string        Extension key.
     * @return    array        EMconf array values.
     */
    function includeEMCONF($path,$_EXTKEY)    {
        @include($path);
        debug ($path, '$path', __LINE__, __FILE__);
        if(is_array($EM_CONF[$_EXTKEY])) {
            return $this->fixEMCONF($EM_CONF[$_EXTKEY]);
        }
        return false;
    }



- Franz






-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-typo11-1.png
Type: image/png
Size: 53262 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060322/67d0c505/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-typo11-2.png
Type: image/png
Size: 47360 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060322/67d0c505/attachment-0001.png 


More information about the TYPO3-team-core mailing list