Hey everyone!

With the holiday season upon us, we want to share our upcoming working hours:

After that, we’ll return to our regular schedule and assist you as quickly as possible.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.

Thanks a bunch for your understanding and support!

Warm regards and happy holidays!

TMS

Okay
  Public Ticket #3454340
PHP 8.1 Warning on v5.8.1
Closed

Comments

  •  1
    Jenna Klinner started the conversation

    Activating wpDataTables v5.8.1 causes the following warnings in PHP 8.1:

    Deprecated: strpos(): Passing null to parameter #1 (closed) (There was an error rendering this math blocksubject) of type array|string is deprecated in /app/wp-includes/functions.php on line 2182 Deprecated: strip_tags(): Passing null to parameter #1 (closed) ($string) of type string is deprecated in /app/wp-admin/admin-header.php on line 36

    This was observed in activating the plugin both in a standard WordPress twentytwentythree theme and UW Theme. 

    Can you let me know if this is being resolved soon? 

  •  1,847
    Miloš replied

    Hello,

    we apologise for this inconvenience.

    Our developers are aware of this PHP warning and they made a fix.

    Our QA Team is just conducting further testing to ensure that the fix does not have any other negative effects before our devs implement this in the Plugin's core.

    It should be added within the next couple of Updates,

    but we cant guarantee an exact ETA yet.

    Best will be to keep a lookout on our wpDataTables changeLog.

    It will be stated there during updates which bug fixes have been implemented at each update.

    -

    For the time being, here is what you can do to fix this.

    Please find this PHP file inside our plugin files,

    you can access it via FTP on your Hosting server, or via the Hosting's File Manager, in this path :

    ..\wp-content\plugins\wpdatatables\source\class.wdttools.php

    on line 1357 find this :

    return $body && isset($body->info) ? unserialize($body->info, ["allowed_classes" => false]) : false;
    
    5581664618.png

    replace it with this :

    return $body && isset($body->info) ? unserialize($body->info, ["allowed_classes" => [stdClass::class]]) : false;
    
    8239343457.png

    and this should remove the PHP warnings.

    1498081130.png

    Let us know how it goes.

    And just to note, if our developers don't add the final version of this fix in the next Update,

    you would have to repeat this code edit again when you update the Plugin.

    Let us know if you have any questions, we will be here if any assistance is needed.

    If you need us to edit this code for you,

    we will need access to your WP-Admin, please send me URL with Admin credentials,

    and FTP credentials.

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here because this ticket is private and nobody can see them except us.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables