Error in logs while using Joomla 5 - public function fixDB()

Hi! I have setup Joomla 5 and Gridbox and whenever I use Gridbox component interface and modify/save a Page, I get this error :[ERROR] Slave SQL: Error 'Can't DROP COLUMN `fields_data`; check that it exists' on query. Default database: 'joomladb'. Query: 'ALTER TABLE `abc_gridbox_pages` DROP COLUMN `fields_data`', Internal MariaDB error code: 1091Simple reason why I get this is because "fields_data" does not exist in the actual database.

To resolve,

1) Edit "administrator/components/com_gridbox/controllers/gridbox.php"
2) Add "exit;" at the beginning of the function code just after the first "{" like this :
public function fixDB()
{
exit;

$db = JFactory::getDbo();
try {
$query = "ALTER TABLE `#__gridbox_pages` DROP COLUMN `fields_data`";
$db->setQuery($query)
->execute();
$query = "ALTER TABLE `#__gridbox_app` DROP COLUMN `fields`";
$db->setQuery($query)
->execute();
} catch (Exception $e) {

}
exit;
}

After this fix, log is kept clean. Thank you

Replies are visible only to logged in members with an active subscription.