Support » Plugin: Broken Link Checker » [Plugin: Broken Link Checker] Activation error

  • Anticosti

    (@anticosti)


    Hi!
    Always getting this error when trying to activate Broken Link Checker:

    Fatal error: Cannot redeclare add_screen_meta_link() (previously declared in /home/user/public_html/site/wp-content/plugins/broken-link-checker/includes/screen-meta-links.php:256) in /home/user/public_html/site/wp-content/plugins/gantry/admin/screen-meta-links.php on line 205

    Kind Regards,

    http://wordpress.org/extend/plugins/broken-link-checker/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I get this error as well. It’s because there’s another plugin of your using a copy of the screen-meta-links.php file.

    The fix for now and hopefully that will be included soon is to open screen-meta-links.php and move the endif; to just before the ?> at file end.

    Thank you Michael for your support.
    I fixed it as you suggested + I also had to remove a function from gantry/admin/screen-meta-links.php :

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Working now 🙂

    Cheers,

    I’m having this same problem on a test site which uses RocketTheme’s Modulus theme, based on the Gantry framework. I tried to activate the Broken Link Checker and now I can’t get into my admin interface at all and I can’t load any pages; I just get the error. Thank God it’s a test site.

    I tried moving the endif; to just before the ?> at file end without any effect, and I can’t see what the function was that Anticosti removed. I assume it’s this:

    /**
    * Add a new link to the screen meta area.

    I will try deleting that and see what happens. I really need a fix for this as I use the Broken Link Checker on the production site, for which I’m trying to develop the Gantry theme!

    What’s the error message?

    The error message I got was:

    Fatal error: Cannot redeclare add_screen_meta_link() (previously declared in /home/content/16/6136616/html/wp-content/plugins/broken-link-checker/includes/screen-meta-links.php:256) in /home/content/16/6136616/html/wp-content/plugins/gantry/admin/screen-meta-links.php on line 205

    I moved the endif; to just before ?> as you recommended, and it still didn’t help, so I simply removed the last function in the screen-meta-links.php file. Anticosti didn’t say which function he had to remove but I saw that, in the original file, after the endif; there was one whole function. I deleted that and my problem went away. If it continues to work, I may just live with that but if there is a fix I’d like to know.

    I’ve been working on this site, using the Gantry-based theme, since early May. I never saw that error until I tried to activate the Broken Link Checker to check something: I had changed the name of a page and wanted to see if there were any links to it that I’d missed.

    In wp-content/plugins/gantry/admin/screen-meta-links.php, move the endif; to the file end as well.

    I did move the endif; to the file end. It didn’t eliminate the error.

    The error didn’t go away until I removed the last function in the file. It was late and I was trying to finish something, the error was preventing me from doing ANYTHING in my admin console. I didn’t have the energy to debug the php.

    I thought this was fixed, then I came back from vacation and ran a bunch of plug-in updates on my site, and the error came back:

    Fatal error: Cannot redeclare add_screen_meta_link() (previously declared in /home/content/16/6136616/html/wp-content/plugins/broken-link-checker/includes/screen-meta-links.php:256) in /home/content/16/6136616/html/wp-content/plugins/gantry/admin/screen-meta-links.php on line 205

    I had the solutions from this thread, of course, but they didn’t work this time. As far as I can tell, both Gantry and the Broken Link Checker use the SAME file, screen_meta_links.php, written by Janis Elsts. But Gantry is using a 2010 version, and BLC uses a 2011 update. I compared the files in WinMerge to discover this. The file contents are now so different that moving the endif; no longer corrects the problem. I’ve had a problem open in the RocketTheme forum since August and no one has responded. Anyone here got any suggestions?

    I would suggest removing Gantry’s inclusion of the screen_meta_links.php.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Broken Link Checker] Activation error’ is closed to new replies.