• Resolved oakleaf101

    (@oakleaf101)


    which version works on wordpress 4.9?
    There is no mention of this in the changelog on github!!
    ( ClassicPress forked form WP 4.9, and since CP gives a lot more flexibility and user friendliness, quite a bunch of us prefer it, and won’t use WP )
    Thanks much…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    I checked the git “blame” on GitHub and it shows that version 2.4.4 was the last version to have the “requires” field set at 4.9. That said, it’s entirely possible the latest version would run on CP. There are times I do bump the minimum version because of a newer function that I’m using, but more often I’m bumping it in order to keep our testing setup simplified.

    I don’t recall anything specific in Imsanity that would require WP 5+, so I’d give the latest version a try and see what happens! If you find anything not working, feel free to raise an issue on GitHub and I’ll see if there’s a way to make it work.

    Thread Starter oakleaf101

    (@oakleaf101)

    Hi, thanks for the response. I already downloaded and tried the various versions. The last version of imsanity that works is 2.60 Versions beyond that gave php errors:
    Fatal error: Call to undefined function is_iterable() in /srv/users/serverpilot/apps/%site-name%/public/wp-content/plugins/imsanity/libs/utils.php on line 172
    Which is:
    if ( is_iterable( $gd_support ) ) {
    if ( ( ! empty( $gd_support[‘JPEG Support’] ) || ! empty( $gd_support[‘JPG Support’] ) ) && ! empty( $gd_support[‘PNG Support’] ) ) {
    return true;
    }
    }

    Plugin Author nosilver4u

    (@nosilver4u)

    That’s more than a WP issue, that’s a PHP issue as well. The is_iterable() function was added ages ago in PHP 7.1. WP 4.9.6 added a polyfill for it shortly after, but that would seem to mean you’re either on PHP 7.0 or 5.6, which should be upgraded ASAP to maintain security.

    EWWW IO has it’s own “iterable” function that is used throughout, so you won’t see the same thing there.

    Plugin Author nosilver4u

    (@nosilver4u)

    I did a few quick tests, both Imsanity and EWWW IO run just fine on ClassicPress with PHP 7.4. Of course, as you likely found already, you need to edit the “requires” headers in the main plugin file and the readme.txt or ClassicPress won’t install them.

    Thread Starter oakleaf101

    (@oakleaf101)

    ok, thank you very much for the info!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘which version works on wordpress 4.9’ is closed to new replies.