ggmj.de

German Giant Map Junkies
Aktuelle Zeit: Mi Jan 17, 2018 1:59 pm

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 10 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Error when I try to get the logs...
BeitragVerfasst: Do Jun 08, 2006 10:32 am 
Offline

Registriert: Do Jun 08, 2006 10:26 am
Beiträge: 5
Hi,

First, thx for your tool, it's very useful :)

But, when I try to get the logs, it returns an error... :(

Warning: Invalid argument supplied for foreach() in /www/rdfr/Server/UTLC/index.php on line 248
0Files transferred.

Any ideas?

If I copy the manually the logs to the right folder, all is ok!

Thx!

Regards,

Jazza


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Jun 08, 2006 11:11 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Hi

Zitat:
First, thx for your tool, it's very useful :)


Ty :)

Zitat:
But, when I try to get the logs, it returns an error... :(


looks like the path for the logfiles on the gameserver isnt entered correctly?!
Could you please post the line
Code:
$ftp_logs_dir="....";

of your config.php?

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Jun 08, 2006 1:29 pm 
Offline

Registriert: Do Jun 08, 2006 10:26 am
Beiträge: 5
Thx for the quick reply!

$ftp_logs_dir ="/UserLogs/";

Regards,

Jazza.


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Jun 08, 2006 5:57 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
But late 2nd reply, sorry, was afk.

Is this really the correct and full path? It should look like
/home/user/gameservers/ut2004/publicserver/UserLogs/
at linux.

Please take a look at it if it's really correct(please also try to remove the slash at the end)... otherwise we will find out whats happening in another way.

phew...

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 9:32 am 
Offline

Registriert: Do Jun 08, 2006 10:26 am
Beiträge: 5
Sry for the late reply...

The gameserver is a windows server and it's not on the same server as the website.

So, when I connect to the ftp server (of the gameserver), I directly connect to the tree of UT2004

IPServer
*Animations
*Demos
*Karmadata
*.....
*UserLogs

I've try:
to remove the / at the end,
"/UT2004/Userlogs/",
"/home/UserLogs/"
"\UserLogs\""
"\UserLogs\"
"\IP\UserLogs\""
"\IP\UserLogs\"
"\\UserLogs\""

Any ideas?

Thx!

Jazza.


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 11:18 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
np m8, we arent at work here, but also sorry for the late reply ;)

please try:
Code:
<pre>
<?
include("config.php");
$conn_id = @ftp_connect($ftp_server);
$login_result = @ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

if($login_result!=1)
echo $msg[$lng]['getlogs']['error'];
else
    {
    $anzahlfiles=0;
    ftp_chdir ($conn_id,$ftp_logs_dir);
    $contents = ftp_rawlist($conn_id, ".");

print_r($contents);
   }
?>
</pre>
^^ please upload this as a new file into the utlc-directory and see what happens if you access it via web. In normal cases a list of the contents of the directory should be displayed.
At our servers they look like:
Code:
    [2173] => -rw-------   1 user group      604 Jun  8 22:14 PlayerJoin_30147_2006_06_09_00_09_22.log
    [2174] => -rw-------   1 user group      789 Jun  8 22:19 PlayerJoin_30147_2006_06_09_00_14_04.log
    [2175] => -rw-------   1 user group      506 Jun  8 22:23 PlayerJoin_30147_2006_06_09_00_19_00.log


Please post some example-entries of your server (please relevant entries with "PlayerJoin...log" in it).

Hope you know what i mean :)

Greetz and good luck,
~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 12:00 pm 
Offline

Registriert: Do Jun 08, 2006 10:26 am
Beiträge: 5
So, it seems to be a prob of permissions...

Warning: ftp_rawlist(): Unable to create temporary file. Check permissions in temporary files directory. in /home/users/c/cobinmaster/www/rdfr/Server/UTLC/test.php on line 13

permissions in the webserver are set to 777

permissions of the Userlogs in the gameserver is set to 766

maybe is it the problem?

regards,

jazza


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 12:50 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
I dont think it's related to UTLC, maybe a config-error at you webhoster.
The small code-snippet from above does not write a single file on your webspace, it simply gets the directory-contents and prints them to the screen. Nothing special at all. It looks like PHP cant store the directory-listing on it's internal temp-folder, but this has nothing to do with UTLC.

Also there cant be found much related to this error at google:
http://www.google.com/search?hl=en&lr=& ... tnG=Search

hmmm... what we gonna do now? :?

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 1:27 pm 
Offline

Registriert: Do Jun 08, 2006 10:26 am
Beiträge: 5
I'll ask my webmaster if he don't have a clue about this one. (it's not the first time that we have some probs with phpnet.org)

If I find a solution, I'll give you the feedback ;)

If i don't, I can, always, upload manually the logs to the websever ;)

thx for your help!

Regards,

Jazza.


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Jun 09, 2006 4:15 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Wish you good luck again :) If they cant find it, there are sooo many providers out there... you'll find a good one. And really, this script does nothing which isnt supported by a standard-LAMP-Environment.

Thx for reporting back later - Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 10 Beiträge ] 

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron

Deutsche Übersetzung durch phpBB.de