Can anyone help identify to source of a server 500

  • We recently launched a Perch Shop, and have encountered a couple of outages due to server error 500.


    The log files from the mosts recent outage look like (I've replaced the domain with sitedomain.com for privacy):


    sitedomain.com [Sat Nov 21 17:03:42 2020] [error] [client 109.158.176.47:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516

    sitedomain.com [Sat Nov 21 17:04:46 2020] [error] [client 109.158.176.47:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516

    sitedomain.com [Sat Nov 21 17:06:33 2020] [error] [client 109.158.176.47:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516

    sitedomain.com [Sat Nov 21 17:07:28 2020] [error] [client 109.158.176.47:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516

    sitedomain.com [Sun Nov 22 03:49:59 2020] [error] [client 114.119.144.62:0] End of script output before headers: start.php

    sitedomain.com [Sun Nov 22 12:30:21 2020] [error] [client 63.143.42.250:0] End of script output before headers: start.php

    sitedomain.com [Sun Nov 22 12:30:22 2020] [error] [client 63.143.42.250:0] End of script output before headers: start.php

    sitedomain.com [Sun Nov 22 23:18:54 2020] [error] [client 87.113.40.112:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516

    sitedomain.com [Sun Nov 22 23:18:57 2020] [error] [client 87.113.40.112:0] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/sitedomain.com/public_html/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 516


    Could these be causing the issue?

  • These are just warnings, so I doubt this would be causing a 500 error. Most likely it's a server/php configuration issue. Might need to increase some limits in your php.ini or could be down to incorrect URL rewrites.


    Is there a specific page it's happening on?