Title: Error: Creating default object
Last modified: August 24, 2016

---

# Error: Creating default object

 *  [Dade Ronan](https://wordpress.org/support/users/dade-ronan/)
 * (@dade-ronan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-creating-default-object/)
 * I just installed NewStatPress with version 0.9.8 and I get this error:
    Warning:
   Creating default object from empty value in /home/webmasterace1/public_html/wp-
   content/plugins/newstatpress/newstatpress.php on line 1419
 * What needs to be done in order to fix it?
 * Thanks for your support.
 * [https://wordpress.org/plugins/newstatpress/](https://wordpress.org/plugins/newstatpress/)

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

 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-creating-default-object/#post-6127793)
 * hi,
 * it should just a warning due to empty database. Newstatpress should collect data
   in every case.
 * I will fix in next version.
 * thanks
 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [11 years ago](https://wordpress.org/support/topic/error-creating-default-object/#post-6127857)
 * The fix needs to be extended in all the codes that depends on the routine at 
   line 1419 (the plugin expect to have data to manages but it is just installed,
   so all are empty as the message). This require a little more time to fix.
 * Thanks
 *  Thread Starter [Dade Ronan](https://wordpress.org/support/users/dade-ronan/)
 * (@dade-ronan)
 * [11 years ago](https://wordpress.org/support/topic/error-creating-default-object/#post-6127864)
 * I did some searching and found that if I add this to the beginning of functions.
   php, then the error goes away, but that is because I am telling WordPress not
   to show errors. The problem still exists.
 *     ```
       /* Stop errors if any */
       error_reporting(E_ERROR | E_PARSE);
       /* End stop Errors */
       ```
   
 * The problem is that stats are either not being collected or not adding up, cause
   it shows 0 for everything.
 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [11 years ago](https://wordpress.org/support/topic/error-creating-default-object/#post-6127871)
 * Yes, usually PHP warning output are disabled so no one see them. Their are warning
   as PHP find some functions that are called without what it expects and so advise
   the programmer.
 * It is strange that however you had not collected data. That seems that that routine
   blocks the correct flow of the program.

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

The topic ‘Error: Creating default object’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [ice00](https://wordpress.org/support/users/ice00/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/error-creating-default-object/#post-6127871)
 * Status: not resolved