Strange error on step=1
Strange error on step=1
Hi everyone,
Just today I tried to install the newest 1.2.6 version. After I chmod all the appropriate folders and files, I pointed my browser on the setup page and I came faced with a strange error. This didn't happen with previous version 1.2.5
I have attached a screen shot of the error, since it is pretty long.
Any ideas what this could be ?
Thank you
Just today I tried to install the newest 1.2.6 version. After I chmod all the appropriate folders and files, I pointed my browser on the setup page and I came faced with a strange error. This didn't happen with previous version 1.2.5
I have attached a screen shot of the error, since it is pretty long.
Any ideas what this could be ?
Thank you
Just be sure you put your FTP client in "ASCII" mode, not "Binary" mode, when sending the files up. It looks like premature ending of the following file's execution at a string of characters containing ?> (which gets interpreted as the end of PHP code for that file)
The file causing that particular problem is "/setup/setup.func.inc.php" and it's happening right where blue changes to red:
The file causing that particular problem is "/setup/setup.func.inc.php" and it's happening right where blue changes to red:
$conf_file .= "\n\n?>";
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;
}
?>
Well I tried this also but nothing changed.
Then I thought of trying something else, I uploaded the setup folder from 1.2.6 DEV that I downloaded few days ago and to my surprise it worked !!!
Then I uploaded the one from the newer version and again the problem came back !!!
Could it be that there is something wrong with the new 20060427_phpwcms_1.2.6 version ??
Then I thought of trying something else, I uploaded the setup folder from 1.2.6 DEV that I downloaded few days ago and to my surprise it worked !!!
Then I uploaded the one from the newer version and again the problem came back !!!
Could it be that there is something wrong with the new 20060427_phpwcms_1.2.6 version ??
I didn't use the files in question, BUT... YES, you are correct!Alex123 wrote:Could it be that there is something wrong with the new 20060427_phpwcms_1.2.6 version ??
There is some sort of difference in the carriage return types used previously and in this version, according to WinMerge. Perhaps, because there are some tabbed linebreaks (leading tabs on a blank line)?
This is beyond my knowledge.
The following lines, exist on the setup.func.inc of the 20060427_phpwcms_1.2.6 version but not on 1.2.6. DEV
$conf_file .= "\$phpwcms[\"cache_enabled\"] = 0; //cache On/Off - 1 = caching On / 0 = caching Off (default)\n";
$conf_file .= "\$phpwcms[\"form_tracking\"] = 1; //make a db entry for each form\n";
$conf_file .= "\$phpwcms[\"formmailer_set\"] = array('allow_send_copy' => 0, 'global_recipient_email'
=> 'form@localhost'); //for better security handling\n";
$conf_file .= "\$phpwcms[\"allow_cntPHP_rt\"] = 0; //allow PHP replacement tags and includes in content parts\n";
I don't know if this has something to do with this.
The following lines, exist on the setup.func.inc of the 20060427_phpwcms_1.2.6 version but not on 1.2.6. DEV
$conf_file .= "\$phpwcms[\"cache_enabled\"] = 0; //cache On/Off - 1 = caching On / 0 = caching Off (default)\n";
$conf_file .= "\$phpwcms[\"form_tracking\"] = 1; //make a db entry for each form\n";
$conf_file .= "\$phpwcms[\"formmailer_set\"] = array('allow_send_copy' => 0, 'global_recipient_email'
=> 'form@localhost'); //for better security handling\n";
$conf_file .= "\$phpwcms[\"allow_cntPHP_rt\"] = 0; //allow PHP replacement tags and includes in content parts\n";
I don't know if this has something to do with this.
{UPDATE]
Oh Lord, what have Oliver do?
He hasn´t convert the files from his Mac (cariage return=OD) to carriage return-line feed =#0D#0A.
[UPDATE]
But there is a simple solution i hope.
You have a running 1.26 DEV?
NO -> Do a normal 1.26DEV -Setup, if you have an set downloaded before 27.04.06.
After 1.26DEV are running:
Please make only an update without setup.
Hava look too: http://www.phpwcms.de/forum/viewtopic.php?p=64329#64329
0. Delete the folder /phpwcms_code_snippets/ at your webspace
1. Backup the following files/folders: /config/phpwcms/, /phpwcms_template/inc_css/
2. Copy all files/folders of the new version to your webspace without the folder: setup
3. Copy the backed up files/folders back to your webspace. (Overwrite = yes)
4. Complete your conf.inc.php with the following lines: (Use this instead of Olivers (0D0A-Problem))
5. Update your database via phpMyAdmin:
- Select your database
- Select SQL
- Insert the the following content into the SQL field.
(For an 12.6DEV 14.12.05 only the last block "CREATE TABLE `phpwcms_formtracking......" is necessary).
- -> Ok --> Several error messages are shown (If you have used all). Normaly that is ok.
6. Close phpMyAdmin
7. Login and be happy.
Gruß Knut
He hasn´t convert the files from his Mac (cariage return=OD) to carriage return-line feed =#0D#0A.
[UPDATE]
But there is a simple solution i hope.
You have a running 1.26 DEV?
NO -> Do a normal 1.26DEV -Setup, if you have an set downloaded before 27.04.06.
After 1.26DEV are running:
Please make only an update without setup.
Hava look too: http://www.phpwcms.de/forum/viewtopic.php?p=64329#64329
0. Delete the folder /phpwcms_code_snippets/ at your webspace
1. Backup the following files/folders: /config/phpwcms/, /phpwcms_template/inc_css/
2. Copy all files/folders of the new version to your webspace without the folder: setup
3. Copy the backed up files/folders back to your webspace. (Overwrite = yes)
4. Complete your conf.inc.php with the following lines: (Use this instead of Olivers (0D0A-Problem))
Code: Select all
$phpwcms["form_tracking"] = 1; //make a db entry for each form
$phpwcms["formmailer_set"] = array('allow_send_copy' => 0, 'global_recipient_email' => 'form@localhost'); //for better
- Select your database
- Select SQL
- Insert the the following content into the SQL field.
(For an 12.6DEV 14.12.05 only the last block "CREATE TABLE `phpwcms_formtracking......" is necessary).
Code: Select all
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;
6. Close phpMyAdmin
7. Login and be happy.
Gruß Knut
Last edited by flip-flop on Tue 2. May 2006, 06:45, edited 1 time in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact: