PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Error when modifying print template

  1. I am trying to modify the way the entry is displayed for a particular form. So I made a new template to replace entry_detail.php so I can modify the code. Entry-detail is called with require_once() in print-entry.php on line 62.

    I replaced print_entry.php with newpatient.php and entry_detail.php with newpatient_detail.php.
    I have not started changing any of the code in these other than the "require_once" function.

    When I change the file being called to the new template file, I get this error message:

    Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in
    /home/verba3/public_html/wp-content/themes/kidweaver/newpatient.php on line 62
    Warning: require_once(http://throughwoods.com/wp-content/themes/kidweaver/newpatient_detail.php) [function.require-once]:
    failed to open stream: no suitable wrapper could be found in /home/verba3/public_html/wpcontent/themes/kidweaver/newpatient.php on line 62
    Fatal error: require_once() [function.require]: Failed opening required 'http://throughwoods.com/wpcontent/themes/kidweaver/newpatient_detail.php' (include_path='.:/usr/lib/php:/home/verba3/public_html/wpcontent/plugins/mailchimp-widget/lib') in /home/verba3/public_html/wp-content/themes/kidweaver/newpatient.php on line 62

    My site is http://throughwoods.com and I am using the latest version of Gravity Forms.

    Hopefully you can spot my error or let me know why this would be a problem.

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  2. Nevermind, I had to enter
    <?php require_once(dirname(__FILE__) . "/newpatient_detail.php"); ?>

    That fixed it.

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  3. Cool, glad you got it sorted. Thanks for letting us know.

    Posted 12 years ago on Friday May 25, 2012 | Permalink

This topic has been resolved and has been closed to new replies.