Closed Thread
Results 1 to 4 of 4

Thread: fmbadhandler 404

  1. #1
    Join Date
    Jan 2011
    Posts
    3

    Default fmbadhandler 404

    Hi,

    I am experiencing a problem, my forms have been working great but recently I decided to change the recipient address on one the forms, I forgot to add the new address into formail so it redirected to fmbadhadler but instead of getting my error page I ended up on my 404.

    The form is at http://www.eandhbaxendale.com/online...lace-an-order/

    Thanks in advance for any help you can offer,

    Richard

  2. #2
    Join Date
    Jan 2011
    Posts
    3

    Default Re: fmbadhandler 404

    I have now fixed that error, it seems when I rearranged the site I missed updating the $TEMPLATEURL in fmbadhandler. The annoying thing is I looked at it but didn't realise until now that the url was slightly wrong.

    Anyway the error template is now being displayed along with the error message thanks to [fmfullerror /] the only problem now is the return link is I use [return_link /] that it doesn't include the link just that short code, if I inlculde <a href="$return_link">Return to form</a> the link it actualy creates is http://www.eandhbaxendale.com/$return_link

    I have checked the this_form hidden field and that has the correct url so I stumped as to why it isn't working.

    <input type="hidden" name="this_form" id="this_form" value="http://www.eandhbaxendale.com/online-enquiries/place-an-order/" />

  3. #3
    Join Date
    Dec 2003
    Posts
    3,978

    Default Re: fmbadhandler 404

    Hi,

    Glad you're making progress.

    The return link only gets expanded if several items are in place and correct.

    You need the "this_form" hidden field, which you have and that looks fine.

    The second item is the $TARGET_URLS setting in FMBadHandler.

    You would want it to be:
    PHP Code:
    $TARGET_URLS = array("http://www.eandhbaxendale.com/"); 
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Jan 2011
    Posts
    3

    Default Re: fmbadhandler 404

    Hi Russell,

    Thanks for your quick response, I have double checked fmbadhandler and $TARGET_URLS is set correctly.

    It's just clicked, the return link is working it just doesn't get displayed unless the user has made an error in one of the required fields. I have some additional validation checks that take place before formail gets called so when I was testing it out it was only reporting the incorrect recipient error which I left in place to make sure the bad template was being called, as soon as I disabled those checks and resubitted the form the bad template appeared with a functioning return link. So it's all working as it should now, thanks again Russell.

    Richard
    Last edited by richardvav; 06-Jan-2011 at 10:34 PM.

Closed Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. HTTP 404 Error Message
    By Bassman1956 in forum Community Support
    Replies: 0
    Last Post: 03-Jun-2008, 02:34 PM
  2. Submit Form produces Error 404 Page can not be found
    By lowcost in forum Community Support
    Replies: 2
    Last Post: 27-May-2008, 10:39 AM
  3. Submit gives http 404
    By marine76 in forum Community Support
    Replies: 0
    Last Post: 13-Nov-2007, 09:57 PM
  4. 404 errors and weird url
    By joeyscc in forum FormMail Subscription Support
    Replies: 4
    Last Post: 19-Jan-2006, 12:51 PM
  5. [M22]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    By pauloportu in forum FormMail Subscription Support
    Replies: 15
    Last Post: 20-Oct-2005, 11:21 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