Title: Undefined array key &#8220;columns&#8221;
Last modified: February 18, 2024

---

# Undefined array key “columns”

 *  Resolved [splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/)
 * (@splintershatchetaxethrowing)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/)
 * I am attempting to use the latest free version of Sportspress. When I add any
   of the widgets, in this case it is the league widget, I receive the following
   error in design mode and view mode **Warning: Undefined array key “columns” in…\
   wp-content\plugins\sportspress\includes\widgets\class-sp-widget-league-table.
   php on line 67**.
 * The interesting part is the table do show the data. I attempted to add some other
   widgets and received the other following errors when editing/viewing:
 * **Warning**: Undefined array key “columns” in **wp-content\plugins\sportspress\
   includes\widgets\class-sp-widget-league-table.php** on line **67**
 * **Warning**: Undefined array key “orderby” in **wp-content\plugins\sportspress\
   includes\widgets\class-sp-widget-player-list.php** on line **74**
 * **Warning**: Undefined array key “order” in **wp-content\plugins\sportspress\
   includes\widgets\class-sp-widget-player-list.php** on line **75**
 * How do I fix? If I purchased the product, do these issues go away?
 * Thanks.

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

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17436187)
 * Hi there [@splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/),
 * I am sorry you are facing these issues…
 * I wasnt able to reproduce what you are facing on my test environment, so please
   provide some more details on this.
 * What are the settings of your League Table? Can you share some screenshots from
   the setting page? It seems like the “columns” field is not correctly set for 
   some reason.
 * What PHP version are you using?
 * Did you try to switch to a default theme like “Rookie” or “TwentyTwenty”?
 * Looking forward for you response!
 * Thanks,
   Savvas
 *  Thread Starter [splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/)
 * (@splintershatchetaxethrowing)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17438100)
 * I am not using any theme and just the widgets. It appears if I don’t include 
   the logo to display the error disappears.
 * PHP Version: 8.2.12
 * Link below is League section to add/edit
 * [https://drive.google.com/file/d/1d2fKne6SGyngmyamRsMu0E1OVXf2YN70/view?usp=sharing](https://drive.google.com/file/d/1d2fKne6SGyngmyamRsMu0E1OVXf2YN70/view?usp=sharing)
 * Link below is editing the page with the league widget
 * [https://drive.google.com/file/d/1d353Iwr8T6zh_-gptmo7BYTtwGl71nPo/view?usp=drive_link](https://drive.google.com/file/d/1d353Iwr8T6zh_-gptmo7BYTtwGl71nPo/view?usp=drive_link)
 * I did find that one of the errors goes away if I don’t have selected to display
   the logos. The link below show what it looks like in view mode with logo not 
   selected; still see there is an error.
 * [https://drive.google.com/file/d/1d6lBoFOjJERhsxvVFaQD9AOMc2sJ6ISI/view?usp=drive_link](https://drive.google.com/file/d/1d6lBoFOjJERhsxvVFaQD9AOMc2sJ6ISI/view?usp=drive_link)
    -  This reply was modified 2 years, 3 months ago by [splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/).
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17440369)
 * Cab you try to apply the following patch and see if it fixes your errors?
 * [https://github.com/ThemeBoy/SportsPress/commit/99d2f42d8c3935681b464e753387e011782fe7b1](https://github.com/ThemeBoy/SportsPress/commit/99d2f42d8c3935681b464e753387e011782fe7b1)
 * Thanks,
   Savvas
 *  Thread Starter [splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/)
 * (@splintershatchetaxethrowing)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17440799)
 * I download all the php files in that group on github and replaced them on the
   server. I restarted the pool and when I looked at the page I still get the following:
 * **Warning**: Undefined array key “columns” in**H:\root\home\splinters-001\www\
   splinters\wp-content\plugins\sportspress\includes\widgets\class-sp-widget-league-
   table.php**on line**67**
 * I know none of the php files touched this widget, but I also still get **Warning**:
   Undefined array key “orderby” in**H:\root\home\splinters-001\www\splinters\wp-
   content\plugins\sportspress\includes\widgets\class-sp-widget-player-list.php**
   on line**74**
 * and
 * **Warning**: Undefined array key “show_all_players_link” in**H:\root\home\splinters-
   001\www\splinters\wp-content\plugins\sportspress\includes\widgets\class-sp-widget-
   player-list.php**on line**76**
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17446544)
 * Hi [@splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/),
 * You are right. Please apply additional the following patch:
 * [https://github.com/ThemeBoy/SportsPress/commit/6a0f6456e996ea50eac984a0ad15ff6dd29f7544](https://github.com/ThemeBoy/SportsPress/commit/6a0f6456e996ea50eac984a0ad15ff6dd29f7544)
 * Thanks,
   Savvas
 *  Thread Starter [splintershatchetaxethrowing](https://wordpress.org/support/users/splintershatchetaxethrowing/)
 * (@splintershatchetaxethrowing)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17447429)
 * The league table issue is fixed and one of the player-list.php issues, but still
   have one issue left with the player-list.php.
 * **Warning**: Undefined array key “orderby” in**H:\root\home\splinters-001\www\
   splinters\wp-content\plugins\sportspress\includes\widgets\class-sp-widget-player-
   list.php**on line**74**
 * I have some questions about these fixes:
    1. Am I the only one that has had these issues? If so, why and if not then why 
       am I the only one that seems to be finding them?
    2. I am okay with applying patches to see if it fixes the problem, but if you have
       a qa environment which you have been testing them yourself then why not an actually
       release update? You seem to be able to verify what I see which means you were
       able to reproduce.my issues on your side.
    3. I have yet to look at all the functionality offered in the free version. I would
       like to use the pro version, but afraid that I will find similar issues in other
       widgets. I don’t know your refund policy, but I rather not pay for pro to find
       it just as buggy and spend time and effort into helping debug your product.
 * Thanks you.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17448954)
 * You are right… I forgot a couple of lines behind. Please try the following patch
   additional to the previous two.
 * [https://github.com/ThemeBoy/SportsPress/commit/549109e80efdd614d523cac3faabb0c03268c1b9](https://github.com/ThemeBoy/SportsPress/commit/549109e80efdd614d523cac3faabb0c03268c1b9)
 * Now about your questions:
   1. Those are just warnings, not errors. If you disable
   the “debug” mode of WordPress and/or [hide php warning messages](https://aristath.github.io/blog/wp-hide-php-errors),
   you will not bothered with those messages. The plugin will continue to work as
   it should.2. It seems like most of these issues are PHP8.x.x related. The truth
   is that we solved all founded php errors related to PHP8. Warnings are next on
   our dev team plan.3. For any pre-sale questions please ask directly at [ThemeBoy Support](https://support.themeboy.com/)
 * Thanks for your patience on this 🙂
 * Savvas

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

The topic ‘Undefined array key “columns”’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-columns/#post-17448954)
 * Status: resolved