-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError #21
Comments
It looks like this stems from the following lines in the definition of if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
$args[] =& $arg[0]; When calling Solution is probably going to be to drop the array type hints and add conditionals to ensure we are actually working with an array. |
Looks like there is already an issue filed: |
Fatal error: Uncaught TypeError: Argument 1 passed to SSNepenthe\Soter\Listeners\Log_Vulnerability_Ids::log_vulnerability_ids() must be of the type array, object given, called in /srv/www/wordpress-default/public_html/wp-includes/class-wp-hook.php on line 298 and defined in /srv/www/wordpress-default/public_html/wp-content/plugins/soter/src/Listeners/class-log-vulnerability-ids.php:51
The text was updated successfully, but these errors were encountered: