Cannot save settings
-
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!!
-
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.www.ads-software.com/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.
-MarkHeya,
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.33My 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
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.
-MarkOk, thx Mark!
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://www.ads-software.com/about/requirements/. I sincerely doubt this is a problem, but it’s worth keeping up to date anyway.
-Mark
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:
OI believe that output is exactly the problem of why the plugin is not saving, any insight on what could be wrong?
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 [email protected].
-Mark
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
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.
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.
If possible I would suggest reinstalling wordpress – my second configuration was on the same server with the same settings and there it worked.
Thanks Philtone. I’d love to know what the “WP thing” is or was, but I’m stumped.
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?
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 [email protected], we can talk about some alternatives.
-Mark
- The topic ‘Cannot save settings’ is closed to new replies.