Forums

Fatal error: Cannot redeclare write_post() (4 posts)

  1. tomfern
    Member
    Posted 5 years ago #

    When I try and activate certain plugins, I get the following fatal error:

    “Fatal error: Cannot redeclare write_post() (previously declared in ..//wp-admin/admin-functions.php:4) in ../wp-admin/admin-functions.php on line 3″

    Any ideas on how to solve this? I've tried everything.

    Thanks in advance,

    Tom

  2. Zoutesnor
    Member
    Posted 5 years ago #

    In these plugins the file /wp-admin/admin-functions.php is probably called through an include or require command. Change this to an include_once or require_once command. Click here for more info on this.

  3. tomfern
    Member
    Posted 5 years ago #

    Thanks, but it was already a required_once command.

    Any other suggestions?

  4. Zoutesnor
    Member
    Posted 5 years ago #

    Comment out the line with the require in it, and see if it works. (it is a longshot btw)

    edit: Forget that, look over here.

Topic Closed

This topic has been closed to new replies.

About this Topic