Issues with BulkImportFile -> BulkImport -> Log dependencies

I was trying to get bulkimportfile to install in order to finish up a part of my site, but it looks like i solved my problem by just increasing the PHPMYADMIN limits. However, I was still trying to install the Logs and import modules, but when activate logs I get the following error

2019-11-25T05:12:38+00:00 ERR (3): PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'log' already exists in /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:41
Stack trace:
#0 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(41): PDO->exec('CREATE TABLE lo...')
#1 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1092): Doctrine\DBAL\Driver\PDOConnection->exec('CREATE TABLE lo...')
#2 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec('CREATE TABLE lo...')
#3 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile('/home/MYUSERNAME/...')
#4 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#5 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#6 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#7 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 /home/MYUSERNAME/public_html/OMEKA.S_NAME/index.php(21): Zend\Mvc\Application->run()
#15 {main}

Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'log' already exists in /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:
#0 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1092): Doctrine\DBAL\Driver\PDOConnection->exec('CREATE TABLE lo...')
#1 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec('CREATE TABLE lo...')
#2 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile('/home/MYUSERNAME/...')
#3 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#4 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#5 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#6 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /home/MYUSERNAME/public_html/OMEKA.S_NAME/index.php(21): Zend\Mvc\Application->run()
#14 {main}

Next Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing 'CREATE TABLE log (
    id INT AUTO_INCREMENT NOT NULL,
    owner_id INT DEFAULT NULL,
    job_id INT DEFAULT NULL,
    reference VARCHAR(190) DEFAULT '' NOT NULL,
    severity INT DEFAULT 0 NOT NULL,
    message LONGTEXT NOT NULL,
    context LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)',
    created DATETIME NOT NULL,
    INDEX owner_idx (owner_id),
    INDEX job_idx (job_id),
    INDEX reference_idx (reference),
    INDEX severity_idx (severity),
    PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB':

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'log' already exists in /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:38
Stack trace:
#0 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
#1 /home/MYUSERNAME/public_html/OMEKA.S_NAME/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/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1094): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'CREATE TABLE lo...')
#3 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec('CREATE TABLE lo...')
#4 /home/MYUSERNAME/public_html/OMEKA.S_NAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile('/home/MYUSERNAME/...')
#5 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#6 /home/MYUSERNAME/public_html/OMEKA.S_NAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#7 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#8 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#11 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#12 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /home/MYUSERNAME/public_html/OMEKA.S_NAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#15 /home/MYUSERNAME/public_html/OMEKA.S_NAME/index.php(21): Zend\Mvc\Application->run()
#16 {main}
1 Like

If you have a broken installation of the module and you try to install it again, you got this error. Just delete the table (vie phpmyadmin / command line) “log” and try to install again.

Ok, thanks. It’s rare that a module checks if a previous install failed after the creation of the table, because it’s not common. But it should be considered for next improvements.

continuing errors

Logout
Search items
Advanced optionsSearch
Sites
RESOURCES
Items
Item sets
Vocabularies
Resource templates
ADMIN
Users
Modules
Jobs
Settings
Logs
MODULES
Bulk Import
Bulk import files
CSV Import
Easy Install
Export
Zotero Import
LOGS
1
of 11–1 of 1
Search
Sort

Go
Message Date Severity Reference Job

PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘bulk_import’ already exists in /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:41
Stack trace:
#0 /home/brimwat…
2019-11-26 04:39:06
error
1
of 11–1 of 1

Omeka S version 2.0.2 System information User manual Support forums
PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘bulk_import’ already exists in /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:41
Stack trace:
#0 /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(41): PDO->exec(‘CREATE TABLE bu…’)
#1 /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1092): Doctrine\DBAL\Driver\PDOConnection->exec(‘CREATE TABLE bu…’)
#2 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec(‘CREATE TABLE bu…’)
#3 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile(’/home/USERNAME/…’)
#4 /home/USERNAME/public_html/SITENAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#5 /home/USERNAME/public_html/SITENAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#6 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#7 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 /home/USERNAME/public_html/SITENAME/index.php(21): Zend\Mvc\Application->run()
#15 {main}

Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘bulk_import’ already exists in /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:
#0 /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1092): Doctrine\DBAL\Driver\PDOConnection->exec(‘CREATE TABLE bu…’)
#1 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec(‘CREATE TABLE bu…’)
#2 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile(’/home/USERNAME/…’)
#3 /home/USERNAME/public_html/SITENAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#4 /home/USERNAME/public_html/SITENAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#5 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#6 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /home/USERNAME/public_html/SITENAME/index.php(21): Zend\Mvc\Application->run()
#14 {main}

Next Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing ‘CREATE TABLE bulk_import (
id INT AUTO_INCREMENT NOT NULL,
importer_id INT DEFAULT NULL,
job_id INT DEFAULT NULL,
reader_params LONGTEXT DEFAULT NULL COMMENT ‘(DC2Type:json_array)’,
processor_params LONGTEXT DEFAULT NULL COMMENT ‘(DC2Type:json_array)’,
INDEX IDX_BD98E8747FCFE58E (importer_id),
UNIQUE INDEX UNIQ_BD98E874BE04EA9 (job_id),
PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB’:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘bulk_import’ already exists in /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:38
Stack trace:
#0 /home/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException(‘An exception oc…’, Object(Doctrine\DBAL\Driver\PDOException))
#1 /home/USERNAME/public_html/SITENAME/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/USERNAME/public_html/SITENAME/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1094): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘CREATE TABLE bu…’)
#3 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(218): Doctrine\DBAL\Connection->exec(‘CREATE TABLE bu…’)
#4 /home/USERNAME/public_html/SITENAME/modules/Generic/AbstractModule.php(65): Generic\AbstractModule->execSqlFromFile(’/home/USERNAME/…’)
#5 /home/USERNAME/public_html/SITENAME/application/src/Module/Manager.php(240): Generic\AbstractModule->install(Object(Zend\ServiceManager\ServiceManager))
#6 /home/USERNAME/public_html/SITENAME/application/src/Controller/Admin/ModuleController.php(116): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#7 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ModuleController->installAction()
#8 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#11 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#12 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /home/USERNAME/public_html/SITENAME/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#15 /home/USERNAME/public_html/SITENAME/index.php(21): Zend\Mvc\Application->run()
#16 {main}

this is after dropping, logs, bulk import and bulk import files in PHPMYADMIN, then reinstalling, then importing a PDF and trying to click into the pdf

ugh now I cant even uninstall it without errors. trying to wipe the file via ftp, deleting logs then reuploading

that seemed to work, now just running into trying to figure out where the pdftk command is for bulkfilesimport. I know its in BulkImport but just trying different paths and watching the fail

Hello,

Just wanted to confirm that I went to Reclaim hosting and they installed the PDFTK dependency in my /usr/bin/pdftk folder. However, when I point the BulkImportFiles to a directory and make install, I am still getting the following errors

In the Log Module:

Unable to process pdf: Command pdftk unavailable or failed: /usr/bin/pdftk A=‘/tmp/omekakY8LZH’ dump_data_utf8

The TMP File

[29-Nov-2019 21:31:57 UTC] PHP Notice: Undefined variable: error in /home/USER/public_html/SITENAME/modules/BulkImportFiles/view/bulk-import-files/index/check-folder.phtml on line 16
[29-Nov-2019 21:32:42 UTC] PHP Warning: fclose(): supplied resource is not a valid stream resource in /home/USER/public_html/SITENAME/modules/AnyCloud/src/File/Store/AnyCloud.php on line 42
[29-Nov-2019 21:32:57 UTC] PHP Warning: fclose(): supplied resource is not a valid stream resource in /home/USER/public_html/SITENAME/modules/AnyCloud/src/File/Store/AnyCloud.php on line 42
[29-Nov-2019 21:32:58 UTC] PHP Warning: fclose(): supplied resource is not a valid stream resource in /home/USER/public_html/SITENAME/modules/AnyCloud/src/File/Store/AnyCloud.php on line 42
[29-Nov-2019 21:32:59 UTC] PHP Warning: fclose(): supplied resource is not a valid stream resource in /home/USER/public_html/SITENAME/modules/AnyCloud/src/File/Store/AnyCloud.php on line 42
[29-Nov-2019 21:35:21 UTC] PHP Notice: Undefined variable: media in /home/USER/public_html/SITENAME/modules/PdfViewer/view/common/pdf-viewer.phtml on line 10

This would seem to be a conflict with AnyCloud. But the files are making their way into anycloud fine,they’re on my dropbox. Am I doing something wrong with the metadata?

I tried uploading by just creating a file and that seemed to work, but still getting issues when I try to add it to a page using Universal Viewer or just a simple block:

Omeka\Service\Exception\RuntimeException: Cannot manage settings when no target ID is set. in /home/brimwats/public_html/obscena/application/src/Settings/AbstractTargetSettings.php:97
Stack trace:
#0 /home/brimwats/public_html/obscena/application/src/Settings/AbstractSettings.php(149): Omeka\Settings\AbstractTargetSettings->setCache()
#1 /home/brimwats/public_html/obscena/application/src/Settings/AbstractSettings.php(95): Omeka\Settings\AbstractSettings->cache()
#2 /home/brimwats/public_html/obscena/application/src/Settings/AbstractTargetSettings.php(71): Omeka\Settings\AbstractSettings->get(‘metadata_browse…’, Array)
#3 /home/brimwats/public_html/obscena/modules/MetadataBrowse/Module.php(180): Omeka\Settings\AbstractTargetSettings->get(‘metadata_browse…’, Array)
#4 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): MetadataBrowse\Module->repValueHtml(Object(Zend\EventManager\Event))
#5 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(144): Zend\EventManager\EventManager->triggerListeners(Object(Zend\EventManager\Event))
#6 /home/brimwats/public_html/obscena/application/src/Api/Representation/ValueRepresentation.php(55): Zend\EventManager\EventManager->trigger(‘rep.value.html’, Object(Omeka\Api\Representation\ValueRepresentation), Object(ArrayObject))
#7 /home/brimwats/public_html/obscena/modules/IiifServer/src/View/Helper/IiifManifest.php(555): Omeka\Api\Representation\ValueRepresentation->asHtml()
#8 [internal function]: IiifServer\View\Helper\IiifManifest->IiifServer\View\Helper{closure}(Object(Omeka\Api\Representation\ValueRepresentation))
#9 /home/brimwats/public_html/obscena/modules/IiifServer/src/View/Helper/IiifManifest.php(556): array_map(Object(Closure), Array)
#10 /home/brimwats/public_html/obscena/modules/IiifServer/src/View/Helper/IiifManifest.php(507): IiifServer\View\Helper\IiifManifest->valuesAsHtml(Array)
#11 /home/brimwats/public_html/obscena/modules/IiifServer/src/View/Helper/IiifManifest.php(127): IiifServer\View\Helper\IiifManifest->iiifMetadata(Object(Omeka\Api\Representation\ItemRepresentation))
#12 /home/brimwats/public_html/obscena/modules/IiifServer/src/View/Helper/IiifManifest.php(70): IiifServer\View\Helper\IiifManifest->buildManifestItem(Object(Omeka\Api\Representation\ItemRepresentation))
#13 /home/brimwats/public_html/obscena/modules/IiifServer/src/Controller/PresentationController.php(154): IiifServer\View\Helper\IiifManifest->__invoke(Object(Omeka\Api\Representation\ItemRepresentation))
#14 /home/brimwats/public_html/obscena/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): IiifServer\Controller\PresentationController->itemAction()
#15 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#16 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#17 /home/brimwats/public_html/obscena/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#18 /home/brimwats/public_html/obscena/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#19 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#20 /home/brimwats/public_html/obscena/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#21 /home/brimwats/public_html/obscena/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#22 /home/brimwats/public_html/obscena/index.php(21): Zend\Mvc\Application->run()
#23 {main}

I have figured out that that these errors come from either

  1. the PDF Viewer plugin

  2. the metadata browse plugin

Here, the issue is about iiifserver and metadata browse, that seems to be not compatible. Iiif server create iiif manifests, so it uses existing values, but metadatabrowse modify them, so there is an error. I added an issue on github : https://github.com/Daniel-KM/Omeka-S-module-IiifServer/issues/17.

1 Like

Thanks! I’ve seen a few other related posts with this.

I just ran into this issue myself! And see it has very recent activity :slight_smile:

They say the develop branch has it fixed as of 2 days ago (~12/16), I am going to try to implement that now.

Works!

I’ll just mention here that it would be ideal if IiifServer could have the option to specify a URL ID other than the default. The documentation seems to reference it, but there is nowhere to set it - and IiifServer + CleanURL are not yet compatible.

By default, ids are the internal ids of Omeka S, but it is recommended to use your own single and permanent identifiers that don’t depend on an internal pointer in a database.

Obviously the whole “routes” issue is very tricky when it comes to core functionality and community-contributed modules, and then multiple community-contributed modules.

Yes, it’s possible via the routing system (in the module.config.php of the module). Just write the good route in the config, may some code will probably needed too.