Strange error on step=1

Please post all install related problems here. Visit this forum first for troubleshooting.
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Strange error on step=1

Post by Alex123 »

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.

Image

Any ideas what this could be ?

Thank you
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

reupload the File(s) again - seems that setup.php is corrupt.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

Thank you pico for your reply,

I reuploaded the setup directory but I am still getting the error.
So I decited to reupload all the files. I will let you know if that helps

Thank you
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

Hi again,

I did reupload everything and I still get the same error :(
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

Hi DF6IH,

I am not sure what is the point of your reply :?
Sorry if I am missing something you are trying to tell me :o
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

sorry, just a small hint.

Your pic shows code renderd as text.....

some ftp programs do unproper jobs. Mistake looks like ANSI ist not transpherd propper.

Filezilla is one (!) of known good ftp programs ..

short answers only show author should end day :D

greetings

Jürgen, now :idea: off ;)
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

Oh I see what you mean :) Thank you for your suggestion, I will try this ftp client to see if there is a difference.

Have a good night :wink:
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

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) :wink:
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;
}

?>
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

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 ??
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Alex123 wrote: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!
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)?
Alex123
Posts: 20
Joined: Fri 21. Apr 2006, 18:25

Post by Alex123 »

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.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Alex123 wrote: I don't know if this has something to do with this.
NOPE :wink:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

{UPDATE]

Post by flip-flop »

Oh Lord, what have Oliver do? :shock:
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
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).

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;
- -> 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
Last edited by flip-flop on Tue 2. May 2006, 06:45, edited 1 time in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

use correct FTP clients - so I have tested the install using the published release on multiple systems.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply