Title: API option not saving
Last modified: October 8, 2017

---

# API option not saving

 *  Resolved [calisun](https://wordpress.org/support/users/calisun/)
 * (@calisun)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/)
 * I have latest version of your plugin (1.2.8), running on WordPress (4.8.2)
    When
   I got to Options and API tab, I click on “Enable External API” and “Generate 
   new API Key” and “Save Options” But when I get out of that tab and go back in,“
   Enable External API” and “Generate new API Key” fields are empty. I have tried
   several things: Disabled/ enabled plugin. I have removed and re-install plugin.
   I have enabled plugin in the site and network enabled. Nothing made a difference,
   looks like the APT options don’t get saved.

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

 *  Thread Starter [calisun](https://wordpress.org/support/users/calisun/)
 * (@calisun)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9603368)
 * Any suggestions?
 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9609757)
 * hi,
 * did the other options in other tabs get saved or not?
 *  Thread Starter [calisun](https://wordpress.org/support/users/calisun/)
 * (@calisun)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9610464)
 * Hi ice00, thank you for your reply.
    I just checked and it looks like it is not
   saving anything,
 * To Test,
 * In Options -> Details Menu -> Top Days, I changed 5 to 7, and saved. after returning
   to this location, it was back to 5.
 * I also did, Options -> Visits Menu -> Number if IP per page, I changed 20 to 
   50, but it did not stick also.
 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9630362)
 * Hi,
 * Could you add this two lines inside newstatpress.php, just after the initial 
   block of comments (the one inside /** */)
 *     ```
       error_reporting(E_ALL);
       ini_set('display_errors', 1);
       ```
   
 * then try to change an option and see if you get some errors on screen (after 
   that remove the code).
 * Thanks
 *  Thread Starter [calisun](https://wordpress.org/support/users/calisun/)
 * (@calisun)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9639433)
 * I have added code as suggested:
 *     ```
       Author URI: http://newstatpress.altervista.org
       ************************************************************/
   
       error_reporting(E_ALL);
       ini_set('display_errors', 1);
   
       // Make sure plugin remains secure if called directly
       ```
   
 * nothing shows up on the screen.
    -  This reply was modified 8 years, 7 months ago by [calisun](https://wordpress.org/support/users/calisun/).
    -  This reply was modified 8 years, 7 months ago by [calisun](https://wordpress.org/support/users/calisun/).
 *  Thread Starter [calisun](https://wordpress.org/support/users/calisun/)
 * (@calisun)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9639450)
 * After installing your latest version (1.2.9) it started saving
 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9650669)
 * Good.
    Thanks

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

The topic ‘API option not saving’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/newstatpress.svg)
 * [NewStatPress](https://wordpress.org/plugins/newstatpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newstatpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newstatpress/)
 * [Active Topics](https://wordpress.org/support/plugin/newstatpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newstatpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newstatpress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ice00](https://wordpress.org/support/users/ice00/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/api-option-not-saving/#post-9650669)
 * Status: resolved