Title: PHP Fatal error: WP_Error as array
Last modified: January 24, 2017

---

# PHP Fatal error: WP_Error as array

 *  [Michael Sayah](https://wordpress.org/support/users/msayah/)
 * (@msayah)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_error-as-array/)
 * Activating the plugin causes an error in the main PHP error log:
    /var/log/phperr.
   log: PHP Fatal error: Cannot use object of type WP_Error as array in /www/xxxxx.
   com/wp_content/plugins/hello-trumpy/hello-trumpy.php on line 33
 * plugin: hello-trumpy version: 1.1
    Linux version: Slackware 14.2, Kernel version:
   4.4.38 mysql Server version: 10.0.28-MariaDB, MySQL version: 15.1 default_storage_engine:
   InnoDB, wordpress version: 4.7.1 db_charset: utf8, db_collate: utf8_general_ci
   php version: 5.6.29

The topic ‘PHP Fatal error: WP_Error as array’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Michael Sayah](https://wordpress.org/support/users/msayah/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_error-as-array/)
 * Status: not resolved