• Resolved Nick

    (@kercommunications)


    After update to 5.4, site crashes with critical error.
    Error log shows several lines of:
    “PHP Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.Migrations.php on line 822”

    We’re on php 8.1. Tried downgrading to php 8.0 and 7.4. Error persists, though under 7.4 the site is accessible.

    I have rolled back to previous version of Jetpack CRM.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Nick

    (@kercommunications)

    More info from the WordPress critical error email:

    error Details
    
    An error of type E_ERROR was caused in line 822 of the file
    /public_html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.Migrations.php.
    Error message: Uncaught TypeError: count(): Argument #1 ($value) must
    be of type Countable|array, string given in
    /public_html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.Migrations.php:822
    Stack trace:
    
    0 /public_html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.Migrations.php(237):
    zeroBSCRM_migration_54()
    
    1 /public_html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.Core.php(1747):
    zeroBSCRM_migrations_run()
    
    2 /public_html/wp-includes/class-wp-hook.php(307):
    ZeroBSCRM->init()
    
    3 /public_html/wp-includes/class-wp-hook.php(331):
    WP_Hook->apply_filters()
    
    4 /public_html/wp-includes/plugin.php(476):
    WP_Hook->do_action()
    
    5 /public_html/wp-settings.php(598): do_action()
    6 /public_html/wp-config.php(94):
    require_once('/home/vco8y94y3...')
    
    7 /public_html/wp-load.php(50):
    require_once('/home/vco8y94y3...')
    
    8 /public_html/wp-admin/admin-ajax.php(22):
    require_once('/home/vco8y94y3...')
    
    9 {main}
    thrown
    Plugin Author bradshawtm

    (@bradshawtm)

    Thanks for the report! We’ve got a patch on the way for this that should be out in the next hour or so; we’ll update you once it’s released.

    Alba (a11n)

    (@ctdealba)

    Hi @kercommunications

    Jetpack CRM version 5.4 has been released with a patch for the issue you reported above. Please update the plugin and let us know if you bump into any other issue.

    Best,
    Alba

    Plugin Contributor woodyhayday

    (@woodyhayday)

    Hi @kercommunications,

    I’m going to close this issue, please do let us know if for some reason 5.4 did not resolve this for you, we’ll be happy to help.

    All the best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error after update to 5.4’ is closed to new replies.