• Resolved loxx927

    (@loxx927)


    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 yeisonbp

    (@yeisonbp)

    Hi @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/ticket-details-page-template/

    Regards.

    Thread Starter loxx927

    (@loxx927)

    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

    (@loxx927)

    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.