Fatal error in Step 2
-
europroducer
- Posts: 5
- Joined: Wed 7. Jun 2006, 12:27
Fatal error in Step 2
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
"; 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
-
europroducer
- Posts: 5
- Joined: Wed 7. Jun 2006, 12:27
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
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
-
europroducer
- Posts: 5
- Joined: Wed 7. Jun 2006, 12:27
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.
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
-
europroducer
- Posts: 5
- Joined: Wed 7. Jun 2006, 12:27