Fatal error in Step 2

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
europroducer
Posts: 5
Joined: Wed 7. Jun 2006, 12:27

Fatal error in Step 2

Post by europroducer »

After start, /setup/index.php I got the next message at the top of the screen:

"; write_textfile("setup.conf.inc.php", $conf_file); }function aporeplace($string_to_convert="") { //Ändert die einfachen Apostrophe für SQL-Funktionen in doppelte $string_to_convert = str_replace("\\", "\\\\", $string_to_convert); $string_to_convert = str_replace("'", "''", $string_to_convert ); return $string_to_convert;}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 ); $h = str_replace( "'", "'", $h ); $h = str_replace( "\\", "\", $h ); return $h;}function readfile_chunked($filename,$retbytes=true) { $chunksize = 1*(1024*1024); // how many bytes per chunk $buffer = ''; $cnt =0; $handle = @fopen($filename, 'rb'); if ($handle === false) { return false; } while (!feof($handle)) { $buffer = @fread($handle, $chunksize); echo $buffer; flush(); if ($retbytes) { $cnt += strlen($buffer); } } $status = @fclose($handle); if ($retbytes && $status) { return $cnt; // return num. bytes delivered like readfile() does. } return $status;}?>

In Step 2 I got the next fatal error:

<input name="db_host" type="text" class="f11b" id="db_host" value="
Fatal error: Call to undefined function: html_specialchars() in /www/htdocs/eurocms/wcms/setup/inc/step1.inc.php on line 54

Can someone be so kind to tell me the solution or where I can find the solution on this forum?

Thanks very much.
Peter
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

pls upload the Packege again in Binary-Mode
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
europroducer
Posts: 5
Joined: Wed 7. Jun 2006, 12:27

Post by europroducer »

Thanks. I have been througfh the setup process. After deleting the setup folder and copied the config file I logged in and get the next message:

We are sorry!
For service reasons the system is temporarily not attainable.

Visit us later again!

The URL in the browser is: http://www.eurocms.nl/wcms/dbdown.php
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

check your Database Configuration in conf.inc.php

this Message comes, when no Database Connection can estiblished.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
europroducer
Posts: 5
Joined: Wed 7. Jun 2006, 12:27

Post by europroducer »

Thank for you fast response. I have look into the DB and saw that there where no tables (fields). I cannot find a txt file to create these tables. Is there a txt file for it?

I tried to import the tables with the file hereafter but that does not work.

ALTER TABLE `phpwcms_user` ADD `usr_vars` MEDIUMTEXT NOT NULL ;
ALTER TABLE `phpwcms_usergroup` ADD `group_name` VARCHAR( 200 ) NOT NULL AFTER `group_id` ;
ALTER TABLE `phpwcms_usergroup` ADD `group_member` MEDIUMTEXT NOT NULL AFTER `group_name` ;
ALTER TABLE `phpwcms_usergroup` ADD `group_timestamp` TIMESTAMP NOT NULL ;
ALTER TABLE `phpwcms_usergroup` ADD `group_trash` INT( 1 ) NOT NULL ;
ALTER TABLE `phpwcms_usergroup` ADD `group_active` INT( 1 ) NOT NULL ;

ALTER TABLE `phpwcms_articlecontent` ADD `acontent_anchor` INT( 1 ) NOT NULL ;

CREATE TABLE `phpwcms_keyword` (
`keyword_id` int(11) NOT NULL auto_increment,
`keyword_name` varchar(255) NOT NULL default '',
`keyword_trash` int(1) NOT NULL default '0',
PRIMARY KEY (`keyword_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

CREATE TABLE `phpwcms_formtracking` (
`formtracking_id` INT NOT NULL AUTO_INCREMENT,
`formtracking_hash` VARCHAR( 50 ) NOT NULL default '',
`formtracking_ip` VARCHAR( 20 ) NOT NULL default '',
`formtracking_created` TIMESTAMP(14) NOT NULL,
`formtracking_sentdate` VARCHAR( 20 ) NOT NULL default '',
`formtracking_sent` INT( 1 ) NOT NULL DEFAULT '0',
PRIMARY KEY (`formtracking_id`)
) TYPE=MyISAM;

Sorry, but I do not have much expierence with PHP and MySQL and perhaps my questions are a bit stupid.
europroducer
Posts: 5
Joined: Wed 7. Jun 2006, 12:27

Post by europroducer »

I think I found the file and created 38 tables. Still get the message:

We are sorry!
For service reasons the system is temporarily not attainable.

Visit us later again!

I checked the DB settings,these are OK.

I think there is no user in the DB??!!
Pappnase

Post by Pappnase »

hello

did you read this and really did all steps!?

http://www.phpwcms-docu.de/installation_en.phtml
europroducer
Posts: 5
Joined: Wed 7. Jun 2006, 12:27

Post by europroducer »

Yes I followed the instructions. I think I will setup the whole programm again.

Thank you very much for your help. Danke schon.

Peter
Pappnase

Post by Pappnase »

hello

:-)

please do not forget to upload all in the binary mode :-)
Post Reply