WordPress Settings API settings not saving for some users

Here are few remarks after skimming through your code:

  • you are using options name like id, title and global. You should use a prefix on these names, like vegas_, to avoid possible problems with other stuff using these option names.

  • you should let the users know about validation problems (check out the add_settings_error() function)

  • use trim() on your text fields values when you save.

  • use esc_attr() to escape your HTML attributes.

  • develope your plugin with WP_DEBUG activated, so you can catch any errors before you ship your plugin.

Hopefully this will bring you closer to a resolution 😉

Reference:

http://codex.wordpress.org/Function_Reference/add_settings_error

http://codex.wordpress.org/Function_Reference/esc_attr

http://codex.wordpress.org/Debugging_in_WordPress

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)