Title: Creating 404 Page for Virtual Posts
Last modified: July 10, 2020

---

# Creating 404 Page for Virtual Posts

 *  [matt0708](https://wordpress.org/support/users/matt0708/)
 * (@matt0708)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/creating-404-page-for-virtual-posts/)
 * First off, I’d like to thank you for the awesome plugin. The combination of Airtable
   and Airpress really opens up a ton of possibilities, especially with the Virtual
   Posts feature.
 * Our use case is effectively having users search for a report number and retreiving
   the information from Airtable. They search for the report number, and are redirected
   to domain.com/report/_number_ where we have the report information listed. It
   works perfectly, except for when there is no report for the number they’ve searched
   in which case they receive an error:
 *     ```
       Warning: require(): Filename cannot be empty in public/wp-content/plugins/airpress/lib/chetmac/AirpressVirtualPosts.php on line 401
   
       Fatal error: require(): Failed opening required '' (include_path='.:/opt/sp/php7.4/lib/php') in public/wp-content/plugins/airpress/lib/chetmac/AirpressVirtualPosts.php on line 401
       ```
   
 * Is there a way to generate a 404 error for pages that follow the same URL structure(
   domain.com/report/xx), but don’t have a valid report number listed in Airtable?
 * Any help is appreciated. Thanks!

Viewing 1 replies (of 1 total)

 *  [patrickhilly](https://wordpress.org/support/users/patrickhilly/)
 * (@patrickhilly)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/creating-404-page-for-virtual-posts/#post-13137740)
 * I have the same issue

Viewing 1 replies (of 1 total)

The topic ‘Creating 404 Page for Virtual Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/airpress_c9d28c.svg)
 * [Airpress](https://wordpress.org/plugins/airpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/airpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/airpress/)
 * [Active Topics](https://wordpress.org/support/plugin/airpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/airpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/airpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [patrickhilly](https://wordpress.org/support/users/patrickhilly/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/creating-404-page-for-virtual-posts/#post-13137740)
 * Status: not resolved