Title: Cannot save settings
Last modified: February 28, 2018

---

# Cannot save settings

 *  [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/)
 * Hey,
 * I’ve been trying to save different settings (mainly to show or hide columns).
   When I press “Save Changes” it says “updated” but the settings stay the same.
 * I am able to add players and teams – just not save stuff in the settings menu.
 * Hope you can help me out here – thx!!

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

 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10025625)
 * Hi Philtone,
    Thanks for posting. All the tabs seem to be working correctly for
   me. (Granted, I did not try every single option, so if there is one in particular,
   let me know, but that doesn’t sound like your problem.) But I’ll be happy to 
   try to help you.
 * The first thing I’d try is to deactivate (not delete) all other plugins, including
   any MSTW plugins, and try again. If things in Team Rosters work, you can begin
   activating plugins one-by-one and see where the conflict arises.
 * Next, is your debug log active? If so, have you looked at it. If not, here’s 
   how to log errors, warnings, and notices. [https://codex.wordpress.org/Debugging_in_WordPress](https://codex.wordpress.org/Debugging_in_WordPress)
   It’s a good thing to know how to do.
 * Then I have the following basic questions:
    Do any of the other tabs work?
 * What version of the plugin are you using?
 * What version of WordPress are you using?
 * What version of PHP are you using?
 * Let me know.
    -Mark
 *  Thread Starter [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10038925)
 * Heya,
 * thx for replying!
 * I have already tried to deactivate everything, but that didn’t help..
 * I am using:
 * – WordPress 4.9.4
    – MSTW Team Rosters Version 4.1.2 – Running PHP version: 5.6.33
 * My debug log shows me the following:
 * [05-Mar-2018 07:40:21 UTC] PHP Warning: array_key_exists() expects parameter 
   2 to be array, string given in …../wp-content/plugins/team-rosters/includes/mstw-
   tr-settings.php on line 237
 * and then several logs like this:
 * [05-Mar-2018 07:40:21 UTC] PHP Warning: Illegal string offset ‘show_photos’ in…../
   wp-content/plugins/team-rosters/includes/mstw-tr-settings.php on line 283
 * and:
 * [05-Mar-2018 07:40:21 UTC] PHP Warning: Cannot modify header information – headers
   already sent by (output started at …../wp-content/plugins/team-rosters/includes/
   mstw-tr-settings.php:237) in …../wp-includes/pluggable.php on line 1216
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10046324)
 * Thanks for and the information and your research on this. Your config looks okay.
   Let me see if I can recreate these warnings to find and fix whatever the problem
   is.
    Stay tuned. -Mark
 *  Thread Starter [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10048027)
 * Ok, thx Mark!
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10062975)
 * Good news and bad news, I guess. I don’t see these warnings on my development
   box. The first two indicate that the $options array might be empty, so they COULD
   be start-up problems … maybe. The third almost always indicates that there are
   blanks (or other white space) at the end of the file. In this case `mstw-tr-settings.
   php`. Check that file and make sure there is no white space after the last line.
 * Next, I would suggest deactivating and deleting the plugin, then re-installing
   it. (You shouldn’t lose any data.) Before doing that though, you might want to
   bring your site up to the current WordPress specs, [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/).
   I sincerely doubt this is a problem, but it’s worth keeping up to date anyway.
 * -Mark
 *  Thread Starter [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10097948)
 * Hey Mark,
 * I tried everything here without success ..
 * I have made some tests to check whats not working on saving.
 * $input is returning this array:
    Array ( [show_photos] => 1 [photo_label] => 
   Photo [show_number] => 1 [number_label] => Nbr [name_label] => Name [show_position]
   => 1 [position_label] => Pos [show_height] => 1 [height_label] => Ht [show_weight]
   => 1 [weight_label] => Wt [show_year] => 0 [year_label] => Year [show_experience]
   => 0 [experience_label] => Exp [show_age] => 0 [age_label] => Age [show_home_town]
   => 0 [home_town_label] => Home Town [show_last_school] => 0 [last_school_label]
   => Last School [show_country] => 0 [country_label] => Country [show_bats_throws]
   => 0 [bats_throws_label] => Bat/Thw [show_other_info] => 0 [other_info_label]
   => Other )
 * while $output gives me this result:
    O
 * I believe that output is exactly the problem of why the plugin is not saving,
   any insight on what could be wrong?
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10106094)
 * First, thanks for your hard work on this.
 * Second, yes this is a problem. It smells like your settings DB may be hosed. 
   I can send you some code to debug further and/or reset the DB if necessary, but
   first …
 * Question: Is the problem only on the Data Fields & Columns tab or are the settings
   not saved on all the tabs?
 * Let me know on that one via this forum. If you want the debug or reset code, 
   contact me at [mark@shoalsummitsolutions.com](https://wordpress.org/support/topic/cannot-save-settings-12/mark@shoalsummitsolutions.com?output_format=md).
 * -Mark
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10234276)
 * Any luck?
 * QUESTION: When you say the settings are not saving, do you mean that they do 
   not change on the settings admin screen, or the do not change on the front end(
   the shortcode display)? IF the latter, you might try to add the parameter roster_type
   =’custom’ to the shortcode incantation.
 * -Mark
 *  Thread Starter [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10237844)
 * Hey mark, I decided to use another plugin since the customer needed his website
   done.
 * I tested it on another configuration some days ago and it worked without a problem
   so i guess it was some wordpress “thing”
 * To answer your question: In the backend it said that it saved but the settings
   weren’t saved. Not in the backed or the frontend.
 *  [okpulse316](https://wordpress.org/support/users/okpulse316/)
 * (@okpulse316)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10241188)
 * I am having the exact same problem. In the backend it says saved but the settings
   are not saved. I have tried everything suggested here and it has not been resolved.
 *  Thread Starter [Philtone](https://wordpress.org/support/users/philtone/)
 * (@philtone)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10241795)
 * If possible I would suggest reinstalling wordpress – my second configuration 
   was on the same server with the same settings and there it worked.
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10245319)
 * Thanks Philtone. I’d love to know what the “WP thing” is or was, but I’m stumped.
 *  [okpulse316](https://wordpress.org/support/users/okpulse316/)
 * (@okpulse316)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10260719)
 * I completely uninstalled WP and started from scratch. I deleted everything and
   reinstalled WP and the plugin. It still will not update the custom settings. 
   Is there any way that I can manually add the items to the roster page and the
   player pages?
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10264661)
 * Thanks for trying all that. As Philtone suggested, there’s something going on
   with WordPress. I don’t know what you mean exactly by “manually add the items
   to the roster page and player pages”. Do you mean write some code?
 * I’d like to figure this out because if it’s happening on your system, it will
   come up on others eventually. I suggest we take this out of the forum. If you
   can contact me at [mark@shoalsummitsolutions.com](https://wordpress.org/support/topic/cannot-save-settings-12/mark@shoalsummitsolutions.com?output_format=md),
   we can talk about some alternatives.
 * -Mark

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

The topic ‘Cannot save settings’ is closed to new replies.

 * ![](https://ps.w.org/team-rosters/assets/icon-128x128.png?rev=1087838)
 * [Team Rosters](https://wordpress.org/plugins/team-rosters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/team-rosters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/team-rosters/)
 * [Active Topics](https://wordpress.org/support/plugin/team-rosters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/team-rosters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/team-rosters/reviews/)

## Tags

 * [cannot save](https://wordpress.org/support/topic-tag/cannot-save/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 14 replies
 * 3 participants
 * Last reply from: [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-settings-12/#post-10264661)
 * Status: not resolved