WordPress.org

Ready to get started?Download WordPress

Forums

Source Redirect Site
Throws PHP Warning (3 posts)

  1. taropaa
    Member
    Posted 2 years ago #

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'redirect_this' not found or invalid function name in /wp-includes/plugin.php on line 405

    http://wordpress.org/extend/plugins/source-redirect-site/

  2. Austin Passy
    Member
    Posted 2 years ago #

    Looking at the plugin, the author forgot to include the class in the hook calling the method redirect_this.

    Find:

    function redirect() {
    	add_action('get_header', 'redirect_this');

    And replace with:

    function redirect() {
    	add_action('get_header', array( $this, 'redirect_this' ) );
  3. Press Pixels
    Member
    Plugin Author

    Posted 2 years ago #

    You are right, just added that to the code - thanks for the info ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.