• ResolvedPlugin Author vbonamy

    (@vbonamy)


    Hello,

    wp-cassify 2.2 is working very well, but we have some warnings in our httpd error logs, cf below.

    Do you think that you could fix this warnings ?

    Thank you,
    Vincent.

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/wp-content/plugins/wp-cassify/classes/wp_cassify_rule_solver.php on line 299

    PHP Warning: hash_equals(): Expected known_string to be a string, boolean given in /var/www/wp-content/plugins/wp-cassify/classes/wp_cassify_utils.php on line 547

    PHP Warning: session_start(): Cannot start session when headers already sent in /var/www/wp-content/plugins/wp-cassify/classes/wp_cassify_plugin.php on line 201

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vbonamy

    (@vbonamy)

    Hello,

    I modified line 299 of /var/www/wp-content/plugins/wp-cassify/classes/wp_cassify_rule_solver.php :
    if ( ( is_array( $this->wp_cassify_rule_solver_item_array ) ) && ( count( $this->wp_cassify_rule_solver_item_array > 0 ) ) ) {
    with
    if ( ( is_array( $this->wp_cassify_rule_solver_item_array ) ) && ( count( $this->wp_cassify_rule_solver_item_array) > 0 ) ) {

    And it’s OK.

    Could you provide this modification in the next release ?

    Thank you.
    Vincent.

    Hi,

    I’ve integrated your fix in last release 2.2.1.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warnings – php7 – wordpress 5.3.2’ is closed to new replies.