So we’ve been running Omeka classic for some time, no problem.
Suddenly, it’s running slowly then giving us 404 pages. I checked the error log, and found “PHP Warning: Undefined array key “type” in /home/martindi/public_html/application/views/helpers/ItemSearchFilters.php on line 92” However, these have been in the error log since 2024.
I did a search on “ItemSearchFilters.php on line 92” on the internet, and found it’s littered with databases with this code on the public facing pages.
I don’t know if it’s part of our problem, but it does seem to be a problem. Anybody know what that code is supposed to be?
85 // Advanced needs a separate array from $displayValue because it's
86 // possible for "Specific Fields" to have multiple values due to
87 // the ability to add fields.
88 if (array_key_exists('advanced', $requestArray)) {
89 $advancedArray = [];
90 $index = 0;
91 foreach ($requestArray['advanced'] as $i => $row) {
92 if (!$row['element_id'] || !$row['type']) {
93 continue;
94 }