ftp browse problem

This is the dedicated forum for RemoteCP4: the web based dedicated server control script.

Moderators: hal|Sascha, TM-Patrol

Post Reply
revil
highway camper
highway camper
Posts: 3
Joined: 28 Nov 2008 15:04
Owned TM-games: TMNF

ftp browse problem

Post by revil » 29 Nov 2008 17:45

I just installed RemoteCP and it works fine, only ftp browse.
When i upload a file i can see it there, but i can not mark it to insert to the challenge list there ist still the error, where the box usually was
[PHP Warning] array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 384 in file /var/www/trackmania/remote/plugins/Browse/index.php[PHP Warning] array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 385 in file /var/www/trackmania/remote/plugins/Browse/index.php

revil
highway camper
highway camper
Posts: 3
Joined: 28 Nov 2008 15:04
Owned TM-games: TMNF

Re: ftp browse problem

Post by revil » 01 Dec 2008 12:56

nobody knows how i can fix it?

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: ftp browse problem

Post by hal|Sascha » 05 Jan 2009 12:04

should be fixed with version 4.0.2.8 coming soon.
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

realgeizt
pedestrian
pedestrian
Posts: 7
Joined: 04 Sep 2007 14:35
Owned TM-games: TMN

Re: ftp browse problem

Post by realgeizt » 24 Jan 2009 10:03

Change Line 384/385 of plugins/Browse/index.php to the following:

Code: Select all

$envir  = (is_array($value) && array_key_exists('header', $value) && array_key_exists('envir', $value['header'])) ? ' ('. $value['header']['envir'] .')'  : '';
$author = (is_array($value) && array_key_exists('header', $value) && array_key_exists('author', $value['header'])) ? $value['header']['author'] : '--';
This will remove the warnings.

Post Reply