View Issue Details

IDProjectCategoryView StatusLast Update
0000688OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:29
ReporterReignman Assigned To 
PriorityhighSeveritymajorReproducibilityunable to reproduce
Status resolvedResolutionfixed 
Product Version4.0.1.0 revision 15990 
Fixed in Version4.1.0 revision 17976 
Summary0000688: VARTIANTS: PHP Error on Copying Values from parent to variant
DescriptionSorry, but I can't reprocedure the error.
but If I call a Variant which doesn't have all Values filled it should take its parents values.
But sometimes I get a PHP Error:
Fatal error: __clone method called on non-object in /var/www/testdrive/oxid_hirmer_base/core/oxarticle.php on line 3327

of course I looked at oxarticle.php and the bug is obvious:
the function _assignParentFieldValue($sFieldName)
doesn't check if the parent article was loaded correct and if the field $name is a real ox_Field object.

Error Occured in a search view.
Additional InformationI used DumpVar to display the $oParent and the $this to show that the parent wasn't loaded properly.

$this->_getParentAricle()

oxArticle Object
(
    [_sCoreTbl:protected] => oxarticles
    [_sClassName:protected] => oxarticle
    [_blUseLazyLoading:protected] => 1
    [_sItemKey:protected] =>
    [_blCalcPrice:protected] => 1
    [_oPrice:protected] =>
    [_aPersistParam:protected] =>
    [_blNotBuyable:protected] =>
    [_blLoadVariants:protected] =>
    [_blNotBuyableParent:protected] =>
    [_blHasVariants:protected] =>
    [_iVarStock:protected] => 0
    [_oVariantList:protected] => Array
        (
        )

    [_blIsOnComparisonList:protected] =>
    [_oUser:protected] =>
    [_blLoadPrice:protected] =>
    [_blSkipAbPrice:protected] => 1
    [_fPricePerUnit:protected] =>
    [_blLoadParentData:protected] =>
    [_blSkipAssign:protected] =>
    [_blSkipDiscounts:protected] =>
    [_oAttributeList:protected] =>
    [_blDisableShopCheck:protected] => 1
    [_iMaxSimilarForCacheReset:protected] => 100
    [_blIsRangePrice:protected] =>
    [_aMediaUrls:protected] =>
    [_aDispSelList:protected] =>
    [_blIsSeoObject:protected] => 1
    [_oAmountPriceList:protected] =>
    [_iLinkType:protected] => 0
    [_sStdLink:protected] =>
    [_sDynImageDir:protected] =>
    [_sMoreDetailLink:protected] =>
    [_sToBasketLink:protected] =>
    [_iStockStatus:protected] =>
    [_oTPrice:protected] =>
    [_oAmountPriceInfo:protected] =>
    [_dAmountPrice:protected] =>
    [_sDetailLink:protected] =>
    [_iLanguage:protected] => 0
    [_blEmployMultilanguage:protected] => 1
    [_sOXID:protected] =>
    [_iShopId:protected] => 2
    [_blIsSimplyClonable:protected] => 1
    [_aErrors:protected] => Array
        (
        )

    [_sCoreTable:protected] => oxarticles
    [_sViewTable:protected] => oxv_oxarticles_2
    [_blForceCoreTableUsage:protected] =>
    [_aFieldNames:protected] => Array
        (
            [oxid] => 0
            [oxtitle] => 1
            [oxparentid] => 0
            [oxvarselect] => 1
            [oxvarcount] => 0
            [oxvarstock] => 0
            [oxicon] => 0
            [oxstock] => 0
            [oxstockflag] => 0
            [oxprice] => 0
            [oxvat] => 0
            [oxskipdiscounts] => 0
            [oxunitquantity] => 0
            [oxshopid] => 0
            [oxactive] => 0
            [oxartnum] => 0
            [oxfile] => 0
            [oxthumb] => 0
            [oxvendorid] => 0
            [oxtprice] => 0
            [oxinsert] => 0
            [oxtimestamp] => 0
        )

    [_blIsNewCache:protected] =>
    [_sCacheKey:protected] => search_i18n
    [_aSkipSaveFields:protected] => Array
        (
        )

    [_sExistKey:protected] => oxid
    [_blIsDerived:protected] =>
    [oxarticles__oxid] =>
    [oxarticles__oxtitle] =>
    [oxarticles__oxparentid] =>
    [oxarticles__oxvarselect] =>
    [oxarticles__oxvarcount] =>
    [oxarticles__oxvarstock] =>
    [oxarticles__oxicon] =>
    [oxarticles__oxstock] =>
    [oxarticles__oxstockflag] =>
    [oxarticles__oxprice] =>
    [oxarticles__oxvat] =>
    [oxarticles__oxskipdiscounts] =>
    [oxarticles__oxunitquantity] =>
    [oxarticles__oxshopid] =>
    [oxarticles__oxactive] =>
    [oxarticles__oxartnum] =>
    [oxarticles__oxfile] =>
    [oxarticles__oxthumb] =>
    [oxarticles__oxvendorid] =>
    [oxarticles__oxtprice] =>
    [oxarticles__oxinsert] => oxField Object
        (
            [rawValue] =>
        )

    [oxarticles__oxtimestamp] => oxField Object
        (
            [rawValue] =>
        )

)


$this
oxArticle Object
(
    [_sCoreTbl:protected] => oxarticles
    [_sClassName:protected] => oxarticle
    [_blUseLazyLoading:protected] => 1
    [_sItemKey:protected] =>
    [_blCalcPrice:protected] => 1
    [_oPrice:protected] =>
    [_aPersistParam:protected] =>
    [_blNotBuyable:protected] =>
    [_blLoadVariants:protected] => 1
    [_blNotBuyableParent:protected] =>
    [_blHasVariants:protected] =>
    [_iVarStock:protected] => 0
    [_oVariantList:protected] => Array
        (
        )

    [_blIsOnComparisonList:protected] =>
    [_oUser:protected] =>
    [_blLoadPrice:protected] => 1
    [_blSkipAbPrice:protected] =>
    [_fPricePerUnit:protected] =>
    [_blLoadParentData:protected] =>
    [_blSkipAssign:protected] =>
    [_blSkipDiscounts:protected] =>
    [_oAttributeList:protected] =>
    [_blDisableShopCheck:protected] => 1
    [_iMaxSimilarForCacheReset:protected] => 100
    [_blIsRangePrice:protected] =>
    [_aMediaUrls:protected] =>
    [_aDispSelList:protected] =>
    [_blIsSeoObject:protected] => 1
    [_oAmountPriceList:protected] =>
    [_iLinkType:protected] => 0
    [_sStdLink:protected] =>
    [_sDynImageDir:protected] =>
    [_sMoreDetailLink:protected] => http://staging-h1.netinsite.de/oxid_hirmer_base/index.php?cl=moredetails&cnid=bf9e58245a441bb09ce7a0851ccda2fa&anid=03003028479231809eec69be78adbe48
    [_sToBasketLink:protected] => http://staging-h1.netinsite.de/oxid_hirmer_base/index.php?cl=search&fnc=tobasket&cnid=bf9e58245a441bb09ce7a0851ccda2fa&aid=03003028479231809eec69be78adbe48&anid=03003028479231809eec69be78adbe48
    [_iStockStatus:protected] =>
    [_oTPrice:protected] =>
    [_oAmountPriceInfo:protected] =>
    [_dAmountPrice:protected] =>
    [_sDetailLink:protected] => http://staging-h1.netinsite.de/oxid_hirmer_base/TOMMY-HILFIGER-Piqu-Polo-oliv-XXL.html?shp=2
    [_iLanguage:protected] => 0
    [_blEmployMultilanguage:protected] => 1
    [_sOXID:protected] => 03003028479231809eec69be78adbe48
    [_iShopId:protected] => 1
    [_blIsSimplyClonable:protected] => 1
    [_aErrors:protected] => Array
        (
        )

    [_sCoreTable:protected] => oxarticles
    [_sViewTable:protected] => oxv_oxarticles_2
    [_blForceCoreTableUsage:protected] =>
    [_aFieldNames:protected] => Array
        (
            [oxid] => 0
            [oxtitle] => 1
            [oxparentid] => 0
            [oxvarselect] => 1
            [oxvarcount] => 0
            [oxvarstock] => 0
            [oxicon] => 0
            [oxstock] => 0
            [oxstockflag] => 0
            [oxprice] => 0
            [oxvat] => 0
            [oxskipdiscounts] => 0
            [oxunitquantity] => 0
            [oxshopid] => 0
            [oxactive] => 0
            [oxartnum] => 0
            [oxfile] => 0
            [oxthumb] => 0
            [oxvendorid] => 0
            [oxtprice] => 0
            [oxinsert] => 0
            [oxtimestamp] => 0
        )

    [_blIsNewCache:protected] =>
    [_sCacheKey:protected] => search_i18n
    [_aSkipSaveFields:protected] => Array
        (
        )

    [_sExistKey:protected] => oxid
    [_blIsDerived:protected] => 1
    [oxarticles__oxid] => oxField Object
        (
            [value] => 03003028479231809eec69be78adbe48
        )

    [oxarticles__oxtitle] => oxField Object
        (
            [value] => TOMMY HILFIGER Piqué-Polo
        )

    [oxarticles__oxparentid] => oxField Object
        (
            [value] => b3c2733c243f5253fc4f92a0ac6cf783
        )

    [oxarticles__oxvarselect] => oxField Object
        (
            [value] => oliv|XXL
        )

    [oxarticles__oxvarcount] => oxField Object
        (
            [value] => 1
        )

    [oxarticles__oxvarstock] => oxField Object
        (
            [value] => 0
        )

    [oxarticles__oxicon] => oxField Object
        (
            [rawValue] => 001_6.jpg
        )

    [oxarticles__oxstock] => oxField Object
        (
            [value] => 0
        )

    [oxarticles__oxstockflag] => oxField Object
        (
            [value] => 4
        )

    [oxarticles__oxprice] => oxField Object
        (
            [value] => 70
        )

    [oxarticles__oxvat] => oxField Object
        (
            [value] =>
        )

    [oxarticles__oxskipdiscounts] => oxField Object
        (
            [rawValue] => 0
        )

    [oxarticles__oxunitquantity] => oxField Object
        (
            [rawValue] => 0
        )

    [oxarticles__oxshopid] => oxField Object
        (
            [value] => 1
        )

    [oxarticles__oxactive] => oxField Object
        (
            [rawValue] => 1
        )

    [oxarticles__oxartnum] => oxField Object
        (
            [rawValue] => 15407300
        )

    [oxarticles__oxfile] => oxField Object
        (
            [rawValue] => pic_db/0015407300/
        )

    [oxarticles__oxthumb] => oxField Object
        (
            [value] => 001_4.jpg
        )

    [oxarticles__oxvendorid] => oxField Object
        (
            [rawValue] => d2e44d9b31fcce448.08890330
        )

    [oxarticles__oxtprice] => oxField Object
        (
            [rawValue] => 0
        )

    [oxarticles__oxinsert] => oxField Object
        (
            [rawValue] => 2007-08-01
        )

    [oxarticles__oxtimestamp] => oxField Object
        (
            [rawValue] => 2009-03-09 11:40:17
        )

    [oxarticles__oxnid] => oxField Object
        (
            [value] => 03003028479231809eec69be78adbe48
        )

)
TagsProducts
Theme
BrowserFireFox 2.x
PHP Version5.2.6
Database Version5.0.33

Activities

Reignman

2009-03-10 13:09

reporter   ~0000541

Sorry, I didn't want to report this as a BLOCKer...
it's just a light Problem.

dainius.bigelis

2009-03-10 17:05

reporter   ~0000546

Cannot reproduce this. But please check from the source code side if the problem exists.