Magento – M2E error when saving a product in the backend

We just got an error message, that occurs when you save a product in the Magento backend. Oddly, not all products, but only for a specific product.

As soon as one on “Save” clicks coming

Fatal error: Call to a member function getOptions() on boolean in /app/code/community/Ess/M2ePro/Model/Amazon/Listing/Product.php on line 308

(the line can obviously vary).

This has to do with a database problem and can be corrected as follows (backup database!).

e.g.. log in via phpMyAdmin into the database and run the following SQL command:

UPDATE `m2epro_amazon_listing_product` `malp`
   LEFT JOIN `m2epro_listing_product_variation` `mlpv` ON `mlpv`.`listing_product_id` = `malp`.`listing_product_id`
SET `malp`.`is_variation_product_matched` = 0
WHERE `malp`.`is_variation_product` = 1 AND
      `malp`.`is_variation_product_matched` = 1 AND
      `mlpv`.`id` IS NULL;

Then worked with us to save the products / the product again without problems.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *