Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Formmail works. Add BadHandler, then it does not work.

  1. #1
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Question Formmail works. Add BadHandler, then it does not work.

    Last night, I downloaded the latest Formmail and Badhandler files.

    It took me awhile to get Formmail working without any errors.

    Then I went to add Badhandler and the errors started up again (associated with BH). I've read any and all tutorials that are available, including this forum.

    I've read here in the forums that the bad syntax error is typically a result of a bad path, but the path I have entered is 100% correct.

    The site is on a Hostgator reseller account server.
    http://www.phoenixrisingweb.com/contact.php

    What obvious mistake have I made?
    What other information do you need to help me figure this out?

    Thanks in advance for your help!

  2. #2
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Formmail works. Add BadHandler, then it does not work.

    What does your $TEMPLATEDIR setting look like?

    Are you using something like:

    /home/username/public_html/fmtemplates

    It needs to be the server path, not a url unless you're using $TEMPLATEURL instead of $TEMPLATEDIR.

    ginger
    Last edited by ginger23; 30-Dec-2010 at 05:31 PM. Reason: Had the error template on the end of the path instead of just the template folder.

  3. #3
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    Ginger,

    Thanks for responding.

    Yes, I have the path as you have indicated .. and it's 100% correct. I am admin of the server, so I know what the path is.

    I've even tried using the direct url. Neither worked.

  4. #4
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Formmail works. Add BadHandler, then it does not work.

    You don't say exactly what the error message is.

    It's actually usually the $FORM_INI_FILE path that causes an error message about invalid sytax in ini file, not the $TEMPLATEDIR setting, even though they both need server paths. Sorry about that. I haven't messed with this script in a while so I'm a little off.

    If I were you I'd try editing a fresh copy of fmbadhandler.php (in Notepad or similar) and re-upload (in ascii/plain text format of course).

    ginger

  5. #5
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    When I fill out the contact us form and "forget" to type in the phone number field .... and click on the submit button ... the next page contains the error:

    You don't have permission to access /fmbadhandler.php on this server.

    I've done nothing to cause any file to not be accessible, especially considering I just changed the $TEMPLATEDIR field in that file. *shrugs*

    On a side note, I still receive an email with the form information, and the notation about missing fields. The email subject of the email is: FormMail script error (New Message from PRWS Website).

  6. #6
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    I just took out all reference to the badhander file in the form code and everything is back to normal.

    There is got to be home code some where in the badhandler file that is causing the hostgator server to not like it.

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

    Default Re: Formmail works. Add BadHandler, then it does not work.

    wot's ur value for "bad_url" in ur HTML?

    it sounds like that's the problem.

  8. #8
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    I still can't get the fmbadhandler.php to be recognized. I keep getting the error: 403 Forbidden - you don't have permission to access /fmbadhandler.php on this server.

    http://www.phoenixrisingweb.com/contact.php

    Are all the hidden fields within the form correct?

    In the fmbadhandler.php file,
    I have the target url array as: http://www.phoenixrisingweb.com/

    The $SET_REAL_DOCUMENT_ROOT = "/home/XXXXXX/public_html";

    $TEMPLATEDIR = "/home/XXXXXX/public_html/fmtemplates/";

    This is my formmail.ini file:
    [special_fields]
    required = "realname,email,phone,firstservice,secondservice,description"

    [email_addresses]
    myaddress = "sales++)phoenixrisingweb.com"
    The form works fine without any reference to the badhandler, but I really want the complete functionality of the visitors seeing the proper error messages and all that.

  9. #9
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    I saw this post in the paid support section:
    http://www.tectite.com/vbforums/show...9&postcount=13

    I made the suggested change to false, since I am also on a Hostgator server (reseller) ... and then I got this error for the first time ever:

    Warning: Unterminated comment starting line 8067 in /home/XXXXX/public_html/formmail.php on line 8067

    Fatal error: fatal flex scanner internal error--end of buffer missed in /home/XXXXX/public_html/formmail.php on line 8067

    So, ummmm ... since we never have to touch any code way down there in that file, what is causing the problem????

  10. #10
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    10

    Default Re: Formmail works. Add BadHandler, then it does not work.

    Love talking to myself LOL

    Anyways, I just kept refreshing through all the syntax error messages that kept coming up and finally it decided to work on it's own.

    Now, I just have to figure out the correct way to display the error messages in my template ...

    I was thinking of having it in a bullet list, thus I am using [fmerroritemlist]
    However, that is what it shows on the page, not the error itself (I'm not filling in the phone number field for my testing purposes, and yes, phone is in the list of required elements).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Script Works, Email Contains No Information
    By JakeForest in forum FormMail Subscription Support
    Replies: 10
    Last Post: 28-Dec-2005, 10:51 PM
  2. Everything works except sending
    By Froduss in forum FormMail Subscription Support
    Replies: 5
    Last Post: 06-Jul-2004, 08:49 PM
  3. auto add feature
    By jamesh3 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 17-Jun-2004, 06:44 AM
  4. No return link for badhandler
    By ptr in forum FormMail Subscription Support
    Replies: 3
    Last Post: 26-May-2004, 11:27 PM
  5. Formmail works fine, but no e-mail
    By Wiggy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 08-Jan-2004, 04:05 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
  •