Title: Error when using Breakdance
Last modified: December 13, 2024

---

# Error when using Breakdance

 *  Resolved [rzareianfard](https://wordpress.org/support/users/rzareianfard/)
 * (@rzareianfard)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/)
 * The plugin works fine but I get an error in Breakdance page builder when the 
   plugin is active
   Breakdance\Lib\Vendor\Whoops\Exception\ErrorException: **Undefined
   property: WP_Error::$description** in _/home/juniorgems/public\_html/wp-content/
   plugins/markup-by-attribute-for-woocommerce/src/utility/general.php_ on **81**
 * // Add markup description to attribute terms
   $results = $wpdb->get_results(“SELECT*
   FROM {$wpdb->prefix}termmeta WHERE meta_key LIKE ‘mt2mba_markup'”);foreach ($
   results as $row) {$term = get_term((integer) $row->term_id);$description = trim(
   $this->remove_bracketed_string(ATTRB_MARKUP_DESC_BEG, ATTRB_MARKUP_END, trim(
   $term->description)));$description .= PHP_EOL . ATTRB_MARKUP_DESC_BEG . $row-
   >meta_value . ATTRB_MARKUP_END;wp_update_term($row->term_id, $term->taxonomy,
   array(‘description’ => trim($description)));}

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

 *  Plugin Author [Mark Tomlinson](https://wordpress.org/support/users/marktomlinson/)
 * (@marktomlinson)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/#post-18198754)
 * Interesting. You are going through a section of code that you probably shouldn’t
   be going through. My hunch is that an `if()` statement several steps ahead incorrectly
   assumes a database update is necessary. That’s easy enough to test and correct.
 * You say, “The plugin is working fine”, so, can I assume this is not a fatal error?
   I’m working on a new release right now that I hope to get out by the end of next
   week, and I’d like to put this into it.
 *  Thread Starter [rzareianfard](https://wordpress.org/support/users/rzareianfard/)
 * (@rzareianfard)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/#post-18198795)
 * Hi Mark,
 * Thanks for your reply,
 * This plugin works but unfortunately it is breaking Breakdance editor completely
   due to this error and not letting me to even open the page builder, so it’s a
   blocker atm.
 * Cheers,
 *  Plugin Author [Mark Tomlinson](https://wordpress.org/support/users/marktomlinson/)
 * (@marktomlinson)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/#post-18199074)
 * Oh. Ouch. The code in question is for upgrades from version 1.0, a long time 
   ago, and I only left it in out of an abundance of caution. Breakdance shouldn’t
   be wandering there, but I can’t fix them.
 * What I can do, however, is give you a workaround until I get the next release
   out. We’ll just delete the offending code. Navigate on your WordPress dashboard
   to **Plugins ⇾ Plugin File Editor**. From there, select _Markup by Attribute 
   for WooCommerce_. Then, you can navigate to _markup-by-attribute-for-woocommerce/
   src/utility/general.php_. Once you see general.php in the editor, delete lines
   65 through 114.
 *     ```wp-block-code
       65		// --------------------------------------------------------------66		// Update database from version 1.x. Leave 1.x data for fallback.67		// --------------------------------------------------------------68		if ($current_db_version < 2.0) {69			// Add prefix to attribute markup meta data key..		DELETE ALL OF THIS, FROM LINES 65 TO 114.110			// Clean database for conversion from version 2.3.111			$wpdb->delete("{$wpdb->prefix}options", array('option_name'=>'mt2mba_decimal_points'));112			$wpdb->delete("{$wpdb->prefix}options", array('option_name'=>'mt2mba_symbol_before'));113			$wpdb->delete("{$wpdb->prefix}options", array('option_name'=>'mt2mba_symbol_after'));114		}
       ```
   
 * Then, [Update File].
 * That should take care of it for now. I’ll put some more robust version checking
   in the release I’m working on, and that might fix it in the future. Might… there
   is no reason Breakdance should be in that code, so I’m only guessing it has to
   do with the `if()` on line 68.
 *  Plugin Author [Mark Tomlinson](https://wordpress.org/support/users/marktomlinson/)
 * (@marktomlinson)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/#post-18233275)
 * I’ve restructured that section of code in release 4.3 and greater. Breakdance
   shouldn’t have a problem with it now.
   Or, at least, it shouldn’t. The working
   theory is that the first installation never got to the point of recording the
   database version, so Breakdance continued to loop through, breaking every time.
   I’m now using the PHP command `version_compare()`, which should solve the problem.
 * Please let me know if it works.
    -  This reply was modified 1 year, 4 months ago by [Mark Tomlinson](https://wordpress.org/support/users/marktomlinson/).

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

The topic ‘Error when using Breakdance’ is closed to new replies.

 * ![](https://ps.w.org/markup-by-attribute-for-woocommerce/assets/icon-256x256.
   png?rev=2952499)
 * [Markup by Attribute for WooCommerce](https://wordpress.org/plugins/markup-by-attribute-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/markup-by-attribute-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/markup-by-attribute-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/markup-by-attribute-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/markup-by-attribute-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/markup-by-attribute-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mark Tomlinson](https://wordpress.org/support/users/marktomlinson/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-using-breakdance/#post-18233275)
 * Status: resolved