[TYPO3-english] Problem with typogento and realurl

Riccardo De Contardi riccardo.decontardi at bhuman.it
Fri May 21 17:26:04 CEST 2010


Hello. If someone could help me....

I use T3 4.3.3, Realurl 1.8.1 and Typogento (fb_magento) 0.6.0

I added a "cart" page (UID=84) and on another page, just to try it, I  
added a simple text element with this link

<link  
84,0,&tx_fbmagento[shop][route]=checkout&tx_fbmagento[shop][controller]=cart&tx_fbmagento[shop][action]=add&tx_fbmagento[shop][product]=9788808132994>add  
&quot;Product 1&quot; to cart</link>

When I click on the link (url:  
http://cea.staging.bhuman.it/carrello/shop/checkout/cart/add///9788808132994/  
)

I get the following error:

Fatal error: Call to protected method tx_realurl::lookUp_uniqAliasToId()  
 from context 'tx_fbmagento_realurl' in  
/vol01/typo3-sites/mysite/typo3conf/ext/fb_magento/lib/class.tx_fbmagento_realurl.php   
on line 251

If I disable Realurl, everything goes fine.

Please note that I have multiple sites on my Typo3 installation

[world]
   +-Home page 1 (http://cea.staging.bhuman.it)
   |
   +-Home page 2 (http://cea2.staging.bhuman.it )
   |
etc

Each home page has "is root of website" checked and a different "domain  
record".
My realurl configuration (simplified) is:


$TYPO3_CONF_VARS['FE']['addRootLineFields'] .=  
',tx_realurl_pathsegment,alias,title';
$tx_realurl_config = array(	
	
	'init' => array(
		'enableCHashCache' => true,
		'appendMissingSlash' => 'ifNotFile',
		'adminJumpToBackend' => true,
		'enableUrlDecodeCache' => true,
		'enableUrlEncodeCache' => true,
		'emptyUrlReturnValue' => '/',
		'postVarSet_failureMode' => '',
		'reapplyAbsRefPrefix' => true
	),
	'redirects' => array(),
	'preVars' => array(
		
		array(
			'GETvar' => 'no_cache',
			'valueMap' => array(
				'nc' => 1,
			),
			'noMatch' => 'bypass'
		),

		// Language variables begins
		array(
			'GETvar' => 'L',
			'valueMap' => array(
				'' => '0',
				'en' => '1',
			),				
			'noMatch' => 'bypass',
		),
					
	),
	
	'pagePath' => array(
			'type' => 'user',
			'userFunc' =>  
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
			'spaceCharacter' => '-',
			'languageGetVar' => 'L',
			// include your rootpage id here
			//'rootpage_id' => 1,
			'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title',
			'expireDays' => 1
	),
	'fixedPostVars'    => array(),
	
	// Configuration for plugins begins
	'postVarSets' => array(

		'_DEFAULT' => array(
// fb_magento
'shoparticle' =>
         array (
           0 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][s]',
           ),
         ),
         'shop' =>
         array (
           0 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][route]',
           ),
           1 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][controller]',
           ),
           2 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][action]',
           ),
           3 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][id]',
             'userFunc' =>  
'EXT:fbmagento/lib/class.tx_fbmagento_realurl.php:&tx_fbmagento_realurl->idRewrite',
           ),
           4 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][category]',
             'userFunc' =>  
'EXT:fbmagento/lib/class.tx_fbmagento_realurl.php:&tx_fbmagento_realurl->categoryRewrite',
           ),
           5 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][product]',
           ),
         ),
         'shoppage' =>
         array (
           0 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][p]',
           ),
           1 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][order]',
           ),
           2 =>
           array (
             'GETvar' => 'tx_fbmagento[shop][dir]',
           ),
         ),
						
		  	//end fb_magento
		),
	),
	//Configuration for plugins ends

	// configure filenames for different pagetypes
		'fileName' => array(
      /* 'defaultToHTMLsuffixOnPrev' => 1,*/


			'index' => array(					
				'sitemap.xml' => array (
					'keyValues' => array (
						'type' => 776,
					),
				),
		
				'rss.xml' => array(
					'keyValues' => array(
						'type' => 100,
					),
				),
				
				'rss091.xml' => array(
					'keyValues' => array(
						'type' => 101,
					),
				),
					
				'rdf.xml' => array(
					'keyValues' => array(
						'type' => 102,
					),
				),
				
				'atom.xml' => array(
					'keyValues' => array(
						'type' => 103,
					),
				),

       		),						
	),
);

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     cea.staging.bhuman.it' => $tx_realurl_config,
     cea2.staging.bhuman.it' => $tx_realurl_config,
);

$TYPO3_CONF_VARS['EXTCONF']['realurl'][cea.staging.bhuman.it']['pagePath']['rootpage_id']  
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl'][cea2.zanichelli.staging.bhuman.it']['pagePath']['rootpage_id']  
= 50;

unset($tx_realurl_config);




Thanks everybody for your help!
-- 
--------------------------------------------
Riccardo De Contardi - Web Developer
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
TEL +39-02-20.23.271 - FAX +39-02-20.240.561
--------------------------------------------


More information about the TYPO3-english mailing list