Support » Plugin: WP-PageNavi » Missing 'css' method on PageNavi_Core?

  • Resolved Grant Palin


    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' ) ) {

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan


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

    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

    Plugin Author Lester Chan


    I fixed that issue sometime back, waiting for more fixes to come along before releasing it. =)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing 'css' method on PageNavi_Core?’ is closed to new replies.