Andastra
09.09.2009, 15:55
Hallo zusammen,
ich habe gerade das Modul Kundenfrage bei Registrierung soweit eingebaut,
das es im ECB weitesgehend funktioniert.
Allerdings bekomme ich noch im Backend folgenden Fehler angezeigt:

Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/customers.php:1) in /is/htdocs/wp1148123_1RRTJFGVL3/www/inc/xtc_setcookie.inc.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/customers.php:1) in /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/includes/application_top.php on line 201
Soweit ich es verstehe, soll eine neue session gestartet werden, aber da bereits
eine geöffnet ist, gibt es den Fehler. Es liegt an der admin/customers.php.
Dort habe ich folgendes geändert:
Zeile 65 eingefügt :
$question_query = xtc_db_query("select questions_name from ".TABLE_QUESTIONS." where questions_id = '".$customers['entry_question_id']."'");
************$question = xtc_db_fetch_array($question_query);
----------------
Zeile 71**:
nach
xtc_db_prepare_input($customers['entry_state']), 'customers_country' =>
das eingefügt
xtc_db_prepare_input($country['countries_name']), 'customers_question' =>
----------------
Zeile 139
nach
$entry_country_id = xtc_db_prepare_input($_POST['entry_country_id']);
das eingefügt
$entry_question_id = xtc_db_prepare_input($_POST['entry_question_id']);
----------------
Zeile 243
nach
if ($entry_country_id == false) {
****************$error = true;
****************$entry_country_error = true;
************} else {
****************$entry_country_error = false;
************}
das eingefügt
if ($entry_question_id == false) {
****************$error = true;
****************$entry_question_error = true;
************} else {
****************$entry_question_error = false;
************}
----------------
Zeile 332
nach
'entry_country_id' => $entry_country_id,
das eingefügt
'entry_question_id' => $entry_question_id,
-----------------
Zeile 387
nach
a.entry_country_id,
das eingefügt
a.entry_question_id,
-----------------
Zeile 479
nach
if (document.customers.elements['entry_country_id'].type != "hidden") {
****if (document.customers.entry_country_id.value == 0) {
******error_message = error_message + "<?php echo xtc_js_lang(JS_COUNTRY); ?>";
******error = 1;
****}
**}
das eingefügt
if (document.customers.elements['entry_question_id'].type != "hidden") {
****if (document.customers.entry_question_id.value == 0) {
******error_message = error_message + "<?php echo xtc_js_lang(JS_QUESTION); ?>";
******error = 1;
****}
**}
--------------------
Zeile 525
nach
a.entry_country_id,
das eingefügt
a.entry_question_id,
---------------------
Zeile 774
nach
if ($error == true) {
********if ($entry_country_error == true) {
************echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(), $cInfo->entry_country_id).''.ENTRY_COUNTRY_ERROR;
********} else {
************echo xtc_get_country_name($cInfo->entry_country_id).xtc_draw_hidden_field('entry_cou ntry_id');
********}
****} else {
********echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(), $cInfo->entry_country_id);
****}
?></td>
**********</tr>
das eingefügt
<tr>
************<td class="main"><?php echo ENTRY_QUESTION; ?></td>
************<td class="main"><?php
****if ($error == true) {
********if ($entry_question_error == true) {
************echo xtc_draw_pull_down_menu('entry_question_id', xtc_get_questions(), $cInfo->entry_question_id).''.ENTRY_QUESTION_ERROR;
********} else {
************echo xtc_get_question_name($cInfo->entry_question_id).xtc_draw_hidden_field('entry_qu estion_id');
********}
****} else {
********echo xtc_draw_pull_down_menu('entry_question_id', xtc_get_questions(), $cInfo->entry_question_id);
****}
?></td>
**********</tr>
--------------------
Zeile 1069
nach
a.entry_country_id,
danach das eingefügt
a.entry_question_id,
---------------------
Zeile 1094
nach
if (((!$_GET['cID']) || (@ $_GET['cID'] == $customers['customers_id'])) && (!$cInfo)) {
************$country_query = xtc_db_query("select countries_name from ".TABLE_COUNTRIES." where countries_id = '".$customers['entry_country_id']."'");
************$country = xtc_db_fetch_array($country_query);
************
das eingefügt
****$question_query = xtc_db_query("select questions_name from ".TABLE_QUESTIONS." where questions_id = '".$customers['entry_question_id']."'");
************$question = xtc_db_fetch_array($question_query);
---------------------
Zeile 1102
$customer_info = xtc_array_merge($country, $info, $reviews);
geändert in
$customer_info = xtc_array_merge($country, $info, $reviews, $question);
Weiß jemand vielleicht woran es liegt?
Liebe Grüße
ich habe gerade das Modul Kundenfrage bei Registrierung soweit eingebaut,
das es im ECB weitesgehend funktioniert.
Allerdings bekomme ich noch im Backend folgenden Fehler angezeigt:

Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/customers.php:1) in /is/htdocs/wp1148123_1RRTJFGVL3/www/inc/xtc_setcookie.inc.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/customers.php:1) in /is/htdocs/wp1148123_1RRTJFGVL3/www/admin/includes/application_top.php on line 201
Soweit ich es verstehe, soll eine neue session gestartet werden, aber da bereits
eine geöffnet ist, gibt es den Fehler. Es liegt an der admin/customers.php.
Dort habe ich folgendes geändert:
Zeile 65 eingefügt :
$question_query = xtc_db_query("select questions_name from ".TABLE_QUESTIONS." where questions_id = '".$customers['entry_question_id']."'");
************$question = xtc_db_fetch_array($question_query);
----------------
Zeile 71**:
nach
xtc_db_prepare_input($customers['entry_state']), 'customers_country' =>
das eingefügt
xtc_db_prepare_input($country['countries_name']), 'customers_question' =>
----------------
Zeile 139
nach
$entry_country_id = xtc_db_prepare_input($_POST['entry_country_id']);
das eingefügt
$entry_question_id = xtc_db_prepare_input($_POST['entry_question_id']);
----------------
Zeile 243
nach
if ($entry_country_id == false) {
****************$error = true;
****************$entry_country_error = true;
************} else {
****************$entry_country_error = false;
************}
das eingefügt
if ($entry_question_id == false) {
****************$error = true;
****************$entry_question_error = true;
************} else {
****************$entry_question_error = false;
************}
----------------
Zeile 332
nach
'entry_country_id' => $entry_country_id,
das eingefügt
'entry_question_id' => $entry_question_id,
-----------------
Zeile 387
nach
a.entry_country_id,
das eingefügt
a.entry_question_id,
-----------------
Zeile 479
nach
if (document.customers.elements['entry_country_id'].type != "hidden") {
****if (document.customers.entry_country_id.value == 0) {
******error_message = error_message + "<?php echo xtc_js_lang(JS_COUNTRY); ?>";
******error = 1;
****}
**}
das eingefügt
if (document.customers.elements['entry_question_id'].type != "hidden") {
****if (document.customers.entry_question_id.value == 0) {
******error_message = error_message + "<?php echo xtc_js_lang(JS_QUESTION); ?>";
******error = 1;
****}
**}
--------------------
Zeile 525
nach
a.entry_country_id,
das eingefügt
a.entry_question_id,
---------------------
Zeile 774
nach
if ($error == true) {
********if ($entry_country_error == true) {
************echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(), $cInfo->entry_country_id).''.ENTRY_COUNTRY_ERROR;
********} else {
************echo xtc_get_country_name($cInfo->entry_country_id).xtc_draw_hidden_field('entry_cou ntry_id');
********}
****} else {
********echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(), $cInfo->entry_country_id);
****}
?></td>
**********</tr>
das eingefügt
<tr>
************<td class="main"><?php echo ENTRY_QUESTION; ?></td>
************<td class="main"><?php
****if ($error == true) {
********if ($entry_question_error == true) {
************echo xtc_draw_pull_down_menu('entry_question_id', xtc_get_questions(), $cInfo->entry_question_id).''.ENTRY_QUESTION_ERROR;
********} else {
************echo xtc_get_question_name($cInfo->entry_question_id).xtc_draw_hidden_field('entry_qu estion_id');
********}
****} else {
********echo xtc_draw_pull_down_menu('entry_question_id', xtc_get_questions(), $cInfo->entry_question_id);
****}
?></td>
**********</tr>
--------------------
Zeile 1069
nach
a.entry_country_id,
danach das eingefügt
a.entry_question_id,
---------------------
Zeile 1094
nach
if (((!$_GET['cID']) || (@ $_GET['cID'] == $customers['customers_id'])) && (!$cInfo)) {
************$country_query = xtc_db_query("select countries_name from ".TABLE_COUNTRIES." where countries_id = '".$customers['entry_country_id']."'");
************$country = xtc_db_fetch_array($country_query);
************
das eingefügt
****$question_query = xtc_db_query("select questions_name from ".TABLE_QUESTIONS." where questions_id = '".$customers['entry_question_id']."'");
************$question = xtc_db_fetch_array($question_query);
---------------------
Zeile 1102
$customer_info = xtc_array_merge($country, $info, $reviews);
geändert in
$customer_info = xtc_array_merge($country, $info, $reviews, $question);
Weiß jemand vielleicht woran es liegt?
Liebe Grüße