Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

PHP Warning: count():

+1 vote
asked May 12 in Q2A Core by Ambassador

hi, my error log is 20GB with this errors how can we fix

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in 

/qa-include/qa-theme-base.php on line 632

/qa-theme-base.php on line 211

/qa-include/app/format.php on line 384

PHP 7.2.4

Q2A 1.8

1 Answer

+1 vote
answered May 13 by Scott

You can't be using Q2A 1.8 because those warnings were fixed for 1.8 and the code you show is not the latest code.

Try downloading the latest version again from the Q2A website.

commented May 13 by Ambassador
edited May 13 by Ambassador
the two error is fixed with the latest version
/qa-theme-base.php on line 632
/qa-theme-base.php on line 211

but the
/qa-include/app/format.php on line 384
error still exists

Edit Fixed:
File replaced with https://github.com/q2a/question2answer/blob/dev/qa-include/app/format.php