cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error:Uncaught Error: call to undefined method

SOLVED

Fatal error:Uncaught Error: call to undefined method

Hi,

i am getting this error only for few customers (Fatal error:Uncaught Error: call to undefined method)

For Reference please find the attached image.

Error.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Fatal error:Uncaught Error: call to undefined method

Add simple condition in Magento\ConfigurableProduct\Helper\Product\Options\Loader::load(ProductInterface $product) after line no : 51

if (get_class($typeInstance) == 'Magento\Catalog\Model\Product\Type\Simple' || get_class($typeInstance) == 'Magento\Bundle\Model\Product\Type')
{
return null;
}


@sekhar_n wrote:

Hi,

i am getting this error only for few customers (Fatal error:Uncaught Error: call to undefined method)

For Reference please find the attached image.

Error.jpg


 

View solution in original post

1 REPLY 1

Re: Fatal error:Uncaught Error: call to undefined method

Add simple condition in Magento\ConfigurableProduct\Helper\Product\Options\Loader::load(ProductInterface $product) after line no : 51

if (get_class($typeInstance) == 'Magento\Catalog\Model\Product\Type\Simple' || get_class($typeInstance) == 'Magento\Bundle\Model\Product\Type')
{
return null;
}


@sekhar_n wrote:

Hi,

i am getting this error only for few customers (Fatal error:Uncaught Error: call to undefined method)

For Reference please find the attached image.

Error.jpg