Bug Tracking


 
 

Zu Fehlernotizen springen   Zur Fehlerhistorie springen   Drucken   vorherige Seite nächste Seite
 
ID Kategorie Version Auswirkung Reproduzierbar Meldungsdatum Letzte Aktualisierung
700 [openPHPnuke] Module opn 2.3.x Schwerer Fehler Immer 07.12.2005 16:55:29 08.12.2005 00:23:33
 
Reporter Luke
Status anzeigen Öffentlich
Bearbeitung durch hombergs
Priorität Normal
Lösung Kein Fehler
Status Geschlossen
...
Projektion Keine
Aufwand Keiner
...
Zusammenfassung Mediengalerie Upload Fehler, wenn opn nicht im Hauptverzeichnis installiert ist
Beschreibung Wenn in Admin Mediengalerie Methode zur Größenänderung von Bildern auf GD2 gestellt ist:

1 Uploads waren erfolgreich.

Klicke auf 'Weiter', um die Dateien den Alben hinzuzufügen. (dann auf weiter klicken)

Dann auf Änderungen übernehmen.

Dann kommt folgende Fehlermeldung:

Fehler: rename_file: cannot rename file [/srv/www/htdocs/web1/html/start/cache/mediagallery_upload_1133905905/lenkrad_lila.jpg]
_____________________

Wenn in Admin Mediengalerie Methode zur Größenänderung von Bildern auf ImageMagick gestellt ist:

In der MG wieder Bild upload ausführen

Dann kommt folgende Fehlermeldung:
0 Uploads waren erfolgreich.


Upload-Fehler

Dateiname      Fehlermeldung
lenkrad_lila.jpg      Kein Bild oder Datei ist korrupt

Anmerkung: Das Bild ist IO, weil es bei einer OPN Installation im Hauptverzeichnis keine Probleme macht

______________

Wenn in Admin Mediengalerie Methode zur Größenänderung von Bildern auf ImageMagick via Perl Aufrufe gestellt ist:

Wieder Bild upload auführen.
Dann kommt diese Fehlermeldung:



Fehler: #!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }



Schritte zur Reproduzierung Administration->Einstellungen->Server-> php ftp funktionen
Zusätzliche Information Rev.4423
 
Fehler Beziehungen
Verwandt mit 699 Geschlossen  hombergs  openPHPnuke  Perl Dateisystem Funktionen funktionieren nicht wenn opn nicht im Hauptverzeichnis installiert ist
Fehlernotiz
hombergs
08.12.2005 00:23:06
Es fehlen 2 Einstellungen in der mainfile.php vor der Includezeile.

$opnConfig['opn_url_cgi'] = 'http://URL';
$opnConfig['root_path_base'] = 'path/';
Wobei URL ohne Unterverzeichnis meint und Path den Path ohne dem Unterverzeichnis.
Die Perlscripte müssen dann im cgi-bin Dir des Webspaceroots liegen.
hombergs
07.12.2005 19:42:48
Siehe Bug ID: 699.
Luke
07.12.2005 17:26:34
Die Konstellation perl Dateifunktionen und Admin Galerie GD2 funktioniert, wenn auf dem Server "CGI/Perl außerhalb cgi-bin" aktiviert ist. Komischerweise auch dann, wenn das cgi-bin Verzeichnis nur im Hauptverzeichnis des Servers liegt und NICHT im OPN-Hauptverzeichnis.

Verstehe jetzt nicht so ganz, warum "CGI/Perl außerhalb cgi-bin" aktiviert sein muß, damit die cgi´s im cgi-bin Verzeichnis funktionieren. Dachte die Funktion ist dafür da, damit cgi´s außerhalb des cgi-bin Verzeichnisses funktionieren!?

Wenn ich im Admin MG nun auf Imagemagick via Perl einstelle bekomme ich aber eine Fehlermeldung (wenn das cgi-bin im opn-hauptverzeichnis nicht vorhanden ist). Dann will er nämlich auf cgi´s im opn-hauptverzeichnis (also html/start/cgi-bin) zugreifen und nimmt nicht das cgi-bin im Hauptverzeichnis (html/cgi-bin).
Wenn ich das cgi-bin nun wieder auch ins opn-Hauptverzeichnis kopiere (html/start/cgi-bin) dann gibt es diese Fehlermeldung:

Fehler: #!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }
#!/usr/bin/perl print "Content-type: text/html\n\n"; use LWP::Simple; use CGI; $q = new CGI; $action = $q->param( "action" ); $opnpath = $q->param( "opnpath" ); $file = $q->param( "file" ); $impath = $q->param( "impath"); $format = $q->param( "format"); $hierroot = $ENV{"DOCUMENT_ROOT"}."/"; $hierroot =~ s-//-/-; if ($opnpath eq $hierroot) { if ($action eq "identify") { system ($impath . 'identify -format \''. $format . '\' ' . $file . " 2>&1"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died: signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "%s\n", $?>> 16; } } }


Welches cgi-bin Verzeichnis wird denn nun von OPN benutzt? Das im Hauptverzeichnis (html/cgi-bin) oder das im OPN-Hautpverzeichnis (html/start/cgi-bin) oder mal dies und mal das, also beide?

Bin jetzt etwas verwirrt.


Fehlerhistorie
Änderungsdatum Benutzername Feld Änderung
08.12.2005 00:23:33 hombergs Beziehung hinzugefügt Verwandt mit 699
08.12.2005 00:23:19 hombergs Status Behoben => Geschlossen
08.12.2005 00:23:06 hombergs Fehlernotiz hinzugefügt: 1072  
08.12.2005 00:23:06 hombergs Lösung Offen => Kein Fehler
08.12.2005 00:23:06 hombergs Behoben in Version => opn 2.3.x
08.12.2005 00:23:06 hombergs Status Zugewiesen => Behoben
07.12.2005 22:48:05 hombergs Status Neu => Zugewiesen
07.12.2005 22:48:05 hombergs Bearbeitung durch => hombergs
07.12.2005 19:42:48 hombergs Fehlernotiz hinzugefügt: 1068  
07.12.2005 17:26:34 Luke Fehlernotiz hinzugefügt: 1066  
07.12.2005 16:55:29 Luke Neuer Fehler  


 
Ladezeit 0.09337 Sekunden