We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #3016490
Column's issue
Closed

Comments

  • Roman started the conversation

    Hello, i had sql query and column additionalterms  https://prnt.sc/nPca3i1B39py in it ( text format )

    after updating to the last version ( last Thursday or Friday) sql query which worked before , for now has error https://prnt.sc/dDUUtNSNa6KY

    as you can see it automatically changed additionalterms  to additionms in sql query for some reason, i don't know why.

    can you advise here?

    in previous version it works good.


    sql query , if needed:

    SELECT 
        t.`spacname`,
        COALESCE( t.trustsymbolannounced, '') as 'Status',
        t.`common`,
        t.trust10qkorproxyasofdate,
        t.trustqkcashtrust as '10-Q/K Cash in Trust',

       t.additionalterms,

        t.completedsymbolcommon,
        COALESCE(t.rdmptcurrentshareprice, 0) as 'current_share_price'
    FROM wp_wpdatatable_1  t
    WHERE ( t.spactype = "SEARCHING" OR t.spactype = "Announced" ) AND ( t.spactype <> 'Registration Withdrawal' )
    ORDER BY t.trustsymbolannounced DESC, t.spacname ASC, t.ipodate ASC;

  •  1,894
    Miloš replied

    Hi, Roman

    Sorry for the inconvenience. Our developers will implement a fix as quickly as possible.

    -

    In the last update, the devs implemented improved sanitizing data from all sources in the plugin and one of them are SQL queries.

    This will be fixed in the next update which will be very soon.

    Until that, if you can please update this function 

    wdtSanitizeQuery

    in file wp-content/plugins/wpdatatables/controllers/wdt_functions.php around line 892 you will find this

    function wdtSanitizeQuery($query) {  
      $query = str_replace('DELETE', '', $query);   
     $query = str_replace('delete', '', $query);  
      $query = str_replace('DROP', '', $query);  
      $query = str_replace('drop', '', $query);   
     $query = str_replace('INSERT', '', $query);  
      $query = str_replace('insert', '', $query); 
       $query = str_replace('UPDATE', '', $query); 
       $query = str_replace('update', '', $query);  
      $query = str_replace('TRUNCATE', '', $query); 
       $query = str_replace('truncate', '', $query); 
       $query = str_replace('CREATE', '', $query);    
    $query = str_replace('create', '', $query);   
     $query = str_replace('ALTER', '', $query);   
     $query = str_replace('alter', '', $query); 
       $query = stripslashes($query);  
      $query = apply_filters('wpdt_sanitize_query',$query);  
      return $query;
    } 

    and you will need to replace it with this

    function wdtSanitizeQuery($query) {   
     $query = str_replace('DELETE ', '', $query); 
       $query = str_replace('DELETE', '', $query); 
       $query = str_replace('delete ', '', $query);  
      $query = str_replace('DROP ', '', $query);  
      $query = str_replace('DROP', '', $query); 
       $query = str_replace('drop ', '', $query); 
       $query = str_replace('INSERT ', '', $query); 
       $query = str_replace('INSERT', '', $query);   
     $query = str_replace('insert ', '', $query); 
       $query = str_replace('UPDATE ', '', $query); 
       $query = str_replace('UPDATE', '', $query);  
      $query = str_replace('update ', '', $query);  
      $query = str_replace('TRUNCATE ', '', $query); 
       $query = str_replace('TRUNCATE', '', $query);  
      $query = str_replace('truncate ', '', $query); 
       $query = str_replace('CREATE ', '', $query);   
     $query = str_replace('CREATE', '', $query);  
      $query = str_replace('create ', '', $query); 
       $query = str_replace('ALTER ', '', $query); 
       $query = str_replace('ALTER', '', $query);   
     $query = str_replace('alter ', '', $query); 
       $query = stripslashes($query);  
      $query = apply_filters('wpdt_sanitize_query',$query);  
      return $query;}

    After that insert your requested query and save it and check if everything is OK.

    Sorry for the inconvenience once more, and let me know how it goes.

    Best regards.

    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

  • Roman replied

    ok, will wait update 

  •  1,894
    Miloš replied

    Hey, Roman

    We have released the update today. Can you please update the plugin and see, it should be fixed?

    Please let me know if you need help. 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

  • Roman replied

    hello, yes, i checked and it works now, you can close this ticket

  •  1,894
    Miloš replied

    Hey, Roman

    I am delighted to hear that this has been resolved. Thank you for letting us know.
    Anything else that we could assist with, don't hesitate to create new tickets.

    Have a great day!

    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