WordPress.org

Ready to get started?Download WordPress

Forums

Word Linker
Fatal error (2 posts)

  1. Den999
    Inactive
    Posted 2 years ago #

    Fatal error: Cannot redeclare replace_callback() in /.../wp-content/plugins/word-linker/word-linker.php on line 97

    http://wordpress.org/extend/plugins/word-linker/

  2. Gary Darling
    Member
    Posted 2 years ago #

    You could wait for the developer to catch and correct it or do it yourself by wrapping it php's function_exists code:

    if (! function_exists ('replace_callback') ) { // this line goes above the existing code
      //existing function code
    }; // this line goes below the existing code

    This says if the function named in the parens does NOT exist, then declare the function. If the function already exists, like in your case, then the existing function is ready to be called by whatever action or hook is making the call.

    See:
    http://www.digimantra.com/technology/php/avoid-fatal-error-redeclare-function-php/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic