[TYPO3] cant install bg_htmlarea

Cate & Peter catepeter at optusnet.com.au
Fri Dec 7 04:40:13 CET 2007


Hi all

 

When I try to install bg_htmlarea, I get the following warning.

 


Warning: fopen(/home/deafhub/public_html/typo3conf/ext/bg_htmlarea/)
[function.fopen <http://www.deafhub.com/typo3/mod/tools/em/function.fopen>
]: failed to open stream: Is a directory in
/home/deafhub/public_html/t3lib/class.t3lib_div.php on line 2438




Extension Manager


Extension import results


Error: File "/home/deafhub/public_html/typo3conf/ext/bg_htmlarea/" could not
be created!!!

 

 

class.t3lib_div.php has been giving me problems since I had fun and games
installing timtab. Line 2438 is

if ($fd = fopen($file,'wb'))   {

 

and appears in the following code

 

/**

           * Writes $content to the file $file

           * Usage: 30

           *

           * @param    string            Filepath to write to

           * @param    string            Content to write

           * @return     boolean                   True if the file was
successfully opened and written to.

           */

          function writeFile($file,$content)     {

                   if (!@is_file($file))    $changePermissions = true;

 

                   if ($fd = fopen($file,'wb'))   {

                             $res = fwrite($fd,$content);

                             fclose($fd);

 

                             if ($res===false)     return false;

 

                             if ($changePermissions)       {        //
Change the permissions only if the file has just been created

                                      t3lib_div::fixPermissions($file);

                             }

 

                             return true;

                   }

 

                   return false;

          }

 

Any clues? I am php illiterate.

 

Regards

 


Cate Deans Smith


 



More information about the TYPO3-english mailing list