[TYPO3-core] RFC: Fix EM2 issues

Franz Holzinger franz at fholzinger.com
Wed Mar 22 13:23:37 CET 2006


Hello Karsten,

>Hi.
>
>On Tuesday 21 March 2006 22:51, Franz Holzinger wrote:
>  
>
>>The depends array does not contain all elements from the contraints array.
>>
>>    'constraints' => array(
>>        'depends' => array(
>>            'cms' => '',
>>            'table' => '0.0.9-',
>>            'fh_library' => '0.0.8-',
>>            'php' => '4.2.3-',
>>            'typo3' => '3.8.0-4.0.20',
>>        ),
>>
>>
>>The following debug is shown in the Online Repository list of EM.
>>
>>
>>    function fixEMCONF($emConf) {
>>        debug ($emConf, '$emConf', __LINE__, __FILE__);
>>    
>>
>
>At this place the $emConf is not fixed, obviously, as it has just entered 
>fixEMCONF(). Hard to guess, eh?
>
>What does $emConf contain when it *leaves* that method? *That* would be 
>interesting.
>
>
>  
>

I have put it now on 3 positions in fixEMCONF and it has always the same
values when the view shows the Online Repository lising of all
extensions fitting the search string.
After having clicked on the text 'Shop System' to install it, then no
debug info is shown.

I have done my test to install it in locally into the typo3conf folder
where tt_products 1.2.7 is.

There is another copy of it on the global folder:
/var/www/html/TYPO3core/typo3/ext/tt_products



    /**
     * Fixes an old style ext_emconf.php array by adding constraints if
needed and removing deprecated keys
     *
     * @param unknown_type $emConf
     * @return unknown
     */
    function fixEMCONF($emConf) {
        debug ($emConf, '$emConf', __LINE__, __FILE__);
        if(!isset($emConf['constraints'])) {
            $emConf['constraints']['depends'] =
$this->stringToDep($emConf['dependencies']);
            if(strlen($emConf['PHP_version'])) {
                $versionRange =
$this->splitVersionRange($emConf['PHP_version']);
                if(version_compare($versionRange[0],'3.0.0','<'))
$versionRange[0] = '3.0.0';
                if(version_compare($versionRange[1],'3.0.0','<'))
$versionRange[1] = '';
                $emConf['constraints']['depends']['php'] =
implode('-',$versionRange);
            }
            if(strlen($emConf['TYPO3_version'])) {
                $versionRange =
$this->splitVersionRange($emConf['TYPO3_version']);
                if(version_compare($versionRange[0],'3.5.0','<'))
$versionRange[0] = '3.5.0';
                if(version_compare($versionRange[1],'3.5.0','<'))
$versionRange[1] = '';
                $emConf['constraints']['depends']['typo3'] =
implode('-',$versionRange);
            }
            $emConf['constraints']['conflicts'] =
$this->stringToDep($emConf['conflicts']);
            $emConf['constraints']['suggests'] = array();
        } elseif (isset($emConf['constraints']) &&
isset($emConf['dependencies'])) {
            $emConf['suggests'] = isset($emConf['suggests']) ?
$emConf['suggests'] : array();
            $emConf['dependencies'] =
$this->depToString($emConf['constraints']);
            $emConf['conflicts'] =
$this->depToString($emConf['constraints'], 'conflicts');
            debug ($emConf, '$emConf', __LINE__, __FILE__);
        }
        unset($emConf['private']);
        unset($emConf['download_password']);
        unset($emConf['TYPO3_version']);
        unset($emConf['PHP_version']);

        debug ($emConf, '$emConf', __LINE__, __FILE__);
        return $emConf;
    }



Some other debug is wrong:[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 (76) 	$path
/var/www/vhosts/fholzinger.com/httpdocs/typo3/ext/tt_products/ext_emconf.php



It should have take the local tt_products version and not the global one.


So I have now deleted the global tt_products from filesystem.

The debug looks much better now:


[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 (24)
$emConf
String (11) 	title 	Shop System
String (291) 	description 	Shop system in multiple languages with photo
gallery, articles, order tracking, bill creation, creditpoint and
voucher system, gift certificates, confirmation emails and search
facility. Install the 'Table Library' table v0.0.9 and the fh_library
v0.0.8 extensions before you make an update!
String (6) 	category 	plugin
Integer 	shy 	0
String (20) 	dependencies 	cms,table,fh_library
String (90) 	conflicts
zk_products,mkl_products,ast_rteproducts,onet_ttproducts_rte,shopsort,c3bi_cookie_at_login

String (0) 	priority 	 
String (0) 	loadOrder 	 
String (0) 	module 	 
String (6) 	state 	stable
Integer 	internal 	0
Integer 	uploadfolder 	0
String (75) 	createDirs
uploads/tx_ttproducts/datasheet,fileadmin/data/bill,fileadmin/data/delivery
String (0) 	modify_tables 	 
Integer 	clearCacheOnLoad 	1
String (0) 	lockType 	 
String (15) 	author 	Franz Holzinger
String (20) 	author_email 	franz at fholzinger.com
String (10) 	author_company 	Freelancer
String (0) 	CGLcompliance 	 
String (0) 	CGLcompliance_note 	 
String (5) 	version 	2.4.6
String (6279) 	_md5_values_when_last_written
a:89:{s:9:"ChangeLog";s:4:"e6bf";s:31:"class.tx_ttproducts_wizicon.php";s:4:"51ef";s:12:"ext_icon.gif";s:4:"eb61";s:17:"ext_localconf.php";s:4:"4ec1";s:14:"ext_tables.php";s:4:"695b";s:14:"ext_tables.sql";s:4:"6fbe";s:28:"ext_typoscript_constants.txt";s:4:"081a";s:24:"ext_typoscript_setup.txt";s:4:"8f6d";s:19:"flexform_ds_pi1.xml";s:4:"0e64";s:13:"locallang.xml";s:4:"5fb2";s:24:"locallang_csh_ttprod.php";s:4:"2c56";s:25:"locallang_csh_ttproda.php";s:4:"0b59";s:25:"locallang_csh_ttprodc.php";s:4:"b042";s:25:"locallang_csh_ttprode.php";s:4:"392b";s:25:"locallang_csh_ttprodo.php";s:4:"6930";s:16:"locallang_db.xml";s:4:"f2d7";s:7:"tca.php";s:4:"58c4";s:14:"doc/manual.sxw";s:4:"5b1d";s:39:"lib/class.tx_ttproducts_article_div.php";s:4:"76dd";s:37:"lib/class.tx_ttproducts_attribute.php";s:4:"dfa2";s:34:"lib/class.tx_ttproducts_basket.php";s:4:"38e8";s:39:"lib/class.tx_ttproducts_basket_view.php";s:4:"5ca6";s:40:"lib/class.tx_ttproducts_billdelivery.php";s:4:"975a";s:36:"lib/class.tx_ttproducts_category.php";s:4:"ba00";s:35:"lib/class.tx_ttproducts_content.php";s:4:"3f2b";s:44:"lib/class.tx_ttproducts_creditpoints_div.php";s:4:"0b55";s:31:"lib/class.tx_ttproducts_csv.php";s:4:"f4b7";s:41:"lib/class.tx_ttproducts_currency_view.php";s:4:"a1bf";s:31:"lib/class.tx_ttproducts_div.php";s:4:"097f";s:33:"lib/class.tx_ttproducts_email.php";s:4:"eb65";s:37:"lib/class.tx_ttproducts_email_div.php";s:4:"5d21";s:40:"lib/class.tx_ttproducts_finalize_div.php";s:4:"46cd";s:37:"lib/class.tx_ttproducts_gifts_div.php";s:4:"0cd1";s:37:"lib/class.tx_ttproducts_list_view.php";s:4:"d928";s:34:"lib/class.tx_ttproducts_marker.php";s:4:"4a07";s:37:"lib/class.tx_ttproducts_memo_view.php";s:4:"202d";s:33:"lib/class.tx_ttproducts_order.php";s:4:"1e70";s:38:"lib/class.tx_ttproducts_order_view.php";s:4:"b81e";s:32:"lib/class.tx_ttproducts_page.php";s:4:"f8d5";s:43:"lib/class.tx_ttproducts_paymentshipping.php";s:4:"4720";s:33:"lib/class.tx_ttproducts_price.php";s:4:"327f";s:37:"lib/class.tx_ttproducts_pricecalc.php";s:4:"a2a1";s:35:"lib/class.tx_ttproducts_product.php";s:4:"ec2e";s:39:"lib/class.tx_ttproducts_single_view.php";s:4:"5a37";s:36:"lib/class.tx_ttproducts_tracking.php";s:4:"4aae";s:36:"pi1/class.tx_ttproducts_htmlmail.php";s:4:"5b6b";s:31:"pi1/class.tx_ttproducts_pi1.php";s:4:"d1d1";s:13:"pi1/clear.gif";s:4:"cc11";s:17:"pi1/locallang.xml";s:4:"5756";s:20:"pi1/payment_DIBS.php";s:4:"7929";s:32:"pi1/products_comp_calcScript.inc";s:4:"3f75";s:24:"pi1/static/editorcfg.txt";s:4:"4dd7";s:34:"pi1/static/old_style/constants.txt";s:4:"a932";s:30:"pi1/static/old_style/setup.txt";s:4:"686f";s:23:"res/icons/be/ce_wiz.gif";s:4:"a6c1";s:28:"res/icons/be/productlist.gif";s:4:"a6c1";s:28:"res/icons/fe/minibasket1.gif";s:4:"a960";s:35:"res/icons/fe/ttproducts_help_en.png";s:4:"5326";s:39:"res/icons/table/sys_products_orders.gif";s:4:"9d4e";s:31:"res/icons/table/tt_products.gif";s:4:"1ebd";s:40:"res/icons/table/tt_products_articles.gif";s:4:"1ebd";s:35:"res/icons/table/tt_products_cat.gif";s:4:"f852";s:44:"res/icons/table/tt_products_cat_language.gif";s:4:"d4fe";s:38:"res/icons/table/tt_products_emails.gif";s:4:"1ebd";s:40:"res/icons/table/tt_products_language.gif";s:4:"9d4e";s:16:"template/agb.txt";s:4:"5a56";s:38:"template/example_template_bill_de.tmpl";s:4:"1c38";s:35:"template/payment_DIBS_template.tmpl";s:4:"4684";s:38:"template/payment_DIBS_template_uk.tmpl";s:4:"96f9";s:27:"template/products_help.tmpl";s:4:"d2d6";s:31:"template/products_template.tmpl";s:4:"ad42";s:34:"template/products_template_dk.tmpl";s:4:"7665";s:34:"template/products_template_fr.tmpl";s:4:"a233";s:40:"template/products_template_htmlmail.tmpl";s:4:"aa8a";s:34:"template/products_template_se.tmpl";s:4:"7161";s:39:"template/meerwijn/detail_cadeaubon.tmpl";s:4:"c263";s:40:"template/meerwijn/detail_geschenken.tmpl";s:4:"b695";s:40:"template/meerwijn/detail_kurkenshop.tmpl";s:4:"0fad";s:38:"template/meerwijn/detail_shopabox.tmpl";s:4:"21a3";s:36:"template/meerwijn/detail_wijnen.tmpl";s:4:"63be";s:37:"template/meerwijn/product_detail.tmpl";s:4:"9e4a";s:45:"template/meerwijn/product_proefpakketten.tmpl";s:4:"9afd";s:32:"template/meerwijn/producten.tmpl";s:4:"95a0";s:33:"template/meerwijn/shop-a-box.tmpl";s:4:"5606";s:40:"template/meerwijn/totaal_geschenken.tmpl";s:4:"15ca";s:40:"template/meerwijn/totaal_kurkenshop.tmpl";s:4:"1306";s:38:"template/meerwijn/totaal_shopabox.tmpl";s:4:"f87b";s:36:"template/meerwijn/totaal_wijnen.tmpl";s:4:"5ee1";s:34:"template/meerwijn/winkelwagen.tmpl";s:4:"1ac5";}

Array (3) 	constraints 	
Array (5) 	depends 	
String (0) 	cms 	 
String (0) 	table 	 
String (0) 	fh_library 	 
String (6) 	php 	4.2.3-
String (12) 	typo3 	3.7.1-4.0.20

Array (6) 	conflicts 	
String (0) 	zk_products 	 
String (0) 	mkl_products 	 
String (0) 	ast_rteproducts 	 
String (0) 	onet_ttproducts_rte 	 
String (0) 	shopsort 	 
String (0) 	c3bi_cookie_at_login 	 

Array (0) 	suggests 	



Now this contains the fh_library and table as intended.


Then I click to import tt_products 2.4.9 and on the next screen I choose
locally to typo3conf.

Press import/update
Screenshot 10-2.png

Make updates.

Again:TYPO3 Fatal Error: Extension key "table" was NOT loaded!
(t3lib_extMgm::extPath)


- Franz


















-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-typo10-1.png
Type: image/png
Size: 47606 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060322/49adf8f6/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-typo10-2.png
Type: image/png
Size: 45776 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060322/49adf8f6/attachment-0001.png 


More information about the TYPO3-team-core mailing list