• 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

    (@nmedia)

    Hi,

    can you please share screenshot where exactly you see this error?

    Thread Starter TheFactory

    (@thefactory)

    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

    (@nmedia)

    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

    (@thefactory)

    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

    (@nmedia)

    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.