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

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Locked
Bernhard
Posts: 12
Joined: Mon 3. Nov 2003, 07:56
Contact:

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

Post 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ß :?:
MarcoB
Posts: 30
Joined: Thu 13. Nov 2003, 03:30
Contact:

i had that too

Post by MarcoB »

just remove the

Code: Select all

html_specialchars
Professional webhosting...
http://www.silver.nl - sales@silver.nl
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked