2020-03-31, 02:16 PM
Your copy of MyBB running on AEG Clan has experienced an error. Details of the error include:
---
Type: 2
File: admin/modules/forum/management.php (Line no. 145)
Message
count(): Parameter must be an array or an object that implements Countable
Back Trace: #0 errorHandler->email_error(2, count(): Parameter must be an array or an object that implements Countable, admin/modules/forum/management.php, 145) called at [/var/www/forum/inc/class_error.php:195]
=========================================
Every time I get this kinds of error, I had to modify PHP code inside that will check if the variable actually exists. How can I fix this kinds of things without modifying PHP code?
---
Type: 2
File: admin/modules/forum/management.php (Line no. 145)
Message
count(): Parameter must be an array or an object that implements Countable
Back Trace: #0 errorHandler->email_error(2, count(): Parameter must be an array or an object that implements Countable, admin/modules/forum/management.php, 145) called at [/var/www/forum/inc/class_error.php:195]
=========================================
Every time I get this kinds of error, I had to modify PHP code inside that will check if the variable actually exists. How can I fix this kinds of things without modifying PHP code?