WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Warnings since update

[Resolved] Warnings since update

  • Hi Marc,

    i just updated WP 3.6 and also to your version 3.0
    On the site i uses the Roster-List with a shortcode i get a warning:

    Warning: Missing argument 2 for mstw_tr_build_roster(), called in /var/www/web44/html/remake/wp-content/plugins/team-rosters/mstw-team-rosters.php on line 431 and defined in /var/www/web44/html/remake/wp-content/plugins/team-rosters/mstw-team-rosters.php on line 442

    there are also serveral warnings on the Team Roster Settingpage:

    Warning: call_user_func(mstw_show_hide_ctrl) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/web44/html/remake/wp-admin/includes/template.php on line 1191

    What can i do to fix this?

    http://wordpress.org/plugins/team-rosters/

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have same thing

    Warning: Missing argument 2 for mstw_tr_build_roster(), called in /home/content/36/10286736/html/fromthetunnel/wp-content/plugins/team-rosters/mstw-team-rosters.php on line 431 and defined in /home/content/36/10286736/html/fromthetunnel/wp-content/plugins/team-rosters/mstw-team-rosters.php on line 442

    same here. LOVE the new options with this release! thanks to the developer for this! hope we can fix this though.

    I just lost my whole roster of 63 players( pics, bios i setup and highlight videos for some) after updating this version. I got this error: Fatal error: Cannot redeclare mstw_sanitize_hex_color() (previously declared in /home2/racinet1/public_html/2013/wp-content/plugins/game-schedules/includes/mstw-utility-functions.php:15) in /home2/racinet1/public_html/2013/wp-content/plugins/team-rosters/includes/mstw-admin-utility-functions.php on line 164

    I need a fix asap

    I’ve had to disable the plugin since the update or I can’t even access my admin area. Here’s the error I’m getting (the same as jvalkoiii):

    Fatal error: Cannot redeclare mstw_sanitize_hex_color() (previously declared in /home/username/webroot/wpdirectory/wp-content/plugins/game-schedules/includes/mstw-utility-functions.php:15) in /home/username/webroot/wpdirectory/wp-content/plugins/team-rosters/includes/mstw-admin-utility-functions.php on line 164

    Plugin Author Mark O'Donnell

    @markodonnell

    All-
    Thanks for the feedback. Sorry for the problems. Not sure what’s going on but I expect to have a fix today.

    jvalkoiii, I’m sorry but I’ve never heard of anyone losing their data on a upgrade. I don’t mess with the data at all on a plugin install, reinstall, whatever. Has anyone else seen this problem?

    Stay tuned.
    -Mark

    Plugin Author Mark O'Donnell

    @markodonnell

    All-
    Okay, the simple way to eliminate the warnings is simply to turn off warnings on your server. Just edit you wp-config.php file, find

    define( 'WP_DEBUG', true );

    and change it to

    define( 'WP_DEBUG', false );

    I will update the plugin with the code fixes to remove this warnings after I’ve patched the other problems. If you really need to add the fixes immediately, let me know (mark@shoalsummitsolutions.com) and I send you the two patched files (for the shortcode and admin pages). No problem.

    BTW, best practice is to turn warnings OFF (false) in any production environment. [You never know what those damn plugin developers are going to do!!] No excuses, I should really develop with warnings ON, but since I develop in real time on my dev site (shoalsummitsolutions.com/dev), which plugin users refer to frequently, I have the bad habit of leaving them off.

    Stay tuned and thanks again for making the plugin better.

    -Mark

    FYI, I already had WP_DEBUG set to false and still got the error. I’ve basically just been testing the plugin and haven’t started using it in production yet, so I’ll just wait for the next release and then update manually since re-enabling it prevents me from accessing my plugins page in admin. Thanks for jumping on this so quickly.

    Plugin Author Mark O'Donnell

    @markodonnell

    Okay. Version 3.0.1 has been posted to 3.0.1 to correct the following:

    1. Warnings from the roster table shortcode on the user side.
    2. Include conflicts with other MSTW plugins, including show_hide_ctrl() and sanitize_hex_color().

    I have updated and re-installed the plugin several times and have not seen any data loss. If someone who has seen this problem can give me some more info on it, I’d be happy to see what I can do. I do nothing with the data on an install or de-install, so without some more info I’m stumped.

    Thanks for your patience. This is working on my box (shoalsummitsolutions.com/dev), but everyone’s environment is different so let me know.

    -Mark

    Plugin Author Mark O'Donnell

    @markodonnell

    Hi pixeldawg,
    Correct. Your’s was a FATAL ERROR, not a WARNING. Simple conflict with other MSTW plugins — include files, and function names — long story as to why it did not appear on my box, but bad on me. Let me know how it looks in 3.0.1.

    Thanks.
    -Mark

    Plugin Author Mark O'Donnell

    @markodonnell

    Since there has been no activity on this thread in over a month, I am marking it resolved. If you have further questions, please open a new thread.
    -Mark

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Warnings since update’ is closed to new replies.