Title: [Plugin: MarketPress &#8211; WordPress eCommerce] Plugin Fix &gt; Debug &amp; Delete Orders
Last modified: August 20, 2016

---

# [Plugin: MarketPress – WordPress eCommerce] Plugin Fix > Debug & Delete Orders

 *  [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/)
 * You guys really should check your plugin out with debug mode turned on, lots 
   of php warnings and notices.
 * Also, after doing a bit of research on how to delete test orders, it seems that
   officially, the only way is to go in and [manually remove orders from the database](http://premium.wpmudev.org/forums/topic/marketpress-remove-test-orders)
   using phpMyAdmin, etc.
 * However, 7 months ago, Aaron did mention that he’s [added this to my todo list for features](http://premium.wpmudev.org/forums/topic/how-to-fully-remove-sales-orderclosed-order-details-on-marketpress-manage-orders).
 * That being said, we went ahead and fixed many of the php issues (mostly verifying
   that variables exist before checking their values) and added the ability to delete
   orders. Not just from the wp_post table, but also all related wp_post_meta entries
   for the order. Even though Aaron worries that deleting orders may
 * > seem way too dangerous to include in the admin area
 *  we feel it’s kind of a basic feature and quite safe for adults who employ reason
   and cognitive thinking skills.
 * Hopefully [Aaron](http://profiles.wordpress.org/uglyrobot/) or someone from [WPMU](http://profiles.wordpress.org/WPMUDEV/)
   can chime in as to the best method for us to submit our improvements on the lite-
   version of your MarketPress plugin.
 * [http://wordpress.org/extend/plugins/wordpress-ecommerce/](http://wordpress.org/extend/plugins/wordpress-ecommerce/)

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

 *  Thread Starter [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015605)
 * Updated plugin with ability to delete orders is [available here](http://plugins.twinpictures.de/fixed-plugins/marketpress/).
 *  [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015628)
 * Baden, thanks for updates.
 * In 2.5.1 version there are issue with emptying a cart. It throws:
    `Warning: 
   Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wp-admin\includes\
   plugin.php on line 1286`
 * I saw it happens then I’m not logged in (shop visitor). When I’m logging in wp
   backend – where is no errors.
 * Just asking it is fix your update 2.5.2? If not, maybe you have any ideas where
   to start to fix this issue? I tried to clean cookies, but no luck.
 *  [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015629)
 * I will make fresh install 2.5.2 later and will try..
 *  [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * (@pranayachaudhary)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015631)
 * Hello Braden,
 * > Hopefully Aaron or someone from WPMU can chime in as to the best method for
   > us to submit our improvements on the lite-version of your MarketPress plugin.
 * Thanks for asking this 🙂
 * You can send your improvements to us via our [contact form](http://premium.wpmudev.org/contact/)
   and we would be glad to forward them to the lead developer Aaron.
 * You can also email us on contact at wpmudev dot org
 * Cheers, PC
 *  [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015633)
 * Hey,
 * It was my mistake for:
 * `Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wp-
   admin\includes\plugin.php on line 1286`
 * error.
 * In functions.php I used
 * `add_action( 'admin_init', 'delete_menu_items' );`
 * instead of
 * `add_action( 'admin_menu', 'delete_menu_items' );`
 * it is not related with marketpress 🙂
 *  Plugin Author [Aaron Edwards](https://wordpress.org/support/users/uglyrobot/)
 * (@uglyrobot)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015642)
 * Hi there, just to note we’re at version 2.8.2 in the premium version which already
   has fixes for all these.
 * We’ll be updating the lite version to 2.8.2 very soon.
 *  [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015645)
 * Hey, Aaron,
 * Great news. “very soon” has any particular date? 🙂
    Can we already see a changelog
   just to be prepared for upgrade.
 * Thanks
 *  Thread Starter [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015646)
 * Pfhhhh… hook’em aggies
 *  Plugin Author [WPMU DEV – Your All-in-One WordPress Platform](https://wordpress.org/support/users/wpmudev/)
 * (@wpmudev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015647)
 * [@waila7](https://wordpress.org/support/users/waila7/)
 * As soon as i get a date and changelist from Aaron I will post it here.
 * Cheers
 * Tom

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

The topic ‘[Plugin: MarketPress – WordPress eCommerce] Plugin Fix > Debug & Delete
Orders’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-ecommerce_f7d96b.svg)
 * [MarketPress - WordPress eCommerce](https://wordpress.org/plugins/wordpress-ecommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-ecommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-ecommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-ecommerce/reviews/)

## Tags

 * [delete orders](https://wordpress.org/support/topic-tag/delete-orders/)
 * [fixes](https://wordpress.org/support/topic-tag/fixes/)
 * [php bugs](https://wordpress.org/support/topic-tag/php-bugs/)

 * 9 replies
 * 5 participants
 * Last reply from: [WPMU DEV – Your All-in-One WordPress Platform](https://wordpress.org/support/users/wpmudev/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-marketpress-wordpress-ecommerce-plugin-fix-debug-delete-orders/#post-3015647)
 * Status: not resolved