Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

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,692
    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

    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