Forums

[resolved] Error: Cannot redeclare wsc_gocodes_install... (2 posts)

  1. Gary Cornelisse
    Member
    Posted 3 years ago #

    Plug-in seems to activate just fine. Its only when I go to actually add a new redirect. Seems WP is including the file twice in one request which begs whether this is a WP problem or a goCodes problem. I tried adding if (function_exists('..'))... around all the function declarations and all I got was a blank page after the new redirect submission. I thought maybe it was just a redirection problem at that point, but I went back to the goCodes UI and nothing was in the list.

    Fatal error: Cannot redeclare wsc_gocodes_install() (previously declared in /data/wp-content/plugins/gocodes/gocodes.php:29) in /data/wp-content/plugins/gocodes/gocodes.php on line 65

  2. Gary Cornelisse
    Member
    Posted 3 years ago #

    I found the problem. Apparently WP doesn't like symlinks to the plug-ins directory. I have several blogs and they all share a common plug-ins directory through a symbolic link. I removed the symlink and copied the plug-ins directory back, deactivated the plug-in, and reactivated it. It works find now.

    Sorry, false alarm!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags