This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

PHP 5.6 Ajax Search Pro error

Home Forums Product Support Forums Ajax Search Pro for WordPress Support PHP 5.6 Ajax Search Pro error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12378
    kensacreativekensacreative
    Participant

    Hello,
    I’m running PHP 5.6 Compatibility test and its failing with an error (see below) . Can you please look into this and advise how this can be fixed ASAP. thx

    FILE: /nas/content/staging/skillshub/wp-content/plugins/ajax-search-pro/ajax-search-pro.php
    ——————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————-
    24 | ERROR | Constant arrays using define are not allowed in PHP 5.6 or earlier
    ——————————————————————————————-

    #12381
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Looks like the compatibility checker you are using reports a false positive here. This error does not exists, it thinks that the constant value on that line is defined as an array, when it’s actually not. The plugin was tested from PHP 5.1.4 to PHP 7, you can safely use it without any error messages. This warning is incorrect.

    Please note that compatibility checkers does not actually execute the code to check for errors, they just look for patterns, therefore produce many false positives: https://github.com/wpengine/phpcompat/wiki/Results

    #12392
    kensacreativekensacreative
    Participant

    Thanks Ernest!

    #12394
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘PHP 5.6 Ajax Search Pro error’ is closed to new replies.