anpera.net https://anpera.homeip.net/phpbb3/ |
|
Avataruploads von externen Seiten https://anpera.homeip.net/phpbb3/viewtopic.php?f=4&t=4859 |
Seite 1 von 1 |
Autor: | Liath [ Sa 04 Apr, 2009 08:01 ] |
Betreff des Beitrags: | Avataruploads von externen Seiten |
hoi... hatte heute versucht von meiner Seite hier einen Avatar hochzuladen, dabei kam folgende Fehlermeldung: Zitat: [phpBB Debug] PHP Notice: in file /includes/functions_upload.php on line 790: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (D:/htdocs;C:/Windows/Temp) das externe verlinken geht greetZ |
Autor: | Dinarius [ Sa 04 Apr, 2009 16:03 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
Liath hat geschrieben: [phpBB Debug] PHP Notice: in file /includes/functions_upload.php on line 790: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (D:/htdocs;C:/Windows/Temp) English for insiders .... Englisch für reingefallene Wichtig ist diese Zeile: File(../blubb.php) is not within the allowed path(s): Die blubb.php liegt nicht dort, wo das Script sie erwartet. Das kann z.B. an der Serverkonfiguration liegen. Zur Erklärung - so sieht der Pfad aktuell aus und erzeugt die Fehlermeldung: require_once("blubb.php"); Und hier erwartet das Script die Datei, der Pfad muss also geändert werden: require_once("blubb/blubb/blubb.php"); bzw. sicher das du überhaupt eine Funktion tempnam() hast, und nicht vielleicht doch ne Funktion tempname() Inner Source isses leider nicht einsehbar |
Autor: | Arath [ Sa 04 Apr, 2009 16:29 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
Hey Dinarius, ich glaube er meint, dass er bei Anpera ein Avatar von einem externen Speicherort hochladen will - und das nicht funktioniert. Schließe ich zumindest hierraus: Zitat: hatte heute versucht von meiner Seite hier einen Avatar hochzuladen Mit freundlichen Grüßen Kai A. Wolf |
Autor: | Harthas [ So 05 Apr, 2009 01:21 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
Im übrigen scheint Dinarius die Fehlermeldung auch nicht ganz korrekt gedeutet zu haben. Der Aufruf der Funktion tempnam auf Zeile 790 in der Datei functions_upload.php erzeugt eine Notice-Fehlermeldung. Durch eine Einschränkung der open_basedir-Einstellung kann die Funktion nicht korrekt ausgeführt werden. ;-) |
Autor: | Dinarius [ So 05 Apr, 2009 02:08 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
nen Versuch isses dennoch wert. Mal von einfach Sachen auszugehen. Ich hab mal ne Google-suche anders aufgedröselt. Dabei kam das als vielleicht etwas nützlichere raus. Guide: Fixing open_basedir restriction error for avatar u/l Ist aber in Englisch. In Deutsch hab da bisher noch nichts gefunden... ~auf die Uhr schautz~ Mr.€d schreibt: Bug Tracker phpBB hat geschrieben: $tmp_path seems to be wrong in includes/functions_upload.php (fix completed in svn) Code: Select all $tmp_path = (!@ini_get('safe_mode')) ? false : $phpbb_root_path . 'cache'; $filename = tempnam($tmp_path, unique_id() . '-'); Looks like there is a mistake in !@ini_get('safe_mode'). If we have safe_mode "Off" in php.ini, $tmp_path become "" and function.tempnam() trying to record temporary avatar-file in a default system temp path, which may be out of range because of the open_basedir restriction and cause such error: [phpBB Debug] PHP Notice: in file /includes/functions_upload.php on line 745: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (/home/web) I suggest it must looks like this: @ini_get('safe_mode'), without "!". Am I wrong and this is a feature? das mit dem e war Quark von mir bzw. eh nur ein Tipp ins Blaue. Aber es scheint wirklich so zu heißen. |
Autor: | anpera [ So 05 Apr, 2009 02:58 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
Danke für den Hinweis Liath. Und danke für's Suchen Dinarius. Das ! war's tatsächlich. Da hätte ich mir in der PHP.INI erfolglos nen Wolf gsucht. |
Autor: | Liath [ So 05 Apr, 2009 03:02 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
jau.. nu gehts |
Autor: | Dinarius [ So 05 Apr, 2009 03:04 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
ich hab da noch bißchen mehr. Meine russisch ist mir etwas eingerostet. Zitat: Angebot [phpBB Debug] PHP Notice: in file /includes/functions_upload.php on line 747: tempnam() [function.tempnam]: open_basedir restriction in effect. [phpBB Debug] PHP Notice: in der Datei / includes / functions_upload.php on line 747: tempnam () [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (:/tmp) File () ist nicht erlaubt innerhalb der Pfad (s): (: / tmp) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2948) [phpBB Debug] PHP Notice: in der Datei / includes / functions.php on line 3526: Cannot modify header information - headers already sent by (output started at / includes / functions.php: 2948) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3528: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2948) [phpBB Debug] PHP Notice: in der Datei / includes / functions.php on line 3528: Cannot modify header information - headers already sent by (output started at / includes / functions.php: 2948) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3529: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2948) [phpBB Debug] PHP Notice: in der Datei / includes / functions.php on line 3529: Cannot modify header information - headers already sent by (output started at / includes / functions.php: 2948) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3530: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2948) [phpBB Debug] PHP Notice: in der Datei / includes / functions.php on line 3530: Cannot modify header information - headers already sent by (output started at / includes / functions.php: 2948) И так открываем файл /includes/functions_upload.php So öffnen Sie die Datei / includes / functions_upload.php Находим там такую строку Wir finden es eine Zeile wie diese Цитировать Angebot $tmp_path = (!@ini_get('safe_mode')) ? Tmp_path = $ (! @ Ini_get ( 'safe_mode'))? false : $phpbb_root_path . false: $ phpbb_root_path. 'cache'; "Cache"; и сразу после этой строки ставим этот код und gleich nach, dass die Linie, den Code Цитировать Angebot $tmp_path = $phpbb_root_path . $ Tmp_path = $ phpbb_root_path. 'cache'; // Загрузить с URL (Fix) 'Cache'; / / Download von URL (Fix) В итоге должно получится такой код Dies hat zur Folge, sollte ein solcher Code Цитировать Angebot $tmp_path = (!@ini_get('safe_mode')) ? Tmp_path = $ (! @ Ini_get ( 'safe_mode'))? false : $phpbb_root_path . false: $ phpbb_root_path. 'cache'; "Cache"; $tmp_path = $phpbb_root_path . $ Tmp_path = $ phpbb_root_path. 'cache'; // Загрузить с URL (Fix) 'Cache'; / / Download von URL (Fix) $filename = tempnam($tmp_path, unique_id() . '-'); $ Filename = tempnam ($ tmp_path, unique_id ().'-'); Вот и все Das ist alles Display-Sprache PS Чтоб это работало надо активировать Использование url_fopen/url_include/sockets/CURL тут ! PS Dazu ist es notwendig, um die Verwendung von url_fopen / url_include / Buchsen / CURL hier! Проверено на phpBB 3.0.1 и 3.0.2 Getestet auf phpBB 3.0.1 und 3.0.2 Link dazu mal... Russisches php forum ... übersetzung hackelt sehr. Tread 9 von allcity Mr. €d: @ Anpera, komm ich jetzt ins Fernsehen? ... ... Nee, mal Spaß bei Seite. Du bietest hier ein Super-Forum. *Lob!* Und da isses mal schön in irgendeiner Form was zurück geben zu können. Auch wenn der "Doofe" nur was findet. |
Autor: | anpera [ So 05 Apr, 2009 03:28 ] |
Betreff des Beitrags: | Re: Avataruploads von externen Seiten |
Na du glaubst ja gar nicht, wie viel Arbeit mir das erspart hat. Es hätte eine Weile gedauert, bevor ich im phpBB-Code (oder bei Google) zu suchen angefangen hätte... Aber im russischen Text isses ja eindeutig. Bestimmt. Also könnte jedenfalls sein. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |