Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7528 now.

Automatic Update: FTP -> File exist Check is not working properly (fix completed in vcs)

This whole functions is not working correctly:

if (!$transfer->file_exists($phpbb_root_path, 'common.' . $phpEx))
{
$test_connection = 'ERR_WRONG_PATH_TO_PHPBB';
}

$phpbb_root_path is the global var for the directory of the phpbb forum, NOT the one you have filled in in the ftp form, which should be:
$transfer->root_path

if (!$transfer->file_exists($transfer->root_path, 'common.' . $phpEx))
{
$test_connection = 'ERR_WRONG_PATH_TO_PHPBB';
}

However, the function is still not working, not sure why not, but after I've removed it from the script, the installation just went fine :).

Comments / History

Posted by Acyd Burn (Server Manager) on Apr 10th 2009, 09:56

It should not make a difference... in file_exists:

Code: Select all
      $directory = $this->root_path . str_replace($phpbb_root_path, '', $directory);


$this->root_path is $transfer->root_path. ;)

Linked ticket with changeset: r9433

Action performed by Anonymous (I am too lazy to register) on Apr 10th 2009, 10:13

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Apr 10th 2009, 10:14

Ticket details

Related SVN changesets