Title: php 7 errors
Last modified: January 4, 2017

---

# php 7 errors

 *  Resolved [Peter jansen](https://wordpress.org/support/users/microkloon/)
 * (@microkloon)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-errors-2/)
 * Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /
   home/xxx/public_html/wp-content/plugins/yandex-metrica/libs/Yandex_Oauth.php:
   52 Stack trace: #0 /home/xxx/public_html/wp-content/plugins/yandex-metrica/yandex-
   metrica.php(100): Yandex_Oauth->connect_oauth_server(‘x’) #1 /home/xxx/public_html/
   wp-content/plugins/yandex-metrica/templates/settings.php(13): WP_Yandex_Metrica-
   >authorize(‘x’) #2 /home/xxx/public_html/wp-content/plugins/yandex-metrica/yandex-
   metrica.php(128): include(‘/home/xxx…’) #3 /home/xxx/public_html/wp-includes/
   class-wp-hook.php(298): WP_Yandex_Metrica->metrica_settings_page(”) #4 /home/
   xxx/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”,
   Array) #5 /home/xxx/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(
   Array) #6 /home/xxx/public_html/wp-admin/admin.php(222): do_action(‘settings_page_y…’)#
   7 /home/xxx/public_html/wp-admin/options-general.php(10): require_onc in /home/
   xxx/public_html/wp-content/plugins/yandex-metrica/libs/Yandex_Oauth.php on line
   52
    -  This topic was modified 9 years, 5 months ago by [Peter jansen](https://wordpress.org/support/users/microkloon/).

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

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-errors-2/#post-8616917)
 * Hello [@microkloon](https://wordpress.org/support/users/microkloon/), thanks 
   for reporting.
 * This should be affect other PHP versions as well. I will fix soon.
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-errors-2/#post-8619538)
 * Hello again, the problem fixed in version 1.4.3

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

The topic ‘php 7 errors’ is closed to new replies.

 * ![](https://ps.w.org/yandex-metrica/assets/icon-256x256.jpg?rev=2980886)
 * [Yandex Metrica](https://wordpress.org/plugins/yandex-metrica/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yandex-metrica/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yandex-metrica/)
 * [Active Topics](https://wordpress.org/support/plugin/yandex-metrica/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yandex-metrica/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yandex-metrica/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-errors-2/#post-8619538)
 * Status: resolved