Results 1 to 8 of 8

Thread: Submission error

  1. #1
    Join Date
    Feb 2011
    Posts
    10

    Default Submission error

    My form is here: http://edmullen.net/abington/directory_form.php

    When I fill it out and submit it I see multiple instances of two error messages in my browser before it successfully submits.

    Strict Standards: Non-static method FieldManager::IsEmpty() should not be called statically in /homepages/28/xxxxx/htdocs/xxxxx/directoryform.php on line 11983

    Strict Standards: Non-static method FieldManager::IsEmpty() should not be called statically in /homepages/28/xxxxx/htdocs/xxxxx/directoryform.php on line 4761

    This file is the my formmail.php file renamed.

    My host upgraded its PHP version to 5.4.11 some time ago and this is the first time since that I've checked any of my forms. I thought that might an issue so I upgraded to the latest formmail version 8.36, configured and uploaded it. Same problem.

    Any help appreciated.

    Ed

  2. #2
    Join Date
    Jul 2008
    Posts
    13

    Default Re: Submission error


  3. #3
    Join Date
    Feb 2011
    Posts
    10

    Default Re: Submission error SOLVED

    This worked for me. My sites are hosted at 1and1.com which recently changed to PHP Version 5.4.

    1and1 allows you to put a php.ini file in your site to add directives to the shared hosting's php.ini. You'll need to put a copy of the file in every sub-directory where you have a formmail script.

    #php.ini
    display_errors = off
    log_errors = on
    error_log = /path/php_error.log


    Tectite informed me that this is because:

    "FormMail is designed to work on PHP 4 and PHP 5.


    PHP version 5.4 is reporting that some of the code is not exactly correct for PHP 5. We can't change this without breaking FormMail on PHP 4.


    So, the best thing to do is configure your PHP installation to report the warnings to a file instead of on-screen (which is what a production server should do anyway)."


    If you have this problem on some other host and you can't access the shared host's php.ini or it doesn't recognize a second one in your site, you may be out of luck. I tried all of the suggestions about putting directives in the .htaccess file but noe of them worked.

    Ed

  4. #4
    Join Date
    Mar 2013
    Posts
    1

    Default Re: Submission error

    @edmullen

    I am on 1and 1 and created a php.ini file, using my ftp client to place it into the folder where my formmail is located. Now, when submitting the form, it no longer shows the error codes, but it says:
    ----------
    An error occurred while processing the form .

    Please contact us directly since this form is not working .
    we apologize for any inconvenience this error may have caused.
    -----------
    I tried adding a php_error.log file within the folder as well, but that didn't help either.

    Please advise.
    dbc

  5. #5
    Join Date
    Apr 2012
    Posts
    6

    Default Re: Submission error

    I have the same problem. I have changed my PHP to :

    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

    but I still see the errors. I can't use a php.ini override as I use FCGI. Is there any way around this as I have a lot of sites using this script?

  6. #6
    Join Date
    Apr 2012
    Posts
    6

    Default Re: Submission error

    Ok, solved it, or rather I now have a workaround...

    The problem is in this section:

    Code:
    if (DEBUG){
        error_reporting(E_ALL);     // trap everything!
        if (IsPHPAtLeast("5.0.0"))
            ini_set("display_errors","stdout");
        else
            ini_set("display_errors","1");
        ini_set("display_startup_errors","1");
        assert_options(ASSERT_ACTIVE,true);
        assert_options(ASSERT_BAIL,true);
        LoadLanguage();
    }
    else
    {
        $iOldLevel = error_reporting(E_ALL ^ E_WARNING);
        LoadLanguage();
            //
            // report everyting except warnings and notices
            //
        error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
    }
    I changed it to be:

    Code:
    error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT);
    ... and now it withholds those strict error messages.

    I have a couple of issues I am not happy with though:

    1. Why are these strict messages being created in the first place?
    2. Why is Tectite prescribing our level of error display outside the debug environment? Surely it should be full error reporting in debug mode and whatever the server is set to outside debug mode?
    3. In my setup this is the only solution, but now it means I need to remember to do it on every install.

    Please devs, can my change be put into the code, or at very least have the error reporting level up in the config section?

    Hopefully this will assist some others having the same problem.

  7. #7
    Join Date
    Mar 2014
    Posts
    1

    Default Re: Submission error

    I am in exactly the same situation. I have made the recommended change to the error_reporting statement and added the php.ini.
    Was this ever resolved? If so, how?

    Quote Originally Posted by deathbycheese View Post
    @edmullen

    I am on 1and 1 and created a php.ini file, using my ftp client to place it into the folder where my formmail is located. Now, when submitting the form, it no longer shows the error codes, but it says:
    ----------
    An error occurred while processing the form .

    Please contact us directly since this form is not working .
    we apologize for any inconvenience this error may have caused.
    -----------
    I tried adding a php_error.log file within the folder as well, but that didn't help either.

    Please advise.
    dbc

  8. #8
    Join Date
    Apr 2014
    Posts
    1

    Default Re: Submission error

    Thank you Jim,

    This works for me.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Form Submission Error
    By btown in forum Community Support
    Replies: 1
    Last Post: 26-Jun-2011, 11:44 PM
  2. Form submission error
    By aconite in forum Community Support
    Replies: 17
    Last Post: 03-May-2011, 12:23 PM
  3. form submission error
    By barefoot in forum Community Support
    Replies: 1
    Last Post: 08-Aug-2010, 10:22 AM
  4. Form submission error
    By bonse in forum Community Support
    Replies: 8
    Last Post: 22-Mar-2010, 10:07 PM
  5. Replies: 1
    Last Post: 07-Nov-2008, 02:54 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
  •