Results 1 to 8 of 8

Thread: Templates can't find them so gives error

  1. #1
    Join Date
    Jul 2007
    Posts
    6

    Default Templates can't find them so gives error

    How Set up

    Template url http://mywebsite.com/holding

    is put into $TEMPLATEURL below:


    $TEMPLATEURL = "http://mywebsite.com/holding"; // default; no template URL


    On the mail to form it's set up like this:

    <input type="hidden" name="good_url" value="thankyou.html" />

    Of course if I put the holding/thankyou.html it will work and goes to the page, but the info the person entered is not listed. I have it set up on page to show. (Useing downloadable sample to set up and get working first)

    It will not work, error can't find.

    Where is my error setting up thank-you page template?

    If I put full link in browser it takes it to the page fine.
    http://mywebsite.com/holding/thankyou.html

    Problem is it doesn't seem to know about the template.

    I've tried the slash befor and after in the script and on the mail to form and still no go.

    Thanks

    Jim

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Templates can't find them so gives error

    ur problem is deeper than it appears

    Of course if I put the holding/thankyou.html it will work and goes to the page
    no "of course" about it...

    $TEMPLATEURL = "http://mywebsite.com/holding"; // default; no template URL


    On the mail to form it's set up like this:

    <input type="hidden" name="good_url" value="thankyou.html" />
    if the URL for the template really is http://mywebsite.com/holding/thankyou.html

    then the above settings are absolutely right and formmail doesnt make mistakes about slashes

    so the info ur providing is contradictry which means something weird is happening on ur server

  3. #3
    Join Date
    Jul 2007
    Posts
    6

    Default Re: Templates can't find them so gives error

    Thanks crabtree for your help.

    What do you and others suggest I do to get templates to work when
    it's set how they should?

    Thanks.

    Jim

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Templates can't find them so gives error

    templates work fine if things are setup right

    ur setup looks right, so i guess theres something weird going on

    sometimes servers dont like php scripts opening URLs so u could switch to useing a file path with $TEMPLATEDIR

    u should use $TEMPLATEDIR unless u really need to use $TEMPLATEURL (u need to understand the difference, i guess - see http://www.tectite.com/fmdoc/templateurl.php)

    if u cant use $TEMPLATEDIR i recommend u get Russ-the-guru to sort out wots going on - for that u need to subscribe

  5. #5
    Join Date
    Jul 2007
    Posts
    6

    Default Re: Templates can't find them so gives error

    Thanks crabtree.

    Set up $TEMPLATEDIR and still doesn't seem to know where to go
    as it errors saying Not Found

    The requested URL /thankyou.html was not found on this server.

    <input type="hidden" name="good_url" value="thankyou.html" />

    Set up $TEMPLATEDIR
    From FormMail alert i used DocumentRoot + template directory holding.

    /hsphere/local/home/another/mydomain.com/holding

    Subscribe? Please explain more.

    Thanks.

    Jim



  6. #6
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Templates can't find them so gives error

    Quote Originally Posted by Jimmac
    The requested URL /thankyou.html was not found on this server.

    <input type="hidden" name="good_url" value="thankyou.html" />

    Set up $TEMPLATEDIR
    From FormMail alert i used DocumentRoot + template directory holding.

    /hsphere/local/home/another/mydomain.com/holding
    without http:// right? if not, pls read the doco for $TEMPLATEDIR....thats what doco is there for

    Quote Originally Posted by Jimmac

    Subscribe? Please explain more.
    http://www.tectite.com/vbforums/announcement.php?f=12


  7. #7
    Join Date
    Jul 2007
    Posts
    6

    Default Re: Templates can't find them so gives error

    Hi crabtree and script helpers

    without http:// right?
    Yes.

    pls read the doco for $TEMPLATEDIR....thats what doco is there for
    That's what i've done over and over and over and over and over and over and over and over again.

    Why I put it this way as I believe this is how it's to be done:

    /* Help: http://www.tectite.com/fmdoc/templatedir.php */
    $TEMPLATEDIR = "/hsphere/local/home/another/mydomain.com/holding"; // directory for template files; empty string
    // if you don't have any templates


    on the mail to form page it is set up as always like this:

    <input type="hidden" name="good_url" value="thankyou.html" />

    When form filled out and clicked to send gives ERORR can't find thankyou.html

    For some reason it doesn't seem to know to go to templates to find out if Templates are in use.

    Is there a script checker I can set up to tell me what my error is or why it's not working?

    Thankyou

    Jim

  8. #8
    Join Date
    Jul 2007
    Posts
    6

    Default Re: Templates can't find them so gives error

    Ok I subscribed... looked and looked and unable to find where subscribers post to get help.

    Please advise.

    I found it - keept looking and there it was right before my eyes.

    Thankyou

    Jim
    Last edited by Jimmac; 27-Jul-2007 at 06:15 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. seperate templates
    By j2o in forum Community Support
    Replies: 0
    Last Post: 14-Mar-2006, 02:51 PM
  2. PLEASE help - I've looked but cannot find!
    By websystemz in forum FormMail Subscription Support
    Replies: 17
    Last Post: 02-Dec-2005, 04:38 AM
  3. can't get good or bad templates to work...
    By skmember in forum FormMail Subscription Support
    Replies: 2
    Last Post: 04-Sep-2005, 10:14 PM
  4. php includes not showing up in good/bad templates
    By snodart in forum FormMail Subscription Support
    Replies: 2
    Last Post: 02-Apr-2005, 09:12 AM
  5. New Server - Templates sent as plain text
    By Anubis in forum FormMail Subscription Support
    Replies: 10
    Last Post: 19-Jan-2005, 10:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •