Server side exception : failed to image_name.jpg

  •  11-22-2010, 8:55 AM

    Server side exception : failed to image_name.jpg

    Hi all,
     
    I have a problem with CuteEditor when trying to uploading images. I have ip licence.
     
    I have a control panel with its own login system cookies/mySql/php programmed.
     
    To run CuteEditor inside my control panel I did these changes:
     
    1) in the main file  include_CuteEditor.php at the beginning I inserted this code instead of standard
     
    <?php
    /*
    error_reporting(E_ALL ^ E_NOTICE);
    if(!isset($_SESSION)) session_start();
    */

    $Dir_Root = $_SERVER['DOCUMENT_ROOT'];
    require_once($Dir_Root . '/cp/include/costanti.php');
    require_once($Dir_Root . '/cp/include/errors.php');
    require_once($Dir_Root . '/cp/include/utils.php');
    require_once($Dir_Root . '/cp/include/db_manager.php');
    require_once($Dir_Root . '/cp/include/session.php');
    require_once($Dir_Root . '/cp/include/user_info.php');
    require_once($Dir_Root . '/cp/include/user_manager.php');
        
    $user_manager = new UserManager();
    $logged = $user_manager->SessionLoggedIn();
    if (!$logged)
    {
    header("location: " . URL);
    }
    error_reporting(E_ALL ^ E_NOTICE);  
     
    2) I did the same thing in the file "Dialogs/Include_Security.php" 
     
    3) I change also the beginning of the file "Dialogs/phpuploader/include_phpuploader.php"  in the following way:
     
     <?php
    $Dir_Root = $_SERVER['DOCUMENT_ROOT'];
    require_once($Dir_Root . '/cp/include/costanti.php');
    require_once($Dir_Root . '/cp/include/errors.php');
    require_once($Dir_Root . '/cp/include/utils.php');
    require_once($Dir_Root . '/cp/include/db_manager.php');
    require_once($Dir_Root . '/cp/include/session.php');
    require_once($Dir_Root . '/cp/include/user_info.php');
    require_once($Dir_Root . '/cp/include/user_manager.php');
        
    $user_manager = new UserManager();
    $logged = $user_manager->SessionLoggedIn();
    if (!$logged)
    {
    header("location: " . URL);
    }

    error_reporting(E_ALL ^ E_NOTICE);

    /*
    if(@$_GET["ContextValue"])
    {
    if(!@$_SESSION)
    {
    session_id(@$_GET["ContextValue"]);
    }
    else
    {
    echo("Session has started already, unable to set the session id! Please include uploader before session_start().");
    exit(200);
    }
    }
    */
     
    4) I have created "Uploads" folder in the root and open writing access
     
    5) I have created "dialogs/phpuploader/uploadertemp/" folder under cute editor main folder and open it to writing access
     
     
    With these modifications I can use all CuteEditor functionalities behind my control panel on the domain cippato.eu.
    The problem is that on the same server (same ip)  I have  added domain bosellostufe.it and uploaded the same modified cuteeditor...all params are equal for my control panel, but in this case I can not upload images.
    Without my modifications cute editor open upload popups but tell me that it can not go on for session problems.
     
    Please, can you help me?
     
    PS: if you like I can give you an access to control panel both on cippato.eu and bosellostufe.it so you can see that one runs well and the other none. 
     
     Thank you,
    Lorenzo 
     
View Complete Thread