Open StevensBrian opened 6 months ago
I am sorry to hear that the plugin is not running properly. To start, what is the PHP version on your instance?
From: Dickson Law @.> Sent: Monday, March 4, 2024 3:36 PM To: utlib/IiifItems @.> Cc: Brian Stevens @.>; Author @.> Subject: Re: [utlib/IiifItems] Omeka 3.1.2 incompatible? (Issue #28)
Please be cautious This email was sent from outside of your organization
I am sorry to hear that the plugin is not running properly. To start, what is the PHP version on your instance?
— Reply to this email directly, view it on GitHubhttps://github.com/utlib/IiifItems/issues/28#issuecomment-1977409706, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAC46DIFRNRKKCSEOJF3GULYWTLLBAVCNFSM6AAAAABEB35PUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGQYDSNZQGY. You are receiving this because you authored the thread.Message ID: @.***>
I am not able to see the information in the email or on GitHub. Please try posting it in plain text form.
Omeka | 3.1.2 PHP | 8.0.29 (apache2handler) OS | Linux 5.15.0-88-generic x86_64 MySQL Server | 8.0.36 MySQL Client | mysqlnd 8.0.29 Apache | Apache/2.4.52 (Ubuntu)
Regular | apache2handler, calendar, Core, ctype, date, dom, exif, FFI, fileinfo, filter, ftp, gettext, hash, iconv, json, libxml, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zlib Zend | Zend OPcache
ArchiveRepertory | 2.15.8 AtomOutput | 1.0.1 AvantCommon | 2.1.0 (inactive) AvantSearch | 2.1.0 (inactive) BulkMetadataEditor | 2.9 CSSEditor | 1.2 CatalogSearch | 1.0.3 Coins | 2.1.1 CollectionTree | 2.1 CsvImport | 2.0.7 CsvImportPlus | 2.3.2 DerivativeImages | 2.0 DocsViewer | 2.2 (inactive) Dropbox | 0.7.2 DublinCoreExtended | 2.3 EmbedCodes | 1.0 ExhibitBuilder | 3.6.1 Geolocation | 3.2.3 GettySuggest | 1.3 (inactive) HideElements | 1.4 Html5Media | 2.7 (inactive) ItemOrder | 2.1 ItemRelations | 2.2.1 LcSuggest | 2.0.4 MlaCitations | 1.0 Neatline | 2.6.1 (inactive) NeatlineFeatures | 2.0.5 (inactive) NeatlineSimile | 2.0.4 (inactive) NeatlineTime | 2.1.0 (inactive) NeatlineWaypoints | 2.0.2 (inactive) OaiPmhRepository | 2.2 OaipmhHarvester | 2.0.4 OmekaApiImport | 1.1.2 OpenLayersZoom | 2.6 (inactive) PdfText | 1.3.1 (inactive) RecordRelations | 2.0.1 Reference | 2.4.1 (inactive) Reports | 2.0.2 (inactive) SearchByMetadata | 1.2.1 ShortcodeCarousel | 1.0.1 SimpleContactForm | 1.1.1 SimplePages | 3.2.1 UserProfiles | 1.1
avantgarde | 1 berlin | 2.7.5 centerrow | 1.5.3 centerrow_noNav | 1.5.3 default | 2.7.1 emiglio | 2.4.2 hvd-dh-omeka-theme-master | 2.3 hvd-dh-omeka-theme-wcsu | 2.3 (current) minimalist | 2.5.2 neatscape | 1.0-rc.2 rhythm | 2.4.2 santa-fe | 2.5.2 santa-fe-fci | 2.5.2 seasons | 2.7
I tried replicating your Omeka (3.1.2), PHP (8.0.29), and MySQL (8.0.36) on a local Docker Compose setup, but I could not produce any errors from installing or uninstalling IIIF Toolkit 1.1.0. Your plugin listing is also missing IiifItems
, which should be there if IIIF Toolkit is present (unless you explicitly deleted it at the file level). Do you have any logged error messages from when you first encountered the HTTP 500 errors?
Here is the Docker Compose setup that I used: iiifitems-github28.zip
You can set it up with ./setup.sh
, then run it with docker compose up -d
.
Here's what I have from my notes. See the Omeka forum for more information: https://forum.omeka.org/t/corrupted-iiif-toolkit-plugin/19267
[Thursday 1:56 PM] Brian Stevens
Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Migration/0_0_1_7.php:17 Stack trace: #0 /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Migration/0_0_1_7.php(17): join() #1 /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Integration/System.php(68): IiifItems_Migration_0_0_1_7->up() #2 /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Integration/System.php(21): IiifItems_Integration_System->__addMediaPlaceholders() #3 /var/www/html/omeka/plugins/IiifItems/IiifItemsPlugin.php(44): IiifItems_Integration_System->install() #4 /var/www/html/omeka/application/libraries/Omeka/Plugin/Broker.php(142): IiifItemsPlugin->hookInstall() #5 /var/www/html/omeka/application/libraries/Omeka/Plugin/Installer.php(126): Omeka_Plugin_Broker->callHook() #6 /var/www/html/omeka/application/controllers/PluginsController.php(100): Omeka_Plugin_Installer->install() #7 /var/www/html/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->installAction() #8 /var/www/html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch() #9 /var/www/html/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch() #10 /var/www/html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch() #11 /var/www/html/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #12 /var/www/html/omeka/application/libraries/Omeka/Application.php(73): Zend_Application->run() #13 /var/www/html/omeka/admin/index.php(28): Omeka_Application->run() #14 {main} thrown in /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Migration/0_0_1_7.php on line 17
And...
[Thursday 11:42 AM] Stacy Haponik
[Thu Feb 29 11:34:37.782906 2024] [php:warn] [pid 2839296] [client 10.144.25.41:28401] PHP Warning: compact(): Undefined variable $linkProps in /var/www/html/omeka/themes/hvd-dh-omeka-theme-master/exhibit-builder/exhibit_layouts/gallery/layout.php on line 38, referer: https://www.google.com/ [Thu Feb 29 11:36:31.214610 2024] [php:error] [pid 2839870] [client 10.128.25.241:49987] PHP Fatal error: Uncaught Error: Call to a member function delete() on null in /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Integration/Files.php:38\nStack trace:\n#0 /var/www/html/omeka/plugins/IiifItems/IiifItemsPlugin.php(57): IiifItems_Integration_Files->uninstall()\n#1 /var/www/html/omeka/application/libraries/Omeka/Plugin/Broker.php(142): IiifItemsPlugin->hookUninstall()\n#2 /var/www/html/omeka/application/libraries/Omeka/Plugin/Installer.php(152): Omeka_Plugin_Broker->callHook()\n#3 /var/www/html/omeka/application/controllers/PluginsController.php(334): Omeka_Plugin_Installer->uninstall()\n#4 /var/www/html/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->uninstallAction()\n#5 /var/www/html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch()\n#6 /var/www/html/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()\n#7 /var/www/html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()\n#8 /var/www/html/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()\n#9 /var/www/html/omeka/application/libraries/Omeka/Application.php(73): Zend_Application->run()\n#10 /var/www/html/omeka/admin/index.php(28): Omeka_Application->run()\n#11 {main}\n thrown in /var/www/html/omeka/plugins/IiifItems/libraries/IiifItems/Integration/Files.php on line 38, referer: https://archives.library.wcsu.edu/omeka/admin/plugins/uninstall [Thu Feb 29 11:39:52.663672 2024] [php:warn] [pid 2840843] [client 10.144.25.41:36898] PHP Warning: compact(): Undefined variable $linkProps in /var/www/
From: Dickson Law @.> Sent: Tuesday, March 5, 2024 1:19 PM To: utlib/IiifItems @.> Cc: Brian Stevens @.>; Author @.> Subject: Re: [utlib/IiifItems] Omeka 3.1.2 incompatible? (Issue #28)
Please be cautious This email was sent from outside of your organization
I tried replicating your Omeka (3.1.2), PHP (8.0.29), and MySQL (8.0.36) on a local Docker Compose setup, but I could not produce any errors from installing or uninstalling IIIF Toolkit 1.1.0. Your plugin listing is also missing IiifItems, which should be there if IIIF Toolkit is present (unless you explicitly deleted it at the file level). Do you have any logged error messages from when you first encountered the HTTP 500 errors?
Here is the Docker Compose setup that I used: iiifitems-github28.ziphttps://github.com/utlib/IiifItems/files/14499677/iiifitems-github28.zip
You can set it up with ./setup.sh, then run it with docker compose up -d.
— Reply to this email directly, view it on GitHubhttps://github.com/utlib/IiifItems/issues/28#issuecomment-1979374248, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAC46DJST5NUXFCH2IRQNX3YWYEEHAVCNFSM6AAAAABEB35PUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZZGM3TIMRUHA. You are receiving this because you authored the thread.Message ID: @.***>
The first issue should be resolved by this upcoming commit: https://github.com/utlib/IiifItems/commit/2f2c37e312732213ff3b5680fb61543104d6c1b3
I will look into the uninstall routines of the plugin to make it more defensive in case of an installation error.
Among other changes, I will aim for a versioned update as soon as I can.
@StevensBrian
The defensive uninstall routines are in: https://github.com/utlib/IiifItems/commit/c43a532aa48ee71cad79e4efc4f939998f5302d2
If you don't mind testing it out on your setup, please download the current master
branch, and let me know if the issues that you described persist.
That worked!
https://archives.library.wcsu.edu/omeka/items/show/7874
Thanks very much. When you release a new version, will you post in the Omeka forum? if not, I will.
From: Dickson Law @.> Sent: Wednesday, March 6, 2024 3:48 PM To: utlib/IiifItems @.> Cc: Brian Stevens @.>; Mention @.> Subject: Re: [utlib/IiifItems] Omeka 3.1.2 incompatible? (Issue #28)
Please be cautious This email was sent from outside of your organization
@StevensBrianhttps://github.com/StevensBrian
The defensive uninstall routines are in: c43a532https://github.com/utlib/IiifItems/commit/c43a532aa48ee71cad79e4efc4f939998f5302d2
If you don't mind testing it out on your setup, please download the current master branch, and let me know if the issues that you described persist.
— Reply to this email directly, view it on GitHubhttps://github.com/utlib/IiifItems/issues/28#issuecomment-1981754520, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAC46DJ3KBOCOW3WEIOTD7LYW56IPAVCNFSM6AAAAABEB35PUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRG42TINJSGA. You are receiving this because you were mentioned.Message ID: @.***>
I am glad to hear that the patched setup works for you. My colleagues at work would like to test this on some existing setups before moving forward with the 1.2.0 patch release. Please feel free to post on the Omeka forums about it.
When we first installed the IIIF plugin, we got a 500 error, but when refreshing the plugin showed up among the installed Omeka plugins. When using the plugin, there were many errors thrown, and the embed wasn't displaying, so I decided to just uninstall it from the server end and reinstall it. It won't uninstall and throws the 500 error, and when activated, items/collections won't open on the public side. The Omeka folks sent me here. Note that we successfully installed the IIIF tookit and toolkit embed on our test server that runs a previous version of Omeka classic (3.0.3). Our problems came when we tried to implement it on our production server running 3.1.2.