Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: bad_ini...syntax error?

  1. #11
    Join Date
    Jan 2010
    Posts
    4

    Default Re: bad_ini...syntax error?

    Obviously my ini file doesn't include any smilies! Sorry about that...

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

    Default Re: bad_ini...syntax error?

    Hi,

    Does it matter if the INI file is named formmail.ini or FormMail.ini?
    No, as long as you're consistent when you identify it in the script. FormMail.ini is not the same file as formmail.ini .

    I've changed DB_SEE_INI from false to 'true' (though I'm not sure what I'm supposed to be seeing, if anything).
    You should see the contents of your INI file. Do you? Does it look correct when displayed in the browser? This is just a setting to use for testing purposes to see what the script is seeing as far as your INI file. Set it back to "false" when you're ready to go live with the form.

    I don't know what to tell you. I noticed some code in 8.20 that deals with the "bad_ini" error for INI files, that wasn't there in my previous version of FormMail (8.12). However I thought it could only detect syntax errors with the very recent versions of PHP.

    Maybe someone else can see a syntax error, but they look ok to me.
    Last edited by ginger23; 01-Jan-2010 at 08:48 PM.

  3. #13
    Join Date
    Dec 2009
    Posts
    9

    Default Re: bad_ini...syntax error?

    Where should I see the contents of the INI file when set to TRUE?

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

    Default Re: bad_ini...syntax error?

    If it's set to True, when you click "Submit" the contents of the INI file should be displayed in the browser, something like this:

    The following settings were found in the file '/home/mysite/formmail.ini':
    [special_fields]
    conditions1 = ":@@IF@promo@promo~/39084/@promo~/^$/@Invalid promo code.@"
    required = "Name,Email,Message"

    [email_addresses]
    me = "me@myaddress.com"
    someone = "someone@myaddress.com"


    Your form submission was processed by (8.20), available from www.tectite.com.


    Last edited by ginger23; 01-Jan-2010 at 11:10 PM.

  5. #15
    Join Date
    Dec 2009
    Posts
    9

    Default Re: bad_ini...syntax error?

    I don't get that. With DB_SEE_INI set to true, I still only see:

    An error occurred while processing the form .

    The staff at www.federalresumetips.com have been alerted to the error .
    www.federalresumetips.com apologizes for any inconvenience this error may have caused.

  6. #16
    Join Date
    Jan 2010
    Posts
    4

    Default Re: bad_ini...syntax error?

    I'm not seeing that either - just the same bad_ini error message.

    I might try going back to the previous version of formmail to see if that helps.

  7. #17
    Join Date
    Jan 2010
    Posts
    4

    Default Re: bad_ini...syntax error?

    Right - I've reverted to v8.16 for one of my forms and the form now appears to work OK.

    I'll try the rest now.

  8. #18
    Join Date
    May 2008
    Posts
    1,291

    Default Re: bad_ini...syntax error?

    Well that makes sense. You wouldn't see the INI because the script is outputting an error message about invalid syntax in the INI file. Normally, you'd see the output in the browser like I mentioned, except apparently it's not getting to that point before triggering the error.

    You might consider posting in the Bug Reports forum, and see if Russell will address the issue.

  9. #19
    Join Date
    Oct 2010
    Posts
    1

    Default Re: bad_ini...syntax error?

    I had this same problem I finaly got it resolved this morning. I use GoDaddy linux shared hosting.
    If the DB-See-True ? (or whatever) doesn't work like it din;t in my case maybe the server is configured to only read the ini file that is already present on the server. In my case it was in a 'stats' folder so I added the code there and it worked fine.
    It was accessible via http and I was not allowed to alter my .htaccess file so I just made a new one in notepad and uploaded that.
    I am also new to this so I can't say if that's a good idea or not but it works for me and I just happened to get it going while I was on hold with customer support. (Godaddy support)

    Here's another post I found helpful hopefully it doesn't get flagged a spam.
    http://www.tectite.com/vbforums/showthread.php?t=3738

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
    By adrianconchie in forum Community Support
    Replies: 1
    Last Post: 08-Aug-2007, 05:50 AM
  2. Term/syntax meaning questions
    By Elso in forum FormMail Subscription Support
    Replies: 4
    Last Post: 08-Mar-2007, 01:30 AM
  3. Form syntax for "conditions"
    By bersen in forum Community Support
    Replies: 4
    Last Post: 03-Dec-2006, 11:01 PM
  4. syntax-validation for email-address?
    By yogi in forum Community Support
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  5. syntax-validation for email-address?
    By yogi in forum Features Questions
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM

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
  •