• Resolved josevilar

    (@josevilar)


    Plugin version 2.2.6 the operator -IN gives me the following error:
    ————————————————————————————
    PHP Fatal error: Uncaught Error: Call to undefined function wp_cassify\maybe_serialize() in /var/www//public_html/wp-content/plugins/wp-cassify/classes/wp_cassify_rule_solver.php:103
    Stack trace:
    #0 /var//public_html/wp-content/plugins/wp-cassify/classes/wp_cassify_rule_solver.php(484): wp_cassify\wp_cassify_rule_solver->match_cas_variable(‘CAS{employeeTyp…’, ‘/CAS{([^}]+)}/i…’)
    #1 /var//public_html/wp-content/plugins/wp-cassify/test.php(44): wp_cassify\wp_cassify_rule_solver->solve(‘(CAS{employeeTy…’)
    #2 {main}
    thrown in /var/www//public_html/wp-content/plugins/wp-cassify/classes/wp_cassify_rule_solver.php on line 103
    ———————————————————————————–
    Error in multi-evaluated fields. I don’t get the error

    • This topic was modified 3 years, 5 months ago by josevilar.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I’m sorry.

    I will patch the plugin in few days because i’m busy now. I will patch in new release on Friday.

    But i have a quick solution for you :

    Replace maybe_serialize function in wp_cassify_rule_solver.php by “serialize” like this (line 103):

    wp_cassify_rule_operand = maybe_serialize( $this->cas_user_datas[ $matches_cas_variable_groups[1]

    Best regards.`

    Thread Starter josevilar

    (@josevilar)

    Hi,

    Thank you for your help

    I think the operator -IN does not understand the serialized data. If the data is serialized it does not work.

    Best regards

    Hi,

    Thanks for your feedback. Please upgrade to last release 2.2.7. Unless I’m mistaken, the bug should be solved.

    Best regards.

    Thread Starter josevilar

    (@josevilar)

    It works perfectly!
    Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error Operator -IN’ is closed to new replies.