Title: [Plugin: Magento WordPress Integration] Code problem
Last modified: August 20, 2016

---

# [Plugin: Magento WordPress Integration] Code problem

 *  Resolved [smeagol82](https://wordpress.org/support/users/smeagol82/)
 * (@smeagol82)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-code-problem/)
 * Hello
 * I have magento 1.7 and wordpress 3.4.1. I’ve downloaded and installed the Magento
   WordPress Integration plugin, and configured correctly. I have my magento templates
   in a shop directory, while wordpress installation is on the root directory. I
   can access either Magento or WordPress correctly, but when I try to get blocks
   from magento in my wordpress template, I get the following error:
 * PHP Fatal error: Using $this when not in object context in /project/wp-content/
   plugins/magento-wordpress-integration/mwi.php on line 35
 * Anyone had this problem?
 * Thanks.
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [smeagol82](https://wordpress.org/support/users/smeagol82/)
 * (@smeagol82)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-code-problem/#post-2879127)
 * Hello
 * Finally solved. I tried a new installation and it worked fine. Seems the problem
   was in the multi store view.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Magento WordPress Integration] Code problem’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magento-wordpress-integration_1f262e.
   svg)
 * [Magento Wordpress Integration](https://wordpress.org/plugins/magento-wordpress-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magento-wordpress-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magento-wordpress-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magento-wordpress-integration/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [smeagol82](https://wordpress.org/support/users/smeagol82/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-code-problem/#post-2879127)
 * Status: resolved