Support » Plugin: Sliced Invoices - WordPress Invoice Plugin » PHP Errors? How to resolve these?

  • jezzer300


    This is a new install, invoices appear okay. Sliced Invoices Reports appear as below…

    Warning: count(): Parameter must be an array or an object that implements Countable in **hidden path to website**/wp-content/plugins/sliced-invoices/admin/includes/sliced-admin-reports.php on line 598

    System info has this error at the top:-

    <br />
    <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>**hidden path to website**/wp-content/plugins/sliced-invoices/admin/includes/sliced-admin-tools.php</b> on line <b>286</b><br />

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andrew Reva



    It first let me say that it’s a warning, not an error. So if your system works well we can ignore this problem. After looking at the source code I can say that it could be performed a variable type check but it’s not present. This really could be a problem in some cases but there’s no sense for having an invoice without at least one item. So I think we can ingore the warning. If it’s annoying you can turn off php warning reporting. I’d say iven more. You have to turn verbose errors off and use logs instead if you want to hide any information about your system from anyone who could be interested in breaking your site.

    But I’ll show this piece of code to our developer in order to make sure if this isn’t really a ponential problem.

    My best,



    Thank you – that’s helpful.

    May I also suggest that created invoices don’t have an automatically created url to the invoice which anyone can access. I discovered there is an add-on to stop this, but the default setup would cause privacy problems – especially with the new GDPR rules which has the potential for big fines.


    Plugin Support Andrew Reva


    Yes, we have the Secure Invoices extension. Unfortunately I’m not an expert in GDPR but I think the extension doesn’t break any rule. It just allows to send a secure link to the Invoice addressee while restricting another people from viewing the invoice. So I’d say it’s not a big deal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Errors? How to resolve these?’ is closed to new replies.