Title: PHP warnings
Last modified: October 1, 2021

---

# PHP warnings

 *  Resolved [Alex Knight](https://wordpress.org/support/users/alexkwatson/)
 * (@alexkwatson)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/)
 * I am seeing some PHP warnings from Sensei at the very top of the admin area (
   all pages):
 *     ```
       Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/312442.cloudwaysapps.com/wqdpkneaga/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 192
   
       Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/312442.cloudwaysapps.com/wqdpkneaga/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 192
   
       Warning: array_column() expects parameter 1 to be array, null given in /home/312442.cloudwaysapps.com/wqdpkneaga/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236
   
       Warning: array_filter() expects parameter 1 to be array, null given in /home/312442.cloudwaysapps.com/wqdpkneaga/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/312442.cloudwaysapps.com/wqdpkneaga/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/admin/class-sensei-extensions.php on line 236
       ```
   
 * All plugins and WordPress are up to date.
 * Any ideas how I can make these warnings go away?
 * Thanks
 * Alex

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

 *  [Orange](https://wordpress.org/support/users/leegrant/)
 * (@leegrant)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14927851)
 * Same issue here
 *  [noeliaherpark](https://wordpress.org/support/users/noeliaherpark/)
 * (@noeliaherpark)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14928664)
 * Same issue, please help! I tried to switch to a default theme, but issue persists.
   I have also noticed that if I deactivate the plugin, delete it and try to activate
   it again, returns the following error:
 * Plugin could not be activated because it triggered a fatal error.
 * `Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of
   type array, bool given in /plugins/sensei-lms/includes/admin/class-sensei-extensions.
   php:192 Stack trace: #0 /plugins/sensei-lms/includes/admin/class-sensei-extensions.
   php(192): array_map(Object(Closure), false) #1 /plugins/sensei-lms/includes/admin/
   class-sensei-extensions.php(144): Sensei_Extensions->add_installed_extensions_properties(
   false) #2 /plugins/sensei-lms/includes/admin/class-sensei-wcpc-prompt.php(165):
   Sensei_Extensions->get_extensions('plugin') #3 /plugins/sensei-lms/includes/admin/
   class-sensei-wcpc-prompt.php(29): Sensei_WCPC_Prompt->get_wcpc_extension() #4/
   plugins/sensei-lms/includes/class-sensei.php(441): Sensei_WCPC_Prompt->__construct()#
   5 /plugins/sensei-lms/includes/class-sensei.php(283): Sensei_Main->initialize_global_objects()#
   6 /plugins/sensei-lms/includes/class-sensei.php(245): Sensei_Main->init() #7 /
   plugins/sensei-lms/includes/class-sensei.php(313): Sensei_Main->__construct('/
   Applications/M...', Array) #8 /plugins/sensei-lms/sensei-lms.php(97): Sensei_Main::
   instance(Array) #9 /plugins/sensei-lms/sensei-lms.php(103): Sensei() #10 /plugin.
   php(2286): include_once('/Applications/M...') #11 /plugins.php(191): plugin_sandbox_scrape('
   sensei-lms/sens...') #12 {main} thrown in /plugins/sensei-lms/includes/admin/
   class-sensei-extensions.php on line 192`
 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14929247)
 * Hi all,
 * I’ve alerted our developers to the issue. I just wanted to touch base here and
   let y’all know this has been seen and reported (and confirmed on my test site).
 * We’ll update as soon as we have more information for you.
 * Best,
    Cena`
 *  [noeliaherpark](https://wordpress.org/support/users/noeliaherpark/)
 * (@noeliaherpark)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14929320)
 * Thanks!!!
 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14930196)
 * Hi,
 * Sensei LMS 3.13.2 has just been released in response to this error. It fixed 
   an issue related to the extensions fetch.
 * The origin of the issue is a change in the Let’s Encrypt certificate:
 * [https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/](https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/)
 * So even with this release, you should fix the problem as noted below on your 
   server. You may need to reach out to your web host for help with this:
 * [https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/](https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/)
 * Best,

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

The topic ‘PHP warnings’ 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/)

## Tags

 * [letsencrypt](https://wordpress.org/support/topic-tag/letsencrypt/)

 * 5 replies
 * 4 participants
 * Last reply from: [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-warnings-119/#post-14930196)
 * Status: resolved