An error has occurred: 0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()
After migrating any website from Joomla 3.x to Joomla 4.x, we encounter the aforementioned issue since Joomla 4.x no longer supports the query() method. Additionally, if a plugin is updated from a Joomla 3.x version to a Joomla 4.x version, this can also happen. In its place, we must use the execute() method. Examining the …