I’ve worked with Omeka many times in the past, and am trying to set up a new instance on a hosting server I haven’t worked with before (Doteasy). I had some troubles installing, but they upgraded my PHP version and the install worked, but I still cannot add items (this problem was happening before and after the PHP version change).
When I go to add an item, instead of completing successfully it says Omeka has encountered an error. In the error log, there is this:
[26-Sep-2019 15:31:20 UTC] PHP Warning: array_keys() expects parameter 1 to be array, boolean given in /home/ilovemat9936/public_html/dev/omeka/application/libraries/Omeka/Db/Table.php on line 133
[26-Sep-2019 15:31:20 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/ilovemat9936/public_html/dev/omeka/application/libraries/Omeka/Db/Table.php on line 389
[26-Sep-2019 15:31:20 UTC] PHP Warning: array_keys() expects parameter 1 to be array, boolean given in /home/ilovemat9936/public_html/dev/omeka/application/libraries/Omeka/Db/Table.php on line 133
[26-Sep-2019 15:31:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/ilovemat9936/public_html/dev/omeka/application/libraries/Omeka/Db/Table.php on line 366
Does anyone have ideas on why this is happening? I imagine it has to do with my database, but I went through a script installer (Softaculous) and it should’ve set it up for me. I’m hesitant to mess with it; I don’t really have other server support on this project.
That’s all the messages there are. It’s repeated twice because I tried to add an item twice, so I just posted one of the sections.
It gives me a page “Omeka has encountered an error.” I tried to edit the .htacess file and turn on error logging, and though I’ve never had an issue with that in the past, it for some reason breaks the whole installation when I uncomment the dev environment line (it gives me a 500 internal error until I comment it out again). So I was just going by the error log.
Hmm, that’s odd… an “encountered an error” page should lead to an error message in the PHP logs.
Well, anyway, If the “error display” instructions won’t work, try the “Activate Error Logging” instructions instead. Omeka has its own separate log you can turn on that should include the message that goes with that page.
Thanks for this advice. I made this change and did a test - it seems I can add an item with no attached files. But for items with attached files, it gives me an error. Here is the message in the error log:
That error is just saying Omeka couldn’t run the ImageMagick process to create thumbnails… I’d check that ImageMagick is installed on the server they switched you to, that it’s at the same location, and that they haven’t disabled the proc_open PHP function which we use to run that command from PHP.