[PHP] wbb2.3.6 class_options.php Fehler

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Buzzer, 20. Juni 2007 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 20. Juni 2007
    wbb2.3.6 class_options.php Fehler

    Hi,

    immer wenn ich versuche die daten für die Registration oder die globalen optionen im acp zu ändern kommt beim drücken auf speichern folgender Fehler:

    Code:
    Warning: fclose(): supplied argument is not a valid stream resource in ******/wbb2/acp/lib/class_options.php on line 34
    
    Warning: Cannot modify header information - headers already sent by (output started at /****/wbb2/acp/lib/class_options.php:29) in /****/wbb2/acp/options.php on line 62
    leider kann ich mir nicht helfen, k.a. was das ist ;9 die dateien haben chmod 777 und ich habs sie auch schon neu hochgeladen woran könnte das liegen???

    grz Buzzer für hilfe gibbet BW's

    meine class_options.php sieht so aus:

    Code:
    <?php
    // ************************************************************************************//
    // * WoltLab Burning Board 2
    // ************************************************************************************//
    // * Copyright (c) 2001-2004 WoltLab GmbH
    // * Web http://www.woltlab.de/
    // * License http://www.woltlab.de/products/burning_board/license_en.php
    // * http://www.woltlab.de/products/burning_board/license.php
    // ************************************************************************************//
    // * WoltLab Burning Board 2 is NOT free software.
    // * You may not redistribute this package or any of it's files.
    // ************************************************************************************//
    // * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
    // * $Author: Burntime $
    // * $Rev: 1453 $
    // ************************************************************************************//
    
    
    class options {
     var $path2lib = '';
     
     function options($path2lib) {
     $this->path2lib = $path2lib;
     }
     
     function write() {
     global $db, $n;
     
     $fp = fopen($this->path2lib.'/options.inc.php', 'w+b');
     fwrite($fp, "<?php\n// automatic generated option file\n// do not change\n\n");
     $result = $db->query("SELECT varname, value FROM bb".$n."_options"); 
     while ($row = $db->fetch_array($result)) fwrite($fp, "\$".$row['varname']." = \"".str_replace("\"", "\\\"", dos2unix($row['value']))."\";\n");
     fwrite($fp, "?>");
     fclose($fp); 
     }
    }
    ?>
    
    

    Edit: hat sich erledigt! Die rechte für die dateien waren wohl doch nicht richtig gesetzt!
     
  2. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.