Re: Joomla Cute Editor Image Upoad not working

  •  03-16-2011, 4:49 PM

    Re: Joomla Cute Editor Image Upoad not working

    Dear Peter,
     
    I have checked your website and can reproduce the issue, please set one temporary directory and try it again.
    How to set temporary directory?

    Please follow steps:

    1. Please open "cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php"
    2. search the following line:

       function PhpUploader()
     {
      $this->Name="AjaxUploaderFiles";
      $cd=dirname($this->GetWebPath(__FILE__));  
      $this->ResourceDirectory="$cd/resources";
      $this->ResourceHandler="$cd/ajaxuploaderresource.php";
      $this->UploadUrl="$cd/ajaxuploaderhandler.php";
    3. if CuteEditor for joomla:
       update it to:
        function PhpUploader()
     {
      $this->Name="AjaxUploaderFiles";  
      $cd=dirname($this->GetWebPath(__FILE__));
      $cd = "/plugins/editors/cuteeditor_files/Dialogs/phpuploader";
      $this->ResourceDirectory="$cd/resources";
      $this->ResourceHandler="$cd/ajaxuploaderresource.php";
      $this->UploadUrl="$cd/ajaxuploaderhandler.php";
            if CuteEditor for PHP, how to get the value of variable "$cd"?
       a. save "cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php" as "include_phpuploader(bak).php"
       b. edit "cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php", remove all code of this file
       c. open cuteeditor, click button "insert image", you will find the upload button is replaced by one error message which looks like:
          Fatal error: Class 'PhpUploader' not found in /home/www/clients/client0/web15/web/plugins/editors/cuteeditor_files/Dialogs/upload.php on            line 99
       d. You can find php uploader will find file in "/home/www/clients/client0/web15/web/plugins/editors/cuteeditor_files/Dialogs/upload.php"
          the $cd value should be:
          $cd = "/home/www/clients/client0/web15/web/plugins/editors/cuteeditor_files/Dialogs/phpuploader";

     
    Thank you for asking
View Complete Thread