Title: Receiving plugin error with 5.2
Last modified: May 20, 2019

---

# Receiving plugin error with 5.2

 *  Resolved [Karen](https://wordpress.org/support/users/karen5k/)
 * (@karen5k)
 * [7 years ago](https://wordpress.org/support/topic/receiving-plugin-error-with-5-2/)
 * Got a notification that this plugin is causing a fatal error. Curious to know
   why and if there is an update needed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freceiving-plugin-error-with-5-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [dschmidtke](https://wordpress.org/support/users/dschmidtke/)
 * (@dschmidtke)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/receiving-plugin-error-with-5-2/#post-11704399)
 * Same here. PHP error is:
 * Uncaught TypeError: Argument 1 passed to Portfolio_Post_Type_Admin::add_glance_counts()
   must be of the type array, null given, called in /var/www/ubuntu/wp-includes/
   class-wp-hook.php on line 286 and defined in /var/www/ubuntu/wp-content/plugins/
   portfolio-post-type/includes/class-portfolio-post-type-admin.php:170 Stack trace:#
   0 /var/www/ubuntu/wp-includes/class-wp-hook.php(286): Portfolio_Post_Type_Admin-
   >add_glance_counts(NULL) #1 /var/www/ubuntu/wp-includes/plugin.php(208): WP_Hook-
   >apply_filters(NULL, Array) #2 /var/www/ubuntu/wp-admin/includes/dashboard.php(
   317): apply_filters(‘dashboard_glanc…’, Array) #3 /var/www/ubuntu/wp-admin/includes/
   template.php(1304): wp_dashboard_right_now(”, Array) #4 /var/www/ubuntu/wp-admin/
   includes/dashboard.php(232): do_meta_boxes(Object(WP_Screen), ‘normal’, ”) #5/
   var/www/ubuntu/wp-admin/index.php(148): wp_dashboard() #6 {main} thrown
 *  Plugin Author [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * (@downstairsdev)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/receiving-plugin-error-with-5-2/#post-11832384)
 * This was fixed in the 1.0.0 release.

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

The topic ‘Receiving plugin error with 5.2’ is closed to new replies.

 * ![](https://ps.w.org/portfolio-post-type/assets/icon-256x256.png?rev=2904059)
 * [Portfolio Post Type](https://wordpress.org/plugins/portfolio-post-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/portfolio-post-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/portfolio-post-type/)
 * [Active Topics](https://wordpress.org/support/plugin/portfolio-post-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/portfolio-post-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/portfolio-post-type/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/receiving-plugin-error-with-5-2/#post-11832384)
 * Status: resolved