Facebook module Magento 1.9 does not load

-3

When accessing the Facebook module (version 2.6.2) for Magento 1.9 it did not load and the screen was blank. When accessing the error log (var / log / facebook_product_feed_exception.log) I have identified the following exception:

facebook ERROR1: Call to a member function getId () on null @ /home//public_html/app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php

    
asked by anonymous 19.12.2018 / 11:54

1 answer

1

To correct the problem, go to the indicated file (/app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php) and changed line 85:

de $ attributeId = $ attribute-> getProductAttribute () -> getId ();

For $ attributeId = $ attribute-> getId ();

Then the module started working perfectly.

    
06.01.2019 / 21:46