Support » Plugin: TablePress » PHP warning about Non-string needles

  • 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 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@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

    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 TobiasBg

    (@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

    OK, thanks for getting back to me!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.