Не работает webform

Главные вкладки

Аватар пользователя jhumper jhumper 13 мая 2013 в 17:01

Добрый день. У меня такая проблема. На сайте есть форма сделанная с помощью webform. Есть шаблон отправки e-mail webform-mail-74.tpl.php(её шаблон). При отправки формы на почту приходит пустое письмо.
Вот кусок её кода

print "ЗАЯВКА НА ПОСТАВКУ\n\n";
if ($form_values['submitted_tree']['schet_na_oplatu']['vystavit_schet_na_oplatu']) {
print "Требуется счет: " . $form_values['submitted_tree']['schet_na_oplatu']['vystavit_schet_na_oplatu'] . "\n";
if ($form_values['submitted_tree']['schet_na_oplatu']['dostavka_scheta']) {
print " (доставить ";
$i = 0;

На почту приходит "ЗАЯВКА НА ПОСТАВКУ" и всё. При выводе print_r($form_values) ничего не выводит так же. Я так $form_values не определён. Подскажите в чём может быть причина. Заранее благодарен.

Комментарии

Аватар пользователя jhumper jhumper 14 мая 2013 в 12:06

Дело в том что раньше эта форма работала. Так же приведу коментарии из файла вебформы

* Available variables:
* - $form_values: The values submitted by the user.
* - $node: The node object for this webform.
* - $user: The current user submitting the form.
* - $ip_address: The IP address of the user submitting the form.
* - $sid: The unique submission ID of this submission.
* - $cid: The component for which this e-mail is being sent.

Так же добавлю что не выводится не одна из перечислинных переменных.

Аватар пользователя jhumper jhumper 15 мая 2013 в 12:48

Версия webform 3.17 drupal 6. Если кто сможет ответьте на вопрос в каком файле генерится сама форма и где она дёргает инфу из базы

Аватар пользователя greenmother@drupal.org greenmother@dru... 15 мая 2013 в 12:42

http://drupal.org/node/7404/release#node-1472178
скачал 3.17 для d6, нет там такого:
/**
* @file
* Customize the e-mails sent by Webform after successful submission.
*
* This file may be renamed "webform-mail-[nid].tpl.php" to target a
* specific webform e-mail on your site. Or you can leave it
* "webform-mail.tpl.php" to affect all webform e-mails on your site.
*
* Available variables:
* - $node: The node object for this webform.
* - $submission: The webform submission.
* - $email: The entire e-mail configuration settings.
* - $user: The current user submitting the form.
* - $ip_address: The IP address of the user submitting the form.
*
* The $email['email'] variable can be used to send different e-mails to different users
* when using the "default" e-mail template.
*/

Аватар пользователя jhumper jhumper 15 мая 2013 в 12:54

Если кто сможет ответьте на вопрос в каком файле генерится сама форма и где она дёргает инфу из базы. Всё равно даже если я буду выводить любой из
- $node: The node object for this webform.
* - $submission: The webform submission.
* - $email: The entire e-mail configuration settings.
* - $user: The current user submitting the form.
* - $ip_address: The IP address of the user submitting the form.

ничего не выводится