WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: SlideShare] Line 114 is unnecessary and causes errors (7 posts)

  1. Frederick D.
    Member
    Posted 4 years ago #

    Line 114 of the slideshare.php file, which reads
    add_action('admin_menu', array('SlideShare_Admin','add_config_page'));
    causes an error reading

    First argument is expected to be a valid callback, 'SlideShare_Admin::add_config_page' was given

    This error is logical, considering the add_config_page() method does not exist in SlideShare_Admin nor in Yoast_Plugin_Admin.

    The Yoast_Plugin_Admin class, line 14 actually does what the above line was intended to do.
    add_action( 'admin_menu', array(&$this, 'register_settings_page') );
    So I commented out line 114 in slideshare.php and it's no longer broken.

    I hope this is resolved in the next maintenance version.

    Regards,
    Frederick

    http://wordpress.org/extend/plugins/slideshare/

  2. wfeigenson
    Member
    Posted 4 years ago #

    Thanks Frederick - you're a life saver!

  3. bchamontin
    Member
    Posted 4 years ago #

    I don't know if it is the same pbm but WordPress says :

    "Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'SlideShare_Admin::add_config_page' was given in /home/bchamontin/geeksandcom.com/wp-includes/plugin.php on line 339"

    Is it the same method to fix it ? or the line 339 ?

    Thanks ;)

  4. Joost de Valk
    Member
    Posted 4 years ago #

    Fixed in 1.6.1 and yes bchamontin that's the same bug :)

  5. Frederick D.
    Member
    Posted 4 years ago #

    Awesome! Glad to see that this helped other users.

  6. Joost de Valk
    Member
    Posted 4 years ago #

    Thanks for setting the topic to resolved!

  7. bchamontin
    Member
    Posted 4 years ago #

    Thanks a lot for this update and your reactivity :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags