It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
In Php 7.2 the count() function has been updated. If you get the following error after php upgrade, here is a quick fix
Warning:
A PHP Error was encountered Severity: Warning Message: count(): Parameter must be an array or an object that implements Countable
Fix: If you have not edited application/libraries/M_manager.php use the attached file. Unzip and upload. Or update the _init() function to look like this
$payment_methods = []; $p_methods = get_payment_methods(); $inactiveItems = null == get_items('inactive') ? []: get_items('inactive'); $inactiveServices = null == get_services('inactive') ? []: get_services('inactive'); .... 'countOverdueInvoices' => null == count_invoices('Overdue') ? '' : count_invoices('Overdue'), 'count_clients' => null == count_clients('active') ? '': count_clients('active'), 'count_items' => 0 == count($inactiveItems) ? '' : count($inactiveItems), 'count_services' => 0 == count($inactiveServices) ? '' : count($inactiveServices),
Thanks
Eric
Comments