Flash+PHP forms Error after Cpanel Upgrade

Discussion in 'Site & Server Administration' started by ireshsl, Apr 29, 2012.

  1. #1
    Hi All,

    We use Flash contact forms that use PHP to process data on several websites. Those forms were working without any issues from several years. But we start to receive emails without any information like below after our hos.ting company upgraded the Cpanel version (WHM 11.32.2).

    So can you please tell me whether any settings that we have to do from the sever end to work these forms again ?

    Thank you in advance !.

    From: <>
    Date: Sun, Apr 29, 2012 at 11:35 PM
    Subject: Inquiry from ourdomain.lk
    To:


    Inquired by:
    Company:
    Country:
    Email:
    Telephone:
    Fax:

    Message:
     
    ireshsl, Apr 29, 2012 IP
  2. StuartCRyan

    StuartCRyan Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi ireshsl,
    I would be firstly checking any logs that come with the forms (if any). If none I would check if an errors file had been created in the directory where the forms reside on the server. Natively there were quite a few changes in 11.32 of cPanel however nothing per-say that would directly lead to breaking these sort of things.

    The things I would be looking towards would be:
    Your host may have upgraded PHP at the same time and the contact forms are using deprecated functions
    Your host may have turned OFF a particular php function that was being used. Without knowing the exact requirements the flash contact forms have I wouldn't be able to point you in the right direction.

    I would suggest you contact your host and see if you can turn on php_display_errors and see if any errors are displaying when the form is submitted as that will likely lead you to the cause very quickly. Alternatively ask them if they changed any PHP configs or upgraded PHP at the same time.
    Cheers
    Stuart
     
    StuartCRyan, Apr 29, 2012 IP
  3. ireshsl

    ireshsl Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #3
    Hi Stuart,

    Thank you very much for your quick and useful reply.

    I sent the link of this post to the host. They will check and get back to me.

    I have copied codes of PHP and Flash files for your kind reference :)


    This the code of my PHP file:

    <?
    $ToEmail = "me@gmail.com";

    ##$ToName = "Your Name";
    $ToSubject = "Test";

    $EmailBody = "Inquired by: $fName\nCompany: $fCompany\nCountry: $fCountry\nEmail: $fEmail\nTelephone: $fTelephone\nFax: $fFax\nProduct Category: $fCategory\n\nMessage: $fMessage\n\n\n";

    $EmailFooter="\nThis message was sent by: $fName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please forward to ";

    $Message = $EmailBody.$EmailFooter;

    mail($fName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$fName." <".$fEmail.">");


    Print "_root.EmailStatus=Completed - Your inquiry has been sent";

    ?>​


    And this the code of my Flash form


    on (press) {
    loadVariablesNum("izeMail.php", "0", "POST");
    EmailStatus = "Sending your inquiry. Please wait...";
    fName = "";
    fCompany = "";
    fCountry = "";
    fEmail = "";
    fTelephone = "";
    fFax = "";
    fCategory = "";
    fMessage = "";
    EmailStatus = "";
    }​
     
    ireshsl, Apr 29, 2012 IP
  4. StuartCRyan

    StuartCRyan Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No sweat,
    I am just about finished for lunch so I will have a squiz this afternoon to see what I can come up with, (I will PM you my email address) if you can send me the files I can always have a play.
    Stuart
     
    StuartCRyan, Apr 29, 2012 IP