Forum Replies Created
-
AuthorPosts
-
Devon AndersonMemberThis update did not fix the error, I urge you to install https://github.com/roots/soil, and activate all of the settings to see what I mean. Your plugin removes certain actions using “remove_action”, if any other installed plugin does this, then you will run into the case where you attempt to remove an action that has already been removed, and your call to “extract” will be called on an empty filter, and none of the variables that you expect to have will be there, namely, the $priority variable, which you assume exists on line 471. You need to make sure that the extracted variables exist.
Devon AndersonMemberAny update on this? Would love to use this plug-in to manage my custom post types, but can’t even get started with it.
Devon AndersonMemberI did a little debugging, and it looks like the in the ‘part_process($part)’ function the $part parameter ends up as null in those calls. I looked into the Piklist code, and it seems that in the there is no check to make sure that $part is not null.
Devon AndersonMemberI receive the same error when I disable dashboard widgets. I looked into the code, and it seem that there is an error in the remove_dashboard_widgets function
$widgets = self::$options[‘remove_dashboard_widgets_new’][‘dashboard_widgets’];
$widgets = is_array($widgets) ? $widgets : array($widgets);
$widgets = $widgets[0];$widgets is initially an array, and the last line there extracts the first element and tries to feed it to
if(in_array($dashboard_widget, $widgets))
which results in the error, the second argument should be a string
if the $widgets = $widgets[0]; line is removed, everything works as expected
Devon AndersonMemberI am still getting this error on the Dashboard however
Warning: in_array() expects parameter 2 to be array, null given in
/…/site/web/app/plugins/piklist/includes/class-piklist-meta.php on line 340it shows up about 16 times
If I disable the Soil plugin https://github.com/roots/soil it disappears, looks like there is a conflict there.
I looked into the plugin, and it seems that this is causing the problem
function remove_dashboard_widgets() {
remove_meta_box(‘dashboard_incoming_links’, ‘dashboard’, ‘normal’);
remove_meta_box(‘dashboard_plugins’, ‘dashboard’, ‘normal’);
remove_meta_box(‘dashboard_primary’, ‘dashboard’, ‘normal’);
remove_meta_box(‘dashboard_secondary’, ‘dashboard’, ‘normal’);
}
add_action(‘admin_init’, __NAMESPACE__ . ‘\\remove_dashboard_widgets’);Looks like removing dashboard widgets gives Piklist trouble
Devon AndersonMemberAlright, so this is a bit strange, I tested it in firefox (should have tested it in another browser long ago, I know), and it was working fine. Cleared all my cache in chrome, and relaunched, everything seems to be working as expected. I’m not sure why it was choking on that particular set of parameters.
Devon AndersonMemberI decided to just try a fresh install of WordPress 4.3.1, and use the default twentyfifteen template, added only the piklist plugin 0.9.9.4, and added a piklist folder to the theme. The plugin screen shows up completely blank.
Devon AndersonMemberIf I’m on the Dashboard I get this error
Warning: in_array() expects parameter 2 to be array, null given in
/…/site/web/app/plugins/piklist/includes/class-piklist-meta.php on line 340
Devon AndersonMemberI have confirmed that this behaviour is present across multiple different themes. If I choose an arbitrary theme, add a piklist folder to it, and activate Piklist 0.9.9.4 then I receive a truncated plugin list. This is present with a fresh WordPress DB, and with all other plugins deactivated. I am using the Bedrock https://github.com/roots/bedrock boilerplate.
-
AuthorPosts