Page 1 of 1

ERROR IN SETUP: (VERSION 1.1-RC1 - 11/12/2003)

Posted: Thu 13. Nov 2003, 07:52
by Bernhard
guten morgen zusammen!

ich stosse auf fehler bei der neuen version im setup:

Code: Select all

<input name="db_host" type="text" class="f11b" id="db_host" value="
Fatal error: Call to undefined function: html_specialchars() in /home/bernhard/public_html/phpwcms_1[1].1-RC1_2003-11-12/setup/inc/step1.inc.php on line 29
gruß :?:

i had that too

Posted: Thu 13. Nov 2003, 09:20
by MarcoB
just remove the

Code: Select all

html_specialchars

Posted: Thu 13. Nov 2003, 09:23
by Oliver Georgi
No not remove - I have forgotten to put the new function also in the setup routine. Put this into the file "setup.php" at the end but before ?>

Code: Select all

function html_specialchars($h="") {
	//used to replace the htmlspecialchars original php function
	//not compatible with many internation chars like turkish, polish
	$h = preg_replace("/&(?!#[0-9]+;)/s", '&', $h );
	$h = str_replace( "<", "<"  , $h );
	$h = str_replace( ">", ">"  , $h );
	$h = str_replace( '"', """, $h );
	return $h;
}
I will post a little patch file.

No patch - I have updated the complete package. If you have downloaded the non updated package please change the setup.php 8)

Oliver