Support » Plugin: Swim Team » Fatal Error on plugin activation

  • Hello,

    I am wondering if anyone has experienced a Fatal Error when trying to activate SwimTeam and what you did to resolve it. I installed and activated the phphtmllib library but get the following error when activating SwimTeam:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare html_link() in /serverpath/wp-content/plugins/phphtmllib/tag_utils/ on line 948

    (serverpath = the actual sever path)

    Any insight on this would be greatly appreciated.


Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Mike Walsh


    What did you add to the swimteam.php file? You should not have to modify any of the files.

    It sounds like the PHP include path isn’t being recognized. Part of the initialization process sets up the include path so the various files the plugin uses can be found. This was the solution I came up with 5 years ago, there might be a better way to do it now.

    What did you add to the file swimteam.php?
    To test, I changed like this:
    require_once (‘include / menus.include.php’); => The error for that line disappears

    I think there is a problem to obtain the relative or absolute path

    nobody ?

    Plugin Author Mike Walsh


    Sorry for the delay in getting back to you on this, I am way behind on a project I am doing for our High School Booster Club and that is taking most of my free (non-work) time right now.

    That said, I have looked into this and this morning posted a new build I would like you to try out. From what you’ve reported, it appears the PHP include_path is never getting set correctly to account for all of the files which the plugin loads to support the various features.

    I have made a major change to how files are included, eliminating the need to modify the PHP include_path. To make this change, I had to modify about 100 files within the plugin so it isn’t a trivial change by any means.

    I have written up a post on my web site with more background and a link to download a new version. Delete the existing plugin and then manually upload this version of the plugin to your site and hopefully it will resolve the problem you are having.

    Hello and thank you for this update, the plugin works, I noticed an alert.

    Warning: Illegal string offset ‘label’ in /home/www/domaine/www/wordpress/wp-content/plugins/wp-swimteam/include/user/myjobs.php on line 72

    Now I have two questions.
    How do the French translation of the plugin and how does it work?
    Thank you for your work

    Plugin Author Mike Walsh


    I have found and fixed the problem you reported, you can read the background detail and download a new build from my web site.

    With regards to translation, I started working on this plugin back in 2007 and at the time, didn’t know how to support translation so didn’t build it in. It has always been on my “to-do” list but the odds of me doing it are pretty low. For now, it is English only. I suspect that adding translation support would be a pretty sizable task.

    Hello, the download link does not work.
    For translation into French I can help

    Plugin Author Mike Walsh


    Download link fixed, had a “0” in it instead of an “o” somehow.

    As for a French translation, if you want to look through the code and the let me know what you think, that is ok with me. I do think it is a pretty big task though as the code isn’t set up at all for using WordPress translation functionality.

    Ok for loading, thank you
    All messages and titles are in any file ?, everywhere or only in one.
    Thank you for your answers

    Plugin Author Mike Walsh


    The Swim Team plugin is spread across 93 PHP source files and is roughly 70,000 lines of code. Messages are spread throughout the plugin – the are defined where needed.

    There are a bunch of constants defined which would be easy to setup for translation but that is a small minority of the strings used in the plugin. As I noted, I started work on this plugin about 7 years ago. At the time things like Custom Post Types didn’t exit although having dome some work with CPTs, trying to use them for the Swim Team model would be very difficult.

    Initially I developed this for our local neighborhood swim team and didn’t expect it to grow to the extent it has. There was always a long list of things our own team wanted to do in addition to the requests I got from other teams who have used it. Unfortunately, translation was never a high priority and was something I figured I’d deal with later.

    Now that I no longer have any swimmers in my family, I am not doing any major development on the plugin but it is largely feature complete at this point and works pretty well.

    I plan to move it over to GitHub so people can fork it and that would be the best way to contribute to future development and I will get to doing that one of these days. If this is something that would help you out, let me know and I’ll move it up my priority list.

    Plugin Author Mike Walsh


    There is a new beta release out today which addresses some issues I found in the last day or two.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Fatal Error on plugin activation’ is closed to new replies.