Title: Creating default object from empty value
Last modified: October 3, 2017

---

# Creating default object from empty value

 *  Resolved [iaeon](https://wordpress.org/support/users/iaeon/)
 * (@iaeon)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-12/)
 * I am getting a flashing error at the top of many Wordfence admin pages as follows:
   
   Warning: Creating default object from empty value in /var/www/vhosts/mydomain.
   tld/httpdocs/wp-admin/includes/plugin-install.php on line 192 0
 * The code seems to be: $res->external = true;
 * within an else if clause
 * } elseif ( !is_wp_error($res) ) {
    $res->external = true; }
 * Any idea why this is happening?

Viewing 1 replies (of 1 total)

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-12/#post-9563239)
 * Hi,
    Could you please let me know the version of WordPress, Wordfence and PHP
   you are running?
 * Also, does this warning message disappear by temporarily deactivating Wordfence?
 * Thanks.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-12/#post-9563239)
 * Status: resolved