• Hi!

    Thanks for your plugin!

    I’ve tested all my plugins with this PHP linter:
    https://ww.wp.xz.cn/plugins/php-compatibility-checker/

    Unfortunately I found a problem with your plugin:

    FILE: …/plugins/custom-field-template/custom-field-template.php
    —————————————————————————————————————————————–
    FOUND 2 ERRORS AFFECTING 2 LINES
    —————————————————————————————————————————————–
    3745 | ERROR | preg_replace() – /e modifier is forbidden since PHP 7.0
    3936 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
    —————————————————————————————————————————————–

    Would be great if you can fix this!

    All the best,
    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • This will be a big problem for us soon if these errors are not resolved. I second this request!

    Ditto to the above. Is anyone able to confirm this is definitely a blocker to moving to PHP7 and not a false positive?

    An update from the plugin author as to whether this will be fixed would be very much appreciated.

    Thanks!

    Just a quick update… I have migrated a few sites (with Custom Field Template) over to PHP7 today, after testing on localhost. They seem to be fine.

    Looking at the code, the errors seem to relate to the ‘cftsearch’ shortcode function. I’m not using this at all, but my hunch is that if you were, that’s when you’d run into problems.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘compatibility with PHP 7?’ is closed to new replies.