WebSite X5Help Center

 
Louis F.
Louis F.
User

Email problem  en

Автор: Louis F.
Просмотрено 1562, Подписчики 2, Размещенный 0  
Тэги: email,problem

Hi,
I also have this problem since the program ask me to update the software.

This is the error I get  (email address  masked):

<?php if(substr(basename($_SERVER['PHP_SELF']), 0, 11) == "imEmailForm") { include '../res/x5engine.php'; $form = new ImForm(); $form->setField('NAME', @$_POST['imObjectForm_34_1'], '', false); $form->setField('SURNAME', @$_POST['imObjectForm_34_2'], '', false); $form->setField('EMAIL ', @$_POST['imObjectForm_34_3'], '', false); $form->setField('Message', @$_POST['imObjectForm_34_4'], '', false); if(@$_POST['action'] != 'check_answer') { if(!isset($_POST['imJsCheck']) || $_POST['imJsCheck'] != 'E659131CE0C8CD06DF12063D7F7832BC' || (isset($_POST['imSpProt']) && $_POST['imSpProt'] != "")) die(imPrintJsError()); $form->mailToOwner($_POST['imObjectForm_34_3'] != "" ? $_POST['imObjectForm_34_3'] : '***', 'x***', 'info', '', false); @header('Location: ../index.html'); exit(); } else { echo $form->checkAnswer(@$_POST['id'], @$_POST['answer']) ? 1 : 0; } } // End of file

this  text  appears  in  a blank  page  instead  of  the  site.

Thanks

Размещено
3 Ответы
Paul M.
Paul M.
Moderator

Hello Louis,

That's not actually an error message...  your web server isn't parsing the PHP code.

What version of PHP are you running on your server?  Can you post a link to your website?

Kind regards,

Paul

Search the WebSite X5 Help Center

Читать больше
Размещено От Paul M.
Louis F.
Louis F.
User
Автор

Hi Paul,
I am not a programmer so I don't know what is a PHP and where it should be. smile

The site is under development and in the following days I will  publish  it  in  my  domain.

Now I run the site from my hard drive.

I also noticed that if I use "add link" to a picture choosing the option "send email to" the program works fine and opens the email screen to send a message.

If I use the "contact module" the site ends in the white page with the message I report before.

Before the last update every thing works fine

Thanks

Читать больше
Размещено От Louis F.
Paul M.
Paul M.
Moderator
Louis F.
Now I run the site from my hard drive.

This sounds like the root cause of the problem, Louis.

Any WebSite X5 features which make use of PHP (such as the contact forms) will not work when run from local hard drives, unless PHP itself is also installed on the hard drive.

Please let us know how you get on once you have exported your site online.

But for now what you are experiencing is normal.

Читать больше
Размещено От Paul M.