Title: Error in php7
Last modified: August 31, 2016

---

# Error in php7

 *  Resolved [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [10 years ago](https://wordpress.org/support/topic/error-in-php7-1/)
 * Here error following the php 7 transition :
    (Error on admin dashboard) `Notice:
   Array to string conversion in D:\wamp\www\wp\wp-content\plugins\arconix-faq\includes\
   class-gamajo-dashboard-glancer.php on line 123` `Notice: Undefined property: 
   stdClass::$Array in D:\wamp\www\wp\wp-content\plugins\arconix-faq\includes\class-
   gamajo-dashboard-glancer.php on line 123`
 * [https://wordpress.org/plugins/arconix-faq/](https://wordpress.org/plugins/arconix-faq/)

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

 *  Plugin Author [John Gardner](https://wordpress.org/support/users/jgardner03/)
 * (@jgardner03)
 * [10 years ago](https://wordpress.org/support/topic/error-in-php7-1/#post-7372696)
 * Hi,
 * Thanks for posting that error. The developer of that library has fixed that issue
   and I’ll release it with the next update of my plugin.
 *  Thread Starter [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-in-php7-1/#post-7372915)
 * no next update ?
    Thx
 *  Thread Starter [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-in-php7-1/#post-7372916)
 * in `class-gamajo-dashboard-glancer.php` :
 *     ```
       protected function get_single_item( array $item ) {
       		$count = 0;
       		$num_posts = wp_count_posts( $item['type'] );
       		$count = (int) $num_posts->publish;		
   
       		if ( ! $count ) {
       			return '';
       		}
   
       		$href  = $this->get_link_url( $item );
       		$text  = number_format_i18n( $count ) . ' ' . $this->get_label( $item, $count );
       		$text  = $this->maybe_link( $text, $href );
   
       		return $this->get_markup( $text, $item['type'] );
       	}
       ```
   
 *  Plugin Author [John Gardner](https://wordpress.org/support/users/jgardner03/)
 * (@jgardner03)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-in-php7-1/#post-7372917)
 * Hi,
 * I haven’t finished the next update. If you’d prefer to update the library yourself
   you absolutely can… you can download the library from here: [https://github.com/GaryJones/Gamajo-Dashboard-Glancer/releases/tag/1.0.2](https://github.com/GaryJones/Gamajo-Dashboard-Glancer/releases/tag/1.0.2)
 *  Thread Starter [madvic](https://wordpress.org/support/users/madvic/)
 * (@madvic)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-php7-1/#post-8776163)
 * Hi,
 * No news on it ?
    Thanks

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

The topic ‘Error in php7’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [madvic](https://wordpress.org/support/users/madvic/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-php7-1/#post-8776163)
 * Status: resolved