Title: post-template.php error
Last modified: January 14, 2019

---

# post-template.php error

 *  [TheFactory](https://wordpress.org/support/users/thefactory/)
 * (@thefactory)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/)
 * I’m getting the following error on file upload.
 * PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in /home/mysite/public_html/wp-includes/post-template.php on line 284
 * Any way to resolve this issue? Running PHP 7.2.

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

 *  Plugin Author [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11098811)
 * Hi,
 * can you please share screenshot where exactly you see this error?
 *  Thread Starter [TheFactory](https://wordpress.org/support/users/thefactory/)
 * (@thefactory)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11100927)
 * The error is not present on any specific page, just in the error_log file on 
   the server after each file upload. Let me know.
 *  Plugin Author [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11113685)
 * Well following error does not show any file from our plugin and we not sure that
   it belongs to our plugin or not.
 * `PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in /home/mysite/public_html/wp-includes/post-template.php on line 284`
 *  Thread Starter [TheFactory](https://wordpress.org/support/users/thefactory/)
 * (@thefactory)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11119488)
 * It absolutely relates to your plugin. Do some research on this error with PHP
   7.2 The error is written to my error_log immediately after uploading any files
   using your plugin. Let me know – thanks.
 *  Plugin Author [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11135300)
 * Hi,
 * we tried to look into this issue but can’t track it down. If you can please provide
   more detail on this issue, like the specific file in our plugin we certainly 
   will fix it.

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

The topic ‘post-template.php error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nmedia-user-file-uploader_d7d4e4.
   svg)
 * [Frontend File Manager Plugin](https://wordpress.org/plugins/nmedia-user-file-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nmedia-user-file-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nmedia-user-file-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/nmedia-user-file-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nmedia-user-file-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nmedia-user-file-uploader/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [N-Media](https://wordpress.org/support/users/nmedia/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/post-template-php-error-2/#post-11135300)
 * Status: not resolved