• Resolved thirdmarble

    (@thirdmarble)


    I’m using this plugin to display multiple data tables on hundreds of pages. I’m getting data from a MYSQL table. When I try to display a table when the data set for a particular query is null (ie. no records returned), I get a very unappealing error message on the webpage that starts with:

    “[gdoc Error: Query produced zero results: SELECT phone_number…..]”

    If there are no records, then I want to tell the visitor that there are no records, so this is part of the design of this particular site. Is there a way to replace the default “[gdoc error…]” message with a user-friendly message like “No records found” in the default objects for all tables?

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    Hm, this isn’t something the plugin is built to do, but I do see your point. At the moment, the only thing to do is post-process the output with a filter (like the_content), or hide the shortcode’s container using CSS.

    I’ve made a note of this and will possibly implement it in a future version, if I have the time/resources to do so. Thanks for the suggestion.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide error message when returning a null data set.’ is closed to new replies.