foutmelding registratie account

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
ownageworld
Berichten: 252
Lid geworden op: 03 jun 2006, 17:35
Locatie: Brussel

foutmelding registratie account

Bericht door ownageworld » 11 dec 2006, 01:59

Support Template
  • Wat is het probleem? Bij het aanmaken van een account krijg ik een foutmelding te zien (staat hieronder)
    Wanneer ontstond het probleem? kwam het net tegen bij het testen :)
    Adres van je forum: http://www.ownageworld.com
    Modifications op je forum: teveel, het gaat hier om de custom profile mod en de birtdaymod denk ik... maar ik heb ook de "registreer zonder e-mailadres mod"
    Huidige stijl: subsilver
    phpBB versie: nieuwste
    Waar is je forum gehost: welas
    Heb je onlangs iets verandert aan je forum? niks bijzonders, wel veel mods op mn website. Ergens gelezen dat de "header is already sent" komt door lege spaties, maar daar was ook geen sprake van in die bestanden...
Overige opmerkingen: Bij het registreren krijg ik deze foutmelding, te zien hieronder, pas bij "Dank je wel voor je registratie, je account is aangemaakt. Je kunt nu inloggen met je gebruikersnaam en wachtwoord"

Code: Selecteer alles

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/aa1010/domains/ownageworld.com/public_html/neds/includes/usercp_register.php on line 376

Warning: Cannot modify header information - headers already sent by (output started at /home/aa1010/domains/ownageworld.com/public_html/neds/includes/usercp_register.php:376) in /home/aa1010/domains/ownageworld.com/public_html/neds/includes/page_header.php on line 1316

Warning: Cannot modify header information - headers already sent by (output started at /home/aa1010/domains/ownageworld.com/public_html/neds/includes/usercp_register.php:376) in /home/aa1010/domains/ownageworld.com/public_html/neds/includes/page_header.php on line 1318

Warning: Cannot modify header information - headers already sent by (output started at /home/aa1010/domains/ownageworld.com/public_html/neds/includes/usercp_register.php:376) in /home/aa1010/domains/ownageworld.com/public_html/neds/includes/page_header.php on line 1319

Code: Selecteer alles

//
	// Custom Profile Fields MOD
	//
  $profile_data = get_fields('WHERE users_can_view = '.ALLOW_VIEW);
  $profile_names = array();
  
  foreach($profile_data as $fields)
  {
    $name = text_to_column($fields['field_name']);
    $type = $fields['field_type'];
    $required = $fields['is_required'] == REQUIRED ? true : false;
    
    $temp = (isset($HTTP_POST_VARS[$name])) ? $HTTP_POST_VARS[$name] : array();
    if($type == CHECKBOX)
    {
      $temp2 = '';
      foreach($temp as $temp3)
        $temp2 .= htmlspecialchars($temp3) . ',';
      $temp2 = substr($temp2,0,strlen($temp2)-1);
      
      $temp = $temp2;
    }
    else







     $temp = htmlspecialchars($temp);








    $profile_names[$name] = $temp;
    
    if($required && empty($profile_names[$name]))
    {
      $error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
    }
  }
	//
	// END Custom Profile Fields MOD
	//
* de geisoleerde lijn is lijn 376 in includes/register.php

Code: Selecteer alles

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	





header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');






}
header ('Expires: 0');
header ('Pragma: no-cache');
* de geisoleerde lijn is lijn 1316 van includes/page_header.php

Gesloten