• Resolved ra00f

    (@raoof)


    Hi all,

    I’m getting a strange error while saving the Settings->Reading page (after changing “Blog pages show at most”)

    On submit, the url getting changed to /wp-admin/options.php.

    When I check options.php page I see the following.
    `if ( !isset( $whitelist_options[ $option_page ] ) )
    wp_die( __( ‘ERROR: options page not found.’ ) );

    though, I don’t have any clue on what to do.

    Kindly give some advice on how to fix.

    Thanks

    PS: I’m getting another warning the top of Dashboard as given below
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘__CLASS_’ not found in ***/wp-includes/class-wp-hook.php on line 298

Viewing 3 replies - 1 through 3 (of 3 total)
  • @raoof,

    Are you using the latest version of WP? You could try using the default theme & deactivating all plugins. Try getting rid of that error & then saving the Settings.

    You could also try clearing your cache, logout & login again & then verify if there is any change in the above behaviour.

    Thread Starter ra00f

    (@raoof)

    Thank you for the reply.

    Does it wipe out all the settings I have done over the plugins by deactivating them? Would I need to set them all from scratch?

    —————–
    Edit:

    Yeah…! I got it.

    I got an advice through google about plugin settings (that they don’t get wiped out) and I deactivated all plugins.

    Then activated one by one and caught the culprit. No more warnings too.

    PS: WordPress should catch misleading warnings like “Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘__CLASS_’ not found in ***/wp-includes/class-wp-hook.php on line 298” and give some hints on plugins 🙂

    • This reply was modified 9 years, 3 months ago by ra00f.
    • This reply was modified 9 years, 3 months ago by ra00f.
    • This reply was modified 9 years, 3 months ago by ra00f.

    @raoof – That’s right, the settings don’t get wiped out when plugins are deactivated.

    I guess WP will be able to catch the erring plugin in the near future. Until then, the onus is on plugin authors. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“ERROR : options page not found” – while saving Settings->Reading->’ is closed to new replies.