To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

F.A.Q. - Read it first! - When I installing forum, pops up the list with files

Matteo - 02-09-2010, 21:39
Temat postu: When I installing forum, pops up the list with files
If during installation, forum shown something like that:

Kod:
You can not install the forum because some files have wrong content, if you edit some file, maybe contain error, if you do not edit any files thats mean some problems with FTP upload on the server, try again.

Details:
language/lang_english/lang_admin.php - File missing!
language/lang_english/lang_admin_album.php - File missing!
language/lang_english/lang_admin_attach.php - File missing!
shoutbox.php - File missing!
shoutbox_body.php - File missing!
shoutbox_send.php - File missing!
shoutbox_view.php - File missing!


Means that, just you don't uploaded some files to server.
Upload it again.

Kod:
File missing - means that the file is not found (should be there)
Wrong content ! Checksum: [ 77c15e155b81709f6ab210065ea91dfe ]
- means that file was modified.

If you upload it 8 times but you still see this error,
then you have to edit file
Kod:
 install.php
.

Looking for THIS:

Kod:
$result = '';
for($i=0; count($file_list) > $i; $i++)
{
    if ( md5_checksum($file_list[$i]) != $md5_sum[$file_list[$i]] )
    {
        $content = md5_checksum($file_list[$i]);
        $result .= ($content) ? '<font color="red"><b>' . $file_list[$i] . '</b></font> - <b>Wrong content !</b> Checksum: <font size="2">[ ' . $content . ' ]</font><br>' : '<font color="red"><b>' . $file_list[$i] . '</b></font> - <b>File missing!</b><br />';
    }
}
if ( $result )
{
    echo'<b>You can not install the forum because some files have wrong content, if you edit some file, maybe contain error, if you do not edit any files thats mean some problems with FTP upload on the server, try again.</b></font><br /><br />Details:<br />' . $result . '';
    exit;
}


about line 54:

Add two forward slashes
Kod:
//
before
Kod:
exit;


and code looks like that:

Kod:
$result = '';
for($i=0; count($file_list) > $i; $i++)
{
    if ( md5_checksum($file_list[$i]) != $md5_sum[$file_list[$i]] )
    {
        $content = md5_checksum($file_list[$i]);
        $result .= ($content) ? '<font color="red"><b>' . $file_list[$i] . '</b></font> - <b>Wrong content !</b> Checksum: <font size="2">[ ' . $content . ' ]</font><br>' : '<font color="red"><b>' . $file_list[$i] . '</b></font> - <b>File missing!</b><br />';
    }
}
if ( $result )
{
    echo'<b>You can not install the forum because some files have wrong content, if you edit some file, maybe contain error, if you do not edit any files thats mean some problems with FTP upload on the server, try again.</b></font><br /><br />Details:<br />' . $result . '';
    //exit;
}


Now save, close, install.

(original content)



Powered by phpBB modified by Przemo © 2003 phpBB Group