Pagina 1 van 1

Warning: htmlspecialchars() expects parameter 1 to be string

Geplaatst: 03 aug 2006, 17:33
door gies
Ik heb custom profile fields geinstalleerd.

( http://www.phpbbhacks.com/download/6664 )

Nu krijg ik, als ik me probeer te registreren de volgende error bovenaan buiten de phpbb tabel:

Code: Selecteer alles

Warning: htmlspecialchars() expects parameter 1 to be string, array given in public_html/includes/usercp_register.php on line 306

Warning: htmlspecialchars() expects parameter 1 to be string, array given in public_html/includes/usercp_register.php on line 306

Warning: htmlspecialchars() expects parameter 1 to be string, array given in public_html/includes/usercp_register.php on line 306

Warning: Cannot modify header information - headers already sent by (output started at /public_html/includes/page_header.php on line 649

Warning: Cannot modify header information - headers already sent by (output started at /public_html/includes/page_header.php on line 651

Warning: Cannot modify header information - headers already sent by (output started at /public_html/includes/page_header.php on line 652
In het phpbb scherm staat deze error:

Code: Selecteer alles

Could not update custom profile fields

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE user_id = 110' at line 3

UPDATE phpbb_users SE WHERE user_id = 110

Line : 788
File : usercp_register.php
dit is mijn usercpregister:

http://www.mordox.org/test/usercp.txt

wat is er fout????

Geplaatst: 03 aug 2006, 18:29
door PaulusB
Heb je de database ook geupdate voor die nieuwe mod :?:

Code: Selecteer alles

If you do not wish to manually execute this query, or you do not know how to execute it,
you can place goodies/db_installer.php into your root directory and run that

CREATE TABLE `phpbb_profile_fields` (
`field_id` MEDIUMINT( 8 ) UNSIGNED NOT NULL AUTO_INCREMENT,
`field_name` VARCHAR( 255 ) NOT NULL ,
`field_description` VARCHAR( 255 ) NULL ,
`field_type` TINYINT( 4 ) UNSIGNED NOT NULL DEFAULT '0',
`text_field_default` VARCHAR( 255 ) NULL ,
`text_field_maxlen` INT UNSIGNED NOT NULL DEFAULT '255',
`text_area_default` TEXT NULL ,
`text_area_maxlen` INT UNSIGNED NOT NULL DEFAULT '1024',
`radio_button_default` VARCHAR( 255 ) NULL ,
`radio_button_values` TEXT NULL ,
`checkbox_default` TEXT NULL ,
`checkbox_values` TEXT NULL ,
`is_required` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0',
`users_can_view` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '1',
`view_in_profile` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '1',
`profile_location` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '2',
`view_in_memberlist` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0',
`view_in_topic` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0',
`topic_location` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '1',
`linkify` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (field_id),
INDEX ( `field_type` ) ,
UNIQUE (`field_name`)




En voor die eerste melding moet je even bij de file die je gepost hebt dit doen denk.

vind

Code: Selecteer alles

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Word

Code: Selecteer alles

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Enter teveel zo te zien

Geplaatst: 03 aug 2006, 18:42
door Paul
Deze mod kan zo nooit gaan werken. Neem eens contact op met de auteur, en vermeld die eerste fout.

Bij die tweede fout mist een T, het is SET ipv SE ;)

Geplaatst: 03 aug 2006, 18:55
door gies
Thanx allebei, maar het eerste mocht niet helpen paulusb, ik had de DB geupdate, ook de enter weghalen aan het einde werkte niet.

Het is alleen met registreren dat ik errors krijg.

En paul, waar moet ik die SE veranderen in SET???

Geplaatst: 03 aug 2006, 19:00
door Paul
Line : 788
File : usercp_register.php daar ergens in de buurt.

Geplaatst: 03 aug 2006, 19:08
door gies
Ik heb met Edit+ gezocht naar "SE " maar hij vindt niets???

Ik heb ook de hele install.txt doorgezocht naar "SE " maar ook niets ;(

Geplaatst: 03 aug 2006, 19:20
door Paul
Hmm, zie het al. Dit is ook iets wat nie helemaal klopt. Als je de auteur mailt, stuur die fout dan ook maar mee :)

Geplaatst: 03 aug 2006, 19:21
door gies
Ik snap niet wat je bedoelt, welke fout zie je ???

Geplaatst: 03 aug 2006, 19:41
door Paul
Een fout in de code van die mod. Die mod klopt simpelweg niet.

Geplaatst: 03 aug 2006, 20:23
door gies
Kun je geen oplossing geven of is het te moeilijk/veel???

Want ik vind het wel een goeje mod (als ie 't doet hehe)

Geplaatst: 03 aug 2006, 20:28
door Paul
Mijn pc is stuk, en kan niet kijken hoe het wel moet dus op dit moment.

Geplaatst: 03 aug 2006, 20:41
door gies
Ik heb ipv met de hand de query uit te voeren de installer.php geprobeerd.

Ik krijg dan deze error:

Code: Selecteer alles

Database Installation for the Custom Profile Fields MOD
Author: Blankety Blank Man

Starting DB connection...OK!

Building SQL query...OK!

CREATE TABLE phpbb_profile_fields (
  field_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
  field_name VARCHAR(255) NOT NULL,
  field_description VARCHAR(255) NULL,
  field_type TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  text_field_default VARCHAR(255) NULL,
  text_field_maxlen INT UNSIGNED NOT NULL DEFAULT 255,
  text_area_default TEXT NULL,
  text_area_maxlen INT UNSIGNED NOT NULL DEFAULT 1024,
  radio_button_default VARCHAR(255) NULL,
  radio_button_values TEXT NULL,
  checkbox_default TEXT NULL,
  checkbox_values TEXT NULL,
  is_required TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
  users_can_view TINYINT(2) UNSIGNED NOT NULL DEFAULT 1,
  view_in_profile TINYINT(2) UNSIGNED NOT NULL DEFAULT 1,
  profile_location TINYINT(2) UNSIGNED NOT NULL DEFAULT 2,
  view_in_memberlist TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
  view_in_topic TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
  topic_location TINYINT(2) UNSIGNED NOT NULL DEFAULT 1,
  linkify TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (field_id),
  INDEX field_type_x1 (field_type),
  UNIQUE field_name_x1 (field_name)
);
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('collapse_fields', '0');



Creating table...

ERROR: CREATE TABLE failed!
Line #: 251

An error has occured. The installation may or may not be complete.
Kan dat er iets mee te maken hebben ?

Geplaatst: 03 aug 2006, 20:42
door Paul
Nee dat is het probleem niet. Het probleem zit in de php code die niet klopt.

Geplaatst: 23 aug 2006, 08:11
door leonard
IK heb dit probleem ook, en dan met name bij 't aanpassen van de rangen. ik denk dat 't script een error wil geven omdat je een bepaald veld niet hebt ingevuld in deze mod, maar deze nieet kan weergeven. Ik ga dus ff die velden invullen.
is er nu trouwens al wel iemand die een oplossing heeft?