Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
count() - functions_calendar.php
#1
Does anyone else get this PHP warning?

 Error String: count(): Parameter must be an array or an object that implements Countable
 Error File: /home/testing/mybb1820/inc/functions_calendar.php
 Error Line: 133
Reply
#2
a plugin incompatibility? Try disabling your plugins to see what happens
Hey man, what's up?
Reply
#3
Tested on a vanilla install.

Tested on PHP 5.6 = No Error.
Tested on PHP 7.2 = Error
Reply
#4
I can confirm it. It try to get the array count also if the index is not set: https://github.com/mybb/mybb/blob/featur...r.php#L132
Error suppression doesn't work to all.
[Image: ZbrcFs]
Reply
#5
Just came across this thread, looks like you have already opened this up on github for us.

Good spot and thank you for contributing!

https://github.com/mybb/mybb/pull/3626
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)