Title: Warning: Creating default object from empty value
Last modified: August 30, 2016

---

# Warning: Creating default object from empty value

 *  [Primetime Glam](https://wordpress.org/support/users/primetime-glam/)
 * (@primetime-glam)
 * [11 years ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-30/)
 * I tried to log in my website today but I could not because the site had crashed.
   I only got this message stating a fatal error. I use the Whimsy framework.
 * I contacted Hostgator they told me that the problem was the theme Whimsy, and
   the person I talked to asked me to see if an update was needed. He changed the
   theme temporarily to the Twenty Thirteen.
 * I updated some plugins and I deleted the theme and installed it again. Now I 
   cannot see any of the pictures of the posts, only the text and what is worst 
   I get this message at the top of my website:
 * Warning: Creating default object from empty value in /home4/primetim/public_html/
   wp-content/themes/whimsy-framework/inc/hooks.php on line 163
 * Can someone please help me fix this? I really appreciate it!!

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

 *  [Whimsy Creative Co.](https://wordpress.org/support/users/thefanciful/)
 * (@thefanciful)
 * [11 years ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-30/#post-6182556)
 * Hi! I’m the developer for Whimsy, and I’m so sorry this update went so terribly!
 * Could you open up /whimsy-framework/inc/hooks.php and search for:
 * `global $whimsy;`
 * and directly below that add this line:
 * `$whimsy = new stdClass();`
 * If this doesn’t resolve the issues I’ll need to know the version of PHP that 
   hostgator is running so that I can troubleshoot further. Again, my apologies 
   for bumpy update. 🙁
 *  Thread Starter [Primetime Glam](https://wordpress.org/support/users/primetime-glam/)
 * (@primetime-glam)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-30/#post-6182749)
 * Thanks Natasha! I’m sorry I did not answer before but I had to change themes 
   to the “Twenty Thirteen” theme. I was trying to add the line you told me but 
   I am not a web developer so I do not know where to look for the line you asked
   me to find to add the text below to begin with. I’m so sorry.
    I really would
   like to change back to the Whimsy theme. Would you please tell me where do I 
   have to go to look for the line? Thanks for your hard work!!

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

The topic ‘Warning: Creating default object from empty value’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Primetime Glam](https://wordpress.org/support/users/primetime-glam/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-30/#post-6182749)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
