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)));
}
- You must be logged in to reply to this topic.