Highlighted

PHP Sript doesn`work.

Community Beginner ,
Jun 15, 2018

Copy link to clipboard

Copied

Hi,

I worked with Muse and the Kontakt Form doesn`t work right. When i clicked on the SEND Button then comes the follow Info:

Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration.

My Provider has the PHP 5.6 and 7.0 and 7.2. Can MUSE not the new PHP? What can I do?

Greetings from Germany

Andy

Views

743

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

PHP Sript doesn`work.

Community Beginner ,
Jun 15, 2018

Copy link to clipboard

Copied

Hi,

I worked with Muse and the Kontakt Form doesn`t work right. When i clicked on the SEND Button then comes the follow Info:

Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration.

My Provider has the PHP 5.6 and 7.0 and 7.2. Can MUSE not the new PHP? What can I do?

Greetings from Germany

Andy

Views

744

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 15, 2018 0
Adobe Community Professional ,
Jun 15, 2018

Copy link to clipboard

Copied

I don't think the Muse contact form is compatible with servers running PHP 7 or higher.    I think you would need to revert back to PHP 5x or switch to a newer processing script.

If you can't code one yourself (not many Musers can), you could embed a form from a 3rd party form service like Wufoo.com.  The form is processed on their servers, not yours.   So your version of PHP is irrelevant. 

Online Form Builder with Cloud Storage Database - Wufoo : Wufoo

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 15, 2018 0
Community Beginner ,
Jun 16, 2018

Copy link to clipboard

Copied

Hi, Nancy,

I can also set PHP 5.6 on the server. Until what version does the form work? What I don't understand is that when I click the file form_check.php on the website a white window appears. Here's the code:

<?php

/*    

If you see this text in your browser, PHP is not configured correctly on this hosting provider.

Contact your hosting provider regarding PHP configuration for your site.

PHP file generated by Adobe Muse CC 2018.1.0.386

*/

require_once('form_throttle.php');

if ($_SERVER['REQUEST_METHOD'] == 'GET')

{

    $supportResponse = checkSupport();

    if (!empty($_GET['mode']) and $_GET['mode'] == 'verify')

    {

        echo $supportResponse;

        exit;

    }

   

    echo('<!DOCTYPE html><html><head><title>Muse PHP Diagnostics</title>');

    echo('<style type="text/css">body { font: 14pt Myriad Pro, Arial, Helvetica;}ul { list-style-type: none; }');

    echo(' h1 { background-color: #CCCCCC; padding: 2px;} label {display: inline-block; width: 100px; vertical-align: top;}');

    echo('.good:before { color: green; content:\'\2713\0020\';} .bad:before {color: red; content: \'X\0020\';}');

    echo('</style></head><body>');

    echo('<h1>Diagnostics</h1><ul>');

   

    if (strrpos($supportResponse,'PHP:0;') === false)

    {

        echo('<li class="bad">PHP version too low');

    }

    else

    {

        echo('<li class="good">PHP version ok');

    }

    if (strrpos($supportResponse,'Mail:0;') === false)

    {

        echo('<li class="bad">Mail configuration: PHP mail() configured incorrectly on server. Form will not be able to send email.');

    }

    else

    {

        echo('<li class="good">Mail configuration: No known problems detected with php mail configuration.');

    }

   

    if (strrpos($supportResponse,'SQL:1;') !== false)

    {

        echo('<li class="bad">Spam control: SQLite not found. Form may send email successfully, but limiting spam submissions by IP address will not work.');

    }

    else if (strrpos($supportResponse,'SQL:8;') !== false)

    {

        echo('<li class="bad">Spam control: Cannot write to scripts directory. Form may send email successfully, but limiting spam submissions by IP address will not work.');

    }

    else if (strrpos($supportResponse,'SQL:0;') === false)

    {

        echo('<li class="bad">Spam control: SQL configuration problem. Form may send email successfully, but limiting spam submissions by IP address will not work.');

    }

    else

    {

        echo('<li class="good">Spam control: Emails will be limited to 25 in 2 hours from the same IP address.');

    }

    echo('</ul><br/><br/>');

   

    echo('</body></html>');

}

$phpError = '';

function phpErrorHandler($errno, $errstr, $errfile, $errline)

{

    global $phpError;

    if (!(error_reporting() & $errno))

    {

        return;

    }

    $phpError .= $errstr;

    return true;

}

function checkSupport()

{   

    global $phpError;

    set_error_handler("phpErrorHandler");

       

    $response = '';

    $throttleSupport = formthrottle_check();

    $response ='SQL:' . $throttleSupport . ';';

    $version = explode('.', PHP_VERSION);

    if ($version[0] < 4 || ($version[0] == 4 && $version[1] < 1))

    {

        $response .='PHP:1;';

        return $response;

    }

    else

    {

        $response .='PHP:0;';

    }

    if (strncasecmp(php_uname('s'), 'win', 3) == 0)

    {

        $mailserver = ini_get('SMTP');

    }

    else

    {

        $mailserver = ini_get('sendmail_path');

    }

    if (strlen($mailserver) == 0)

    {

        $response .='Mail:1;';

    }

    else

    {

        if (!function_exists("mail"))

        {

            $response .='Mail:2;';

        } 

        else

        {

            $sent = mail("recipient@example.com", "Hi", "test message", "From: sender@example.com");

            if($sent)

            {

                $response .='Mail:0;';

            }

            else

            {

                $response .='Mail:3;';           

            }

        }

    }

           

    if($phpError != '')

    {

        $response .='PHPError:' . $phpError;

    }

    return $response;

}

?>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 16, 2018 0
LEGEND ,
Jun 15, 2018

Copy link to clipboard

Copied

Did you have a look at this documrnt: https://forums.adobe.com/docs/DOC-3581?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 15, 2018 0
Community Beginner ,
Jun 16, 2018

Copy link to clipboard

Copied

Hi Günter,

Yeah, I read that. But it doesn't describe exactly what kind of PHP version MUSE works.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 16, 2018 0