Title: [Plugin: Magento WordPress Integration] Error after inserting shortcode into post
Last modified: August 20, 2016

---

# [Plugin: Magento WordPress Integration] Error after inserting shortcode into post

 *  [AllanDummer](https://wordpress.org/support/users/allandummer/)
 * (@allandummer)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/)
 * After inserting the shortcode and saving an article I get the following error–
   PHP Fatal error when I try to open the post again for editing : Class ‘Mage’ 
   not found in /usr/www/users/*****/wp-content/plugins/magento-wordpress-integration/
   inc/mwi-shortcodes/inc/shortcode-products.php on line 9. The post however does
   display correctly in the front end.
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/#post-3127013)
 * That’s odd, it should be loading anything Magento related in the back end. Can
   you get back into the edit screen after saving?
 *  Thread Starter [AllanDummer](https://wordpress.org/support/users/allandummer/)
 * (@allandummer)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/#post-3127016)
 * No I can’t get back into the edit screen for that post but it does load perfectly
   in the front end – [http://gosselin.co.za/2012/03/water-moving/](http://gosselin.co.za/2012/03/water-moving/).
   Had a thought. I think the server path to the magento site causes WordPress to
   ignore/change it and not load the class. That server path is /usr/www/*****/galeriephoto.
   co.za – Those dots may be the problem. I’ll get the server guys to change it 
   and come back to you.
 *  Thread Starter [AllanDummer](https://wordpress.org/support/users/allandummer/)
 * (@allandummer)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/#post-3127037)
 * Nope, the server path is not the problem. Still getting the same PHP error when
   I try to edit the post after inserting the shortcode.
 *  [lennypeng](https://wordpress.org/support/users/lennypeng/)
 * (@lennypeng)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/#post-3127065)
 * I’m having the same issue after purchasing your extension. Please let me know
   how to solve this issue. Thanks
 * Fatal error: Class ‘Mage’ not found in /www/web/***/wp-content/plugins/magento-
   wordpress-integration/inc/mwi-shortcodes/inc/shortcode-products.php on line 9

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Magento WordPress Integration] Error after inserting shortcode
into post’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [lennypeng](https://wordpress.org/support/users/lennypeng/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-error-after-inserting-shortcode-into-post/#post-3127065)
 * Status: not resolved