Okay
  Public Ticket #3386131
error on site after php 8 upgrade
Closed

Comments

  • Daniel started the conversation

    [05-Jun-2023 17:39:03 UTC] PHP Warning: foreach() argument must be of type array|object, bool given in /var/web/site/public_html/wp-content/plugins/wpdatatables/lib/greenlion/php-sql-parser/src/PHPSQLParser/builders/SubTreeBuilder.php on line 100


    i see this error message over and over

  •  1,848
    Miloš replied

    Hi, Daniel.

    Our plugin is being tested on PHP version 8.1.13 on our Development Testing, and we can confirm that the plugin is optimized up to that version, there are no functionality issues,

    just some warnings and notices are possible to happen if you have WP DEBUG enabled.

    But if you disable WP DEBUG for a production version of a site, you should not have any issues in regards to the functionality of the plugin.

    -

    That being said, there are some other plugins that are still not ready for PHP 8 or higher,

    so depending on the combination of other plugins you might be using on the site,

    we advise caution because it is possible to get a conflict from other plugins if they are still not optimized for said versions.

    It is always best to make a backup of the site before updating the PHP version ( For example we use the Duplicator Plugin for backups);

    We will certainly be here to help if you encounter any issues.

    Let me know if that makes sense and if you have any questions. 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