• Resolved Mark Howells-Mead

    (@markhowellsmead)


    When developing a site in which this plugin is in use, the following PHP warning blocks a number of functions in WordPress Admin. This makes it impossible to use during website development and content production.

    ( ! ) Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /app/public/wp-content/plugins/tablepress-responsive-tables/libraries/plugin-update-checker.php on line 851
    

    I see that the issue was raised in early summer, but the problem still occurs.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I have finally found the cause for this, it’s a problem in the update checker for the Responsive Tables Extension. This will be fixed in the next version.
    In the meantime, just replace the line in question (

    $cachedResult = (strpos($pluginPath, $muPluginDir) === 0);
    

    ) with

    $cachedResult = false;
    

    Regards,
    Tobias

    Thread Starter Mark Howells-Mead

    (@markhowellsmead)

    Thanks @tobiasbg! Any idea when the next update will be released? If it’s coming shortly, I’ll wait until then, as we’re just about to push a release and so don’t want to break anything.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Mark,

    it will probably still take a bit, as I still want to add other changes. However, as I’m currently on parental leave, I don’t have enough time to work on this too quickly.
    For now, I therefore recommend to make that quick change in the file. It’s pretty straightforward and will not influence the Extension’s behavior.

    Regards,
    Tobias

    Thread Starter Mark Howells-Mead

    (@markhowellsmead)

    OK, thanks for getting back to me!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ??

    Best wishes,
    Tobias

    Thread Starter Mark Howells-Mead

    (@markhowellsmead)

    Any news on this update, @tobiasbg?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you should actually be seeing update notifications for the Extensions that were affected… I have released new versions just after Christmas.
    Alternatively, can you maybe double-check the version numbers with those from the Extension’s pages at https://tablepress.org/extensions/ ?

    Regards,
    Tobias

    Thread Starter Mark Howells-Mead

    (@markhowellsmead)

    Great, thanks.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! ??

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP warning about Non-string needles’ is closed to new replies.