Home › Forums › WoodMart support forum › WordPress database error for Unknown column › Reply To: WordPress database error for Unknown column
March 27, 2024 at 5:44 pm
#552815
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_action(
'init',
function() {
global $wpdb;
$wpdb->query( "ALTER TABLE $wpdb->woodmart_products_table ADD on_sale boolean NOT NULL DEFAULT 0" );
}
);
IMPORTANT: Remove the code once the issue is fixed.