Error! Unable to determine the page link! (korte versie)
Dit script werkt wel.
Maar kijgt daarnaast de volgende melding:
Error! Unable to determine the page link!
waardoor een aantal gedeeltes wegvallen op mijn pagina.
Waar zit de fout? Ik zelf denk hier ergens maar kan het niet vinden.
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
<?php
if (($HTTP_GET_VARS['pass'] != '') && ($HTTP_GET_VARS['cuid'] != '')){
$select = tep_db_query("SELECT * from " . TABLE_CUSTOMERS . " where customers_id = " . (int)$HTTP_GET_VARS['cuid'] . "");
$start = tep_db_fetch_array($select);
if ($start['customers_validation_code'] == $HTTP_GET_VARS['pass']) {
if ($start['customers_validation'] == '1'){
?>
if (($HTTP_GET_VARS['pass'] != '') && ($HTTP_GET_VARS['cuid'] != '')){
$select = tep_db_query("SELECT * from " . TABLE_CUSTOMERS . " where customers_id = " . (int)$HTTP_GET_VARS['cuid'] . "");
$start = tep_db_fetch_array($select);
if ($start['customers_validation_code'] == $HTTP_GET_VARS['pass']) {
if ($start['customers_validation'] == '1'){
?>
<td class="main">
</td>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
}else{
tep_db_query("update " . TABLE_CUSTOMERS . " set customers_validation = '1', customers_email_registered = '" . $start['customers_email_address'] . "' where customers_id = '" . (int)$HTTP_GET_VARS['cuid'] . "'");
if (LOGIN_AFTER_VALIDATE == 'true'){
$customer_id = $start['customers_id'];
$customer_default_address_id = $start['customers_default_address_id'];
$customer_first_name = $start['customers_firstname'];
$customer_country_id = $start['entry_country_id'];
$customer_zone_id = $start['entry_zone_id'];
tep_session_register('customer_id');
tep_session_register('customer_default_address_id');
tep_session_register('customer_first_name');
tep_session_register('customer_country_id');
tep_session_register('customer_zone_id');
tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");
$cart->restore_contents();
if (isset($HTTP_GET_VARS['woher'])):
$FILENAME_DEFAULT = tep_db_prepare_input($HTTP_GET_VARS['woher'] . '.php');
else:
$FILENAME_DEFAULT = FILENAME_DEFAULT;
endif;
}
?>
}else{
tep_db_query("update " . TABLE_CUSTOMERS . " set customers_validation = '1', customers_email_registered = '" . $start['customers_email_address'] . "' where customers_id = '" . (int)$HTTP_GET_VARS['cuid'] . "'");
if (LOGIN_AFTER_VALIDATE == 'true'){
$customer_id = $start['customers_id'];
$customer_default_address_id = $start['customers_default_address_id'];
$customer_first_name = $start['customers_firstname'];
$customer_country_id = $start['entry_country_id'];
$customer_zone_id = $start['entry_zone_id'];
tep_session_register('customer_id');
tep_session_register('customer_default_address_id');
tep_session_register('customer_first_name');
tep_session_register('customer_country_id');
tep_session_register('customer_zone_id');
tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");
$cart->restore_contents();
if (isset($HTTP_GET_VARS['woher'])):
$FILENAME_DEFAULT = tep_db_prepare_input($HTTP_GET_VARS['woher'] . '.php');
else:
$FILENAME_DEFAULT = FILENAME_DEFAULT;
endif;
}
?>
<td class="main">
</td>
</tr>
<tr>
<td>
Welke regel print die error?
Wat voor script is het?
Wat gebeurt er na de error (fatal? script continue?)?
Etc...
En vooral: Waarom denk je dat de error daar ergens gemaakt wordt?
hoi t versetti, ik had script helemaal geplaatst maar moest het wat korter maken van moderator
Zit de error niet al in de include bovenaan? I.p.v. in het script hier. Want het klinkt als een package run error. Iets van foute config ofzo!?