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 #3534447
Error at top of page
Closed

Comments

  • Chris started the conversation

    Warning: Invalid argument supplied for foreach() in /home/customer/www/bellavistapoa.com/public_html/wp-content/plugins/wpdatatables/lib/greenlion/php-sql-parser/src/PHPSQLParser/builders/WhereBracketExpressionBuilder.php on line 106

    The cause of the error is from SQL script but it works.  The CURRENT_DATE() is the cause.

    SELECT wp_wpdatatable_60.`class`,
           wp_wpdatatable_60.`daysoffered`,
           wp_wpdatatable_60.`time`,
           wp_wpdatatable_60.`location`
    FROM wp_wpdatatable_60
    WHERE 1=1
       AND wp_wpdatatable_60.dateend >= CURRENT_DATE()
       AND wp_wpdatatable_60.datestart <= CURRENT_DATE()

       AND wp_wpdatatable_60.`suspend` = 'Active' 
       AND wp_wpdatatable_60.`class` = 'Boom!'

  •  1,847
    Miloš replied


    Hi Chris,

    I did not find the error on your Page - but i am able to isolate it when i make a new SQL Table with the Query you provided - I can confirm the table works in both back and front-end ( i made a new Page also, but i now deleted everything after the test);

    And i see the PHP Warning you mentioned there.

    9171279544.png

    2753784354.png


    4036420778.png

    I will pass these deprecated notices you found to our Developers,

    they will check if they already fixed them for the next Update, or if not, they will create a task to fix it in one of the future updates.

    But these should not affect any functionality.

    Right now, we are testing the Plugin for all PHP Versions, from 7.4 to 8.2  and we can confirm that there are no functionality issues,

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

    ( Of course, for production version of websites, the WP DEBUG should be disabled);

    -

    In regards to PHP 8.2, our developers will iron everything out in the next couple of updates;

    -

    So please check if you have WP_DEBUG enabled on your server,

    and if so - can you please disable it and check if these deprecated messages disappear?


    If that is the case, you should not have any functionality issues with our Plugin,

    for the live/production version of the Site please keep the WP_DEBUG disabled,

    and our devs are working to eliminate all those PHP warnings soon.


    Let us know if you have any further questions on that.

    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