[wp-trac] [WordPress Trac] #47127: Parameter Error in class-wp-hook files
WordPress Trac
noreply at wordpress.org
Sun May 5 22:50:51 UTC 2019
#47127: Parameter Error in class-wp-hook files
--------------------------+------------------------------
Reporter: walkinverse | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.1.1
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by walkinverse):
Replying to [comment:1 joyously]:
> Perhaps one of your plugins started a cron job with bad parameters, that
continued after removing the plugin. If it was a core problem, we would
all have big log files. But we don't.
No, this is not a plugin issue. As a further test, I deleted all non-core
cron jobs as well as deleted every single plugin to the bare minimum. Yet,
it still generates thousands of lines of warning.
In addition after further research, many were having this exact same issue
and it was supposed to be resolved in the update. Maybe something was
missed as I am getting the same issue.
{{{
[05-May-2019 21:36:33 UTC] PHP Warning: count(): Parameter must be an
array or an object that implements Countable in /var/www/html/wp-includes
/class-wp-hook.php on line 275
[05-May-2019 21:36:33 UTC] PHP Warning: call_user_func_array() expects
parameter 2 to be array, null given in /var/www/html/wp-includes/class-wp-
hook.php on line 294
}}}
In the actual file error happen here:
line 272:
{{{#!php
$num_args = count( $args );
}}}
line 286:
{{{#!php
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
}}}
The countable seems to point to a database issue. The same issue in the
previous release. I also updated to 5.1.1 and still receive this issue.
{{{#!php
public function apply_filters( $value, $args ) {
}}}
Also, all custom functions have also been removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47127#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list