Support » Plugin: SlideShare for WordPress by Yoast » Error after update

  • Hi,

    I received this error at the admin dashboard after updating to the latest version. I am running WordPress 3.9.1.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'SlideShare_Admin' does not have a method 'options_init' in /webpath/wp-includes/plugin.php on line 470

    https://wordpress.org/plugins/slideshare/

Viewing 15 replies - 1 through 15 (of 17 total)
  • I have the same problem in two sites that I operate with the same error message …

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘SlideShare_Admin’ does not have a method ‘options_init’ in /home/content/p3nexnas06_data01/97/2073797/html/wp-includes/plugin.php on line 470

    My sites include:

    http://chanctonbury.org/slidesharing/
    http://evaintheuk.org/

    I would be obliged to receive an answer as soon as possible. Alternatively, I will look to roll back to version 3.8

    Thanks

    I am having the same problem after the update.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘SlideShare_Admin’ does not have a method ‘options_init’ in /wordpress/wp-includes/plugin.php on line 470

    Warning: Cannot modify header information – headers already sent by (output started at /wordpress/wp-includes/plugin.php:470) in /wordpress/wp-includes/pluggable.php on line 1121

    I found the problem.

    Edit the file slideshare.php

    just after:

    /**
    		 * Class constructor
    		 */
    		function __construct() {
    			$this->longname = __( 'SlideShare Configuration', 'slideshare' );
    			add_action( 'admin_menu', array( &$this, 'register_settings_page' ) );
    			add_filter( 'plugin_action_links', array( &$this, 'add_action_link' ), 10, 2 );
    
    			add_action( 'admin_print_scripts', array( &$this, 'config_page_scripts' ) );
    			add_action( 'admin_print_styles', array( &$this, 'config_page_styles' ) );
    
    			add_action( 'admin_init', array( &$this, 'options_init' ) );
    		}

    You need to add this lines:

    function options_init(){
    		    register_setting( 'yoast_slideshare_options', 'slideshare' );
    		}

    so the result will be:

    /**
    		 * Class constructor
    		 */
    		function __construct() {
    			$this->longname = __( 'SlideShare Configuration', 'slideshare' );
    			add_action( 'admin_menu', array( &$this, 'register_settings_page' ) );
    			add_filter( 'plugin_action_links', array( &$this, 'add_action_link' ), 10, 2 );
    
    			add_action( 'admin_print_scripts', array( &$this, 'config_page_scripts' ) );
    			add_action( 'admin_print_styles', array( &$this, 'config_page_styles' ) );
    
    			add_action( 'admin_init', array( &$this, 'options_init' ) );
    		}
    
    		function options_init(){
    		    register_setting( 'yoast_slideshare_options', 'slideshare' );
    		}

    Kind regards

    José Conti

    Where do you find that file? It doesn’t show up when I click on “editor”.

    Thanks. I found it by pure dumb luck. I’m going to try your fix now.

    HEY that worked!!! Thanks so much! I have another site to fix tomorrow but I truly appreciate this.

    You’re welcome 🙂

    Ok, I gotta ask….How-come Yoast has not corrected for this ?

    I don’t know.. but its an easy fix. I think he don’t know the problem with this plugin.

    Thomas, Jose:

    Some weeks ago I sent a message to Yoast support system, warning about this problem. They showed their appreciatioin, but judging from the current situation, they have not fixed the bug.

    Anyway, José, thank you very much for this patch.

    Thanks!

    it still doesn’t wok for me. When I apply your new lines, the wp admin desktop become blank… pleas, could you help me? Another plugin that works better? Thank you Jose

    Hi @buenobuonogood,

    Maybe you’re changing the file encoding. Are you using a plain text editor?

    Hi Jose, I’ve tried to modify the slideshare.php directly in the ftp location of the file. I’ve put the lines you’ve suggest but as result the admin panel of wordpress became a blank page 🙁 maybe it’s a matter of conflict with another plugin? Or is there another solution you can suggest me? thank u very much for your help!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Error after update’ is closed to new replies.