Problem upgrading Advanced Search module / errors with Common and Advanced Search

Hello, I am having a problem upgrading the Advanced Search module. I am running Omeka S version 4.1.1. I currently have Advanced Search version 3.4.6.20, which was released in January 2023 (compatible with Omeka S 3.1 and 4.0). I noticed that the Advanced Search functionality is no longer working on my website, so I wanted to upgrade to the latest version of the module.

I attempted to upgrade to Advanced Search version 3.4.35 today. When I unzipped the new version of the module in my /modules/ directory, my whole website crashed and became unavailable: the public website is unreachable (no Omeka S error message or anything), and the Omeka S Admin dashboard is also unavailable, so I am not able to login or do anything.

I removed the new files from /modules/AdvancedSearch and replaced them with the old files from version 3.4.6.20, and my website started working again.

Is there something special I need to do to upgrade this module? Should I upgrade incrementally to an earlier version of the module and then upgrade to the latest version?

I do already have the module Common installed, version 3.4.63 (the latest version as of now). With the current configuration (latest Common module, but old Advanced Search module) I am getting Omeka S errors with various website functions that mention these modules, although I am not sure what these errors mean. For example, I have a Faceted Browse page that stopped working (it was working until recently). When I go to the Admin dashboard and go to edit that specific Faceted Browse page, I get an Omeka S error. When I look at the logs/application.log file, the latest error says:

2024-11-27T21:22:25+00:00 ERR (3): InvalidArgumentException: A message to translate should be stringable. in /home/scarleta/records.njslavery.org/modules/Common/src/I18n/Translator.php:50
Stack trace:
#0 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-mvc-i18n/src/Translator.php(65): Common\I18n\Translator->translate(Array, 'default', NULL)
#1 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-i18n/src/View/Helper/Translate.php(31): Laminas\Mvc\I18n\Translator->translate(Array, 'default', NULL)
#2 /home/scarleta/records.njslavery.org/modules/AdvancedSearch/src/View/Helper/SearchFilters.php(153): Laminas\I18n\View\Helper\Translate->__invoke(Array)
#3 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): AdvancedSearch\View\Helper\SearchFilters->__invoke('common/search-f...', Array)
#4 /home/scarleta/records.njslavery.org/application/view/common/query-form.phtml(6): Laminas\View\Renderer\PhpRenderer->__call('searchFilters', Array)
#5 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/home/scarleta/...')
#6 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Helper/Partial.php(63): Laminas\View\Renderer\PhpRenderer->render(NULL, NULL)
#7 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\View\Helper\Partial->__invoke('common/query-fo...', Array)
#8 /home/scarleta/records.njslavery.org/application/src/Form/View/Helper/FormQuery.php(20): Laminas\View\Renderer\PhpRenderer->__call('partial', Array)
#9 /home/scarleta/records.njslavery.org/application/src/Form/View/Helper/FormQuery.php(11): Omeka\Form\View\Helper\FormQuery->render(Object(Omeka\Form\Element\Query))
#10 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(168): Omeka\Form\View\Helper\FormQuery->__invoke(Object(Omeka\Form\Element\Query))
#11 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(178): Laminas\Form\View\Helper\FormElement->renderHelper('formQuery', Object(Omeka\Form\Element\Query))
#12 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(108): Laminas\Form\View\Helper\FormElement->renderInstance(Object(Omeka\Form\Element\Query))
#13 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(91): Laminas\Form\View\Helper\FormElement->render(Object(Omeka\Form\Element\Query))
#14 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormElement->__invoke(Object(Omeka\Form\Element\Query))
#15 /home/scarleta/records.njslavery.org/application/view/common/form-row.phtml(26): Laminas\View\Renderer\PhpRenderer->__call('formElement', Array)
#16 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/home/scarleta/...')
#17 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(154): Laminas\View\Renderer\PhpRenderer->render(NULL, NULL)
#18 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(108): Laminas\Form\View\Helper\FormRow->render(Object(Omeka\Form\Element\Query), 'prepend')
#19 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormRow->__invoke(Object(Omeka\Form\Element\Query))
#20 /home/scarleta/records.njslavery.org/modules/FacetedBrowse/view/faceted-browse/site-admin/category/form.phtml(53): Laminas\View\Renderer\PhpRenderer->__call('formRow', Array)
#21 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/home/scarleta/...')
#22 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Helper/Partial.php(63): Laminas\View\Renderer\PhpRenderer->render(NULL, NULL)
#23 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\View\Helper\Partial->__invoke('form')
#24 /home/scarleta/records.njslavery.org/modules/FacetedBrowse/view/faceted-browse/site-admin/category/edit.phtml(1): Laminas\View\Renderer\PhpRenderer->__call('partial', Array)
#25 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/home/scarleta/...')
#26 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render(NULL)
#27 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#28 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren(Object(Laminas\View\Model\ViewModel))
#29 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#30 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent))
#31 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#32 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#33 /home/scarleta/records.njslavery.org/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent))
#34 /home/scarleta/records.njslavery.org/index.php(21): Laminas\Mvc\Application->run()
#35 {main}```