Title: PHP Error with Storefront Theme
Last modified: March 30, 2020

---

# PHP Error with Storefront Theme

 *  Resolved [cafelog](https://wordpress.org/support/users/cafelog/)
 * (@cafelog)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-storefront-theme/)
 * Hello.
 * I just have installed Sensei LMS (Version 2.4.0) with Storefront theme. I’ve 
   created my first course and lesson and I got this PHP error on the lesson page:
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /app/public/wp-includes/post-template.php on line 316
 * I do not have installed any other plugin yet. If I change to Twenty Twenty theme
   the error disappears.
 * It seems very odd to me since the Storefront theme is from Automattic as well.
 * Regards
    Jose

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-with-storefront-theme/#post-12623213)
 * Hi Jose
 * We’re aware of this issue, and we’re hoping to get it fixed in the next release.
   You can find all the details here if you’re interested:
    [https://github.com/Automattic/sensei/issues/2772](https://github.com/Automattic/sensei/issues/2772)
 * In the meantime you may want to suppress PHP warnings so they aren’t displayed
   on your site: [https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/](https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/)
 * Hope that helps!
 *  Thread Starter [cafelog](https://wordpress.org/support/users/cafelog/)
 * (@cafelog)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-with-storefront-theme/#post-12623297)
 * Hi Dan. Sure, it has been helpful for me. Thank you so much for your support.
   Best Regards
    Jose

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error with Storefront Theme’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cafelog](https://wordpress.org/support/users/cafelog/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-with-storefront-theme/#post-12623297)
 * Status: resolved