Title: ERROR: Invalid mla gallery date_query = &#8216;false&#8217;
Last modified: May 18, 2020

---

# ERROR: Invalid mla gallery date_query = ‘false’

 *  Resolved [umairzept](https://wordpress.org/support/users/umairzept/)
 * (@umairzept)
 * [6 years ago](https://wordpress.org/support/topic/error-invalid-mla-gallery-date_query-false/)
 * I am using mla gallery plguin in a wordpress site. I am trying to get pdf files
   as follows
 * [mla_gallery]
    date_query = array(array( ‘after’ =>’1 year ago’,’before’ => ‘
   today’ )) post_parent=all post_mime_type=application/pdf mla_debug=true [/mla_gallery]
   As you can see I want to fetch all those pdf files that were added in Media last
   year. Eventually I will change it to get value of dates like before 2020-05-18
   and after 2020-05-01 (18th May 2020) format but I am getting error
 * ERROR: Invalid mla_gallery date_query = ‘false’
 * I have set Php reporting 0x7FFF and MLA Reporting to 128 but only get the above
   error and nothing else. How do I fix this error?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [umairzept](https://wordpress.org/support/users/umairzept/)
 * (@umairzept)
 * [6 years ago](https://wordpress.org/support/topic/error-invalid-mla-gallery-date_query-false/#post-12851428)
 * adding correct date_query parameters solved the issue for me. I was missing inverted
   commas
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [6 years ago](https://wordpress.org/support/topic/error-invalid-mla-gallery-date_query-false/#post-12853871)
 * Thanks for your question and for digging in to solve the problem yourself.
 * MLA uses a PHP function to evaluate taxonomy, meta and date queries. The error
   information returned from the PHP function is very limited and thus the message
   you see isn’t very helpful. As you discovered, careful inspection of the query
   parameter is the best solution. Copying and pasting queries from support forum
   topics is tricky because the source often includes “smart quotes” and other formatting
   characters.
 * Thanks again for finding your own solution and for your interest in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ERROR: Invalid mla gallery date_query = ‘false’’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/error-invalid-mla-gallery-date_query-false/#post-12853871)
 * Status: resolved