• Resolved mallard66

    (@mallard66)


    Hi Mark,

    I just updated WordPress to version 3.8 (no issues encountered) and today the plugin to version 4.0. I now get 24 warnings similar to this:

    Warning: Illegal string offset 'gs_tbl_hdr_bkgd_color' in D:\xampp\htdocs\my_path\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1530

    The strings reported are:
    gs_cdt_countdown_bkgd_color
    gs_cdt_countdown_color
    gs_cdt_game_time_color
    gs_cdt_intro_color
    gs_cdt_location_color
    gs_cdt_opponent_color
    gs_sldr_game_block_bkgd_color
    gs_sldr_game_date_color
    gs_sldr_game_links_color
    gs_sldr_game_location_color
    gs_sldr_game_opponent_color
    gs_sldr_game_time_color
    gs_sldr_hdr_bkgd_color
    gs_sldr_hdr_divider_color
    gs_sldr_hdr_text_color
    gs_tbl_border_color
    gs_tbl_even_bkgd_color
    gs_tbl_even_text_color
    gs_tbl_hdr_bkgd_color
    gs_tbl_hdr_text_color
    gs_tbl_home_bkgd_color
    gs_tbl_home_text_color
    gs_tbl_odd_bkgd_color
    gs_tbl_odd_text_color

    Thanks,
    mallard66

    http://wordpress.org/plugins/game-schedules/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter mallard66

    (@mallard66)

    Some more information:

    • When I try to update an existing schedule, I get this in addition: Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\my_path\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php:1781) in D:\xampp\htdocs\my_path\wp-includes\pluggable.php on line 896
    • In the Game Schedules overview, each field has warnings similar to this: Warning: Illegal string offset 'admin_date_format' in D:\xampp\htdocs\my_path\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1015

    I tried uninstalling and reinstalling the plugin, to no avail. WP_DEBUG is set to false. I’m running with the German locale.

    I can’t point to any site, as I’m still only developing on my local machine.

    -mallard66

    I got the same problem, after upgrading to 4.0 my dahsboard is getting tons of errors:
    Warning: Illegal string offset ‘gs_tbl_hdr_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1530

    Warning: Illegal string offset ‘gs_tbl_hdr_text_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1538

    Warning: Illegal string offset ‘gs_tbl_border_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1547

    Warning: Illegal string offset ‘gs_tbl_odd_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1556

    Warning: Illegal string offset ‘gs_tbl_odd_text_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1565

    Warning: Illegal string offset ‘gs_tbl_even_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1574

    Warning: Illegal string offset ‘gs_tbl_even_text_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1583

    Warning: Illegal string offset ‘gs_tbl_home_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1592

    Warning: Illegal string offset ‘gs_tbl_home_text_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1601

    Warning: Illegal string offset ‘gs_cdt_game_time_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1636

    Warning: Illegal string offset ‘gs_cdt_opponent_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1648

    Warning: Illegal string offset ‘gs_cdt_location_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1660

    Warning: Illegal string offset ‘gs_cdt_intro_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1672

    Warning: Illegal string offset ‘gs_cdt_countdown_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1684

    Warning: Illegal string offset ‘gs_cdt_countdown_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1696

    Warning: Illegal string offset ‘gs_sldr_hdr_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1733

    Warning: Illegal string offset ‘gs_sldr_game_block_bkgd_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1745

    Warning: Illegal string offset ‘gs_sldr_hdr_text_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1757

    Warning: Illegal string offset ‘gs_sldr_hdr_divider_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1769

    Warning: Illegal string offset ‘gs_sldr_game_date_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1781

    Warning: Illegal string offset ‘gs_sldr_game_opponent_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1793

    Warning: Illegal string offset ‘gs_sldr_game_location_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1805

    Warning: Illegal string offset ‘gs_sldr_game_time_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1817

    Warning: Illegal string offset ‘gs_sldr_game_links_color’ in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\includes\mstw-game-schedules-admin.php on line 1829

    The schedule page also returns the following errors before generating the game schedules:
    Warning: array_merge(): Argument #2 is not an array in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\mstw-game-schedule.php on line 428

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\bcmures.ro\wp-content\plugins\game-schedules\mstw-game-schedule.php on line 431

    Thread Starter mallard66

    (@mallard66)

    The Warnings have nothing to do with WordPress 3.8 compatibility. I just rolled back my installation to 3.7.1 and get the same warnings when updating the plugin to 4.0.

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hey Guys,
    I really appreciate the work you have done in looking at this. Thank you for your efforts to make the plugin better.

    Yes, the warnings have nothing to do with WordPress compatibility, they are PHP warnings, not errors. They should go away if you turn of debug by setting WP_DEBUG = false in your wp-config.php file. Mallard66, I hear you when you say that does not remove the warnings, but I’m not sure what to tell you about your local development environment with xampp. You might want to take a look at the last post in the FAQ for an alternate method. radurosca, if you turn debug off as above to you still see the warnings? Because I don’t. For the colors warnings if you set a color (to anything), then clear it, the warning for that color option should go away.

    The ‘headers already sent’ warning is a bit more concerning to me because it doesn’t make any sense on line 1781 and it usually causes an error. Are you still seeing that warning? If so, would you mind setting the slider game date color to any color and see if that warning persists? You can then clear it.

    Thanks again gentlemen.
    -Mark

    Hi Mark, the wp-config.php file already has the debug setting set on false

    define(‘WP_DEBUG’, false);

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Thanks radurosca. Please check out this blog post. Hope it helps.

    Mark, i solved the problem with the blog post provided, thank you very much for your support and all the effort you put into these awesome plugins!

    Thread Starter mallard66

    (@mallard66)

    I followed the recommendation to fill out every color in the display settings and this successfully cleared the warnings. I also downloaded the pre-release patch but haven’t checked the outcome. But for now I think we can close this problem!

    Thanks for the quick resolution,
    -mallard66

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Illegal string offset warnings after update to 4.0’ is closed to new replies.