You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to call a caUtils command such as create-ngrams, the following error is being thrown:
# support/bin/caUtils create-ngrams
CollectiveAccess 2.0 (199/GIT) Utilities
(c) 2013-2025 Whirl-i-Gig
PHP Fatal error: Uncaught TypeError: caGetOption(): Argument #2 ($pa_options) must be of type ?array, Zend_Console_Getopt given, called in /var/www/providence/app/lib/Utils/CLIUtils/Search.php on line 99 and defined in /var/www/providence/app/helpers/utilityHelpers.php:2404
Stack trace:
#0 /var/www/providence/app/lib/Utils/CLIUtils/Search.php(99): caGetOption()
#1 /var/www/providence/support/bin/caUtils(171): CLIUtils::create_ngrams()
#2 {main}
thrown in /var/www/providence/app/helpers/utilityHelpers.php on line 2404
When trying to call a
caUtils
command such ascreate-ngrams
, the following error is being thrown:This is related to commit 585bc43#diff-08c1965d29f2be2136cf3fbad0436356baf56858d167563968945fd4b8046028
It can no longer read in the Zend_Console_Getopt type, as the parameter is explicitly an array (or null).
If I remove the
?array
type, then it works, but I am assuming the type was added for a reason.The text was updated successfully, but these errors were encountered: