View Issue Details

IDProjectCategoryView StatusLast Update
0002134OXID eShop (all versions)4.07. Source code, Testpublic2012-12-10 13:45
Reportermarco_steinhaeuser Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.2 revision 29492 
Fixed in Version4.4.4 revision 30554 
Summary0002134: Cross-linking from one item details view to another runs into an infinite loop
Descriptioncross-linking from one item details view to another with [{oxgetseourl type="oxArticle" oxid="OXID_ITEM2"}] and back with [{oxgetseourl type="oxArticle" oxid="OXID_ITEM1"}] runs into an infinite loop
Steps To ReproduceOn item1's detail page link to another item2 with [{oxgetseourl type="oxArticle" oxid="OXID_ITEM2"}]
On item2's detail page link back to item1 with [{oxgetseourl type="oxArticle" oxid="OXID_ITEM1"}]

Independent of the memory size, an error message appears like
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 41 bytes) in D:\WebDev\htdocs\oxtest\core\oxbase.php on line 396
Additional Informationhttp://www.oxid-esales.com/forum/showthread.php?t=6902
Find an sql to reproduce and the environment information there.
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

rimvydas_paskevicius

2010-09-30 18:03

reporter   ~0003561

The problem was related with article description. On each seo url getter call article parses oxdescription field through smarty and if articles are cross-linked, we got infinite loop. The solution is to reset oxlongdesc field in smarty seo url getter (function.oxgetseourl.php) after creating article object.

$oObject = oxNew( $sType );
if ( strtolower($sType) == "oxarticle") {
  $oObject->oxarticles__oxlongdesc = null;
}

This prevents article object from parsing long description.