Title: PHP Errors
Last modified: August 31, 2016

---

# PHP Errors

 *  [gloda](https://wordpress.org/support/users/gloda/)
 * (@gloda)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-errors-68/)
 * Visitors can no longer access the site. They get this:
    Warning: sort() expects
   parameter 1 to be array, object given in /var/www/…/html/wp-content/plugins/capa/
   capa.php on line 1113
 * Fatal error: Cannot use object of type WP_Term as array in /var/www/…/html/wp-
   content/plugins/capa/capa.php on line 1119
 * [https://wordpress.org/plugins/capa/](https://wordpress.org/plugins/capa/)

Viewing 1 replies (of 1 total)

 *  [bolmovic](https://wordpress.org/support/users/bolmovic/)
 * (@bolmovic)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-68/#post-7040637)
 * Maybe it is helpful for other users, but I was able to solve this error by editing
   capa.php as follows. No idea whether the plugin is fully functional after this
   edit, but it solved my issues.:
 * …
    $category_taxo = capa_protect::get_value_categories(TRUE);
 *  // ADD LINES BELOW
    if ($_terms instanceof WP_Term) { return $_terms; } if(!
   $_taxonomy){ …..

Viewing 1 replies (of 1 total)

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/capa.svg)
 * [CaPa Protect](https://wordpress.org/plugins/capa/)
 * [Support Threads](https://wordpress.org/support/plugin/capa/)
 * [Active Topics](https://wordpress.org/support/plugin/capa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/capa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/capa/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bolmovic](https://wordpress.org/support/users/bolmovic/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-68/#post-7040637)
 * Status: not resolved