Couple errors in upload_handler.php and include_phpuploader.php

Last post 10-23-2009, 8:30 AM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  10-21-2009, 3:31 PM 56574

    Couple errors in upload_handler.php and include_phpuploader.php

    I clicked the "Insert Image" icon. When I used the upload form at the bottom right of that box, it said it uploaded the file, but then displayed this error in the box:
     
    Deprecated: Function split() is deprecated in D:\Web Sites\getmaxpro.com\httpdocs\bin\components\cute_editor\Dialogs\upload_handler.php on line 77
     
    I went into the upload_handler.php file and changed split() to explode(), and that seemed to fix the error.
     
    But I got another error:
     
    Warning: rename(C:/xampplite/tmp/uploadertemp/persisted.a1b3aa86-eb12-4941-b1d0-675b4515c2c6.twitter_logo.jpg.resx,D:/Web Sites/domain.com/httpdocs/bin/upload/1/editor/images//twitter_logo.jpg) [function.rename]: No such file or directory in D:\Web Sites\getmaxpro.com\httpdocs\bin\components\cute_editor\Dialogs\phpuploader\include_phpuploader.php on line 932
     
     I don't know what's going on here. Am I missing something here? I see that it's putting two forward slashes before the filename. How is that happening?
  •  10-21-2009, 10:44 PM 56581 in reply to 56574

    Re: Couple errors in upload_handler.php and include_phpuploader.php

    Hi,
     
    when you get such error , can you check whether the C:/xampplite/tmp/uploadertemp/persisted.a1b3aa86-eb12-4941-b1d0-675b4515c2c6.twitter_logo.jpg.resx exists or not ?
     
    Do you use SaveDirectory property ?
     
    Regards,
    Terry
  •  10-22-2009, 4:21 PM 56605 in reply to 56581

    Re: Couple errors in upload_handler.php and include_phpuploader.php

    cutechat:
    when you get such error , can you check whether the C:/xampplite/tmp/uploadertemp/persisted.a1b3aa86-eb12-4941-b1d0-675b4515c2c6.twitter_logo.jpg.resx exists or not ?
    Yes, the file does exist.
     
    cutechat:
    Do you use SaveDirectory property ?
    No, I do not.
     
    FYI, I have PHP 5.1.6 on my dedicated server, and file uploads work fine via that machine. But on my local development desktop where this error is occurring, I use PHP 5.3.0. That's about the only difference that I know of offhand.
  •  10-23-2009, 8:30 AM 56634 in reply to 56605

    Re: Couple errors in upload_handler.php and include_phpuploader.php

    Hi,
     
    I think the images//twitter_logo.jpg causes that error.
     
    Maybe you use $file->MoveTo() method , please make sure you remove the last '\'
     
    Regards,
    Terry
View as RSS news feed in XML