WordPress.org

Forums

WP-PageNavi
[resolved] Missing 'css' method on PageNavi_Core? (4 posts)

  1. Grant Palin
    Member
    Posted 1 year ago #

    I've recently been seeing the following error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'PageNavi_Core' does not have a method 'css' in C:\Users\grant\Projects\Websites\infectionNet\wp-includes\plugin.php on line 429

    At the top of any front-end page, even when PageNavi is not being used on the page. The error appears even if I uncheck the Use pagenavi-css.css option in the plugin settings. Also, when the option is enabled, the output - the plugin does seem to otherwise work functionally - does not receive any default styling from the plugin.

    My theme uses PageNavi in just one place, a custom function used as a template tag:

    if ( function_exists( 'wp_pagenavi' ) ) {
    	wp_pagenavi();
    	return;
    }

    I'm using WordPress 3.7, and PageNavi 2.83. This is currently on a local site, and the error strangely does not appear on the live equivalent.

    http://wordpress.org/plugins/wp-pagenavi/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    Any way I can reproduce this? You just embed wp-pagenavi in your theme footer and this error shows?

  3. Grant Palin
    Member
    Posted 1 year ago #

    Strangely, the aforementioned error went away after I deleted the plugin and reinstalled from the repo. The default styling is back as well. Must have been some oddity with the current install.

    Though on the backend, I now see a new message at the top, below the navbar:

    Strict Standards: Declaration of PageNavi_Options_Page::validate() should be compatible with scbAdminPage::validate($new_data, $old_data) in C:\Users\grant\Projects\Websites\infectionNet\wp-content\plugins\wp-pagenavi\admin.php on line 156

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    I fixed that issue sometime back, waiting for more fixes to come along before releasing it. https://github.com/lesterchan/wp-pagenavi/commit/741ae330d09efd642be2ec323ac8e9638b113e99 =)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags