• Resolved Alex Knight

    (@alexkwatson)


    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

    (@leegrant)

    Same issue here

    noeliaherpark

    (@noeliaherpark)

    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

    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

    (@noeliaherpark)

    Thanks!!!

    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/

    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/

    Best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP warnings’ is closed to new replies.