Title: Error including list.php file
Last modified: December 28, 2020

---

# Error including list.php file

 *  Resolved [loxx927](https://wordpress.org/support/users/loxx927/)
 * (@loxx927)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-including-list-php-file/)
 * Hi, I am attempting to include the contents of the list.php page into another
   page.
 * I am using the php everywhere plugin to include the list.php page (from the plugin
   themes/default directory) into another page, and it works just fine with the 
   submission page, (submission.php) but for some reason, using the include statement
   with the list page, gives me a 500 error.
 * So I’m stumped as to why this works:
    include (‘wp-content/plugins/awesome-support/
   themes/default/submission.php’);
 * …but this does not
    include (‘wp-content/plugins/awesome-support/themes/default/
   list.php’);
 * It just gives me a 500 error when viewing the page in the browser. Is there something
   about the list page that prevents it from being included into another page?
 * thanks!

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

 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-including-list-php-file/#post-13846508)
 * Hi [@loxx927](https://wordpress.org/support/users/loxx927/),
 * Are you trying to template all the Awesome Support pages? If so, please check
   this documentation:
 * – [https://getawesomesupport.com/documentation/awesome-support/templating/](https://getawesomesupport.com/documentation/awesome-support/templating/)
   –
   [https://getawesomesupport.com/documentation/awesome-support/ticket-details-page-template/](https://getawesomesupport.com/documentation/awesome-support/ticket-details-page-template/)
 * Regards.
 *  Thread Starter [loxx927](https://wordpress.org/support/users/loxx927/)
 * (@loxx927)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-including-list-php-file/#post-13846649)
 * Well I’m not trying to make changes to the existing templates, I’m just trying
   to include the existing template pages (list.php and submission.php) into my 
   portal page.
 * This seems like it should be a slam dunk kind of thing, but it’s turning out 
   to be anything but.
 * I’ve looked at those pages in the docs, and those doc pages reference making 
   changes to the existing templates, which I’m not trying to do, I’m just trying
   to include the existing template pages into another page, and the submission 
   page (submission.php) works fine, but the list.php page (to show the users existing
   tickets) gives me a 500 error.
 * It must be some sort of php issue in the list.php page, I just don’t know where
   to start looking for the problem.
 * Hope that make sense.
    Thanks!
 *  Thread Starter [loxx927](https://wordpress.org/support/users/loxx927/)
 * (@loxx927)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/error-including-list-php-file/#post-13858708)
 * Here’s a code example to help clarify:
 * on my portal page, I have added the following php code (using an add php snippet
   code plugin)
 * And this does not work (generates 500 error when viewing the page in a browser),
   
   <div id=”support-ticket-display”> < ?php include( ‘wp-content/plugins/awesome-
   support/themes/default/list.php’ ); ?> </div>
 * BUT this does work:
    <div id=”submit-ticket”> <?php include( ‘wp-content/plugins/
   awesome-support/themes/default/submission.php’ ); ?> </div>
 * The submission page includes just fine and renders properly. The list page does
   not. I’m stumped. Seems like they both should render fine.
 * Any suggestions would be appreciated.
    Thanks!

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

The topic ‘Error including list.php file’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

## Tags

 * [plugin templates](https://wordpress.org/support/topic-tag/plugin-templates/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 3 replies
 * 2 participants
 * Last reply from: [loxx927](https://wordpress.org/support/users/loxx927/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/error-including-list-php-file/#post-13858708)
 * Status: resolved