Okay, so I’m thinking that the search module was messy, but not the cause of an upgrade error. Because updating breaks the site, I decided to clone the site (so I don’t have to worry about restoring my backup); I updated the search module, cloned the site and tried upgrading, and got the same error. I also tried completely uninstalling and deleting the search module, with the same results.
I have a new error log – does anyone have any thoughts on how to fix this?
–
2021-02-08T20:32:46+00:00 ERR (3): PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘item_site’ already exists in /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:41
Stack trace:
#0 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(41): PDO->exec(‘CREATE TABLE it…’)
#1 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1094): Doctrine\DBAL\Driver\PDOConnection->exec(‘CREATE TABLE it…’)
#2 /home/ocomedu/acuresearch.ocom.edu/application/data/migrations/20200224022356_SiteItems.php(28): Doctrine\DBAL\Connection->exec(‘CREATE TABLE it…’)
#3 /home/ocomedu/acuresearch.ocom.edu/application/src/Db/Migration/Manager.php(80): Omeka\Db\Migrations\SiteItems->up(Object(Doctrine\DBAL\Connection))
#4 /home/ocomedu/acuresearch.ocom.edu/application/src/Controller/MigrateController.php(38): Omeka\Db\Migration\Manager->upgrade()
#5 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\MigrateController->indexAction()
#6 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /home/ocomedu/acuresearch.ocom.edu/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘item_site’ already exists in /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:
#0 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1094): Doctrine\DBAL\Driver\PDOConnection->exec(‘CREATE TABLE it…’)
#1 /home/ocomedu/acuresearch.ocom.edu/application/data/migrations/20200224022356_SiteItems.php(28): Doctrine\DBAL\Connection->exec(‘CREATE TABLE it…’)
#2 /home/ocomedu/acuresearch.ocom.edu/application/src/Db/Migration/Manager.php(80): Omeka\Db\Migrations\SiteItems->up(Object(Doctrine\DBAL\Connection))
#3 /home/ocomedu/acuresearch.ocom.edu/application/src/Controller/MigrateController.php(38): Omeka\Db\Migration\Manager->upgrade()
#4 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\MigrateController->indexAction()
#5 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#6 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#7 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#8 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#9 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#10 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#11 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#12 /home/ocomedu/acuresearch.ocom.edu/index.php(21): Laminas\Mvc\Application->run()
#13 {main}
Next Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing ‘CREATE TABLE item_site (item_id INT NOT NULL, site_id INT NOT NULL, INDEX IDX_A1734D1F126F525E (item_id), INDEX IDX_A1734D1FF6BD1646 (site_id), PRIMARY KEY(item_id, site_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;’:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘item_site’ already exists in /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:38
Stack trace:
#0 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException(‘An exception oc…’, Object(Doctrine\DBAL\Driver\PDOException))
#1 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(145): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘An exception oc…’)
#2 /home/ocomedu/acuresearch.ocom.edu/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1096): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘CREATE TABLE it…’)
#3 /home/ocomedu/acuresearch.ocom.edu/application/data/migrations/20200224022356_SiteItems.php(28): Doctrine\DBAL\Connection->exec(‘CREATE TABLE it…’)
#4 /home/ocomedu/acuresearch.ocom.edu/application/src/Db/Migration/Manager.php(80): Omeka\Db\Migrations\SiteItems->up(Object(Doctrine\DBAL\Connection))
#5 /home/ocomedu/acuresearch.ocom.edu/application/src/Controller/MigrateController.php(38): Omeka\Db\Migration\Manager->upgrade()
#6 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\MigrateController->indexAction()
#7 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#8 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#9 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#10 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#11 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#12 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#13 /home/ocomedu/acuresearch.ocom.edu/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#14 /home/ocomedu/acuresearch.ocom.edu/index.php(21): Laminas\Mvc\Application->run()