Error: No source file. Can't carry on a process

See all posts See thread Reply

Re: Problem: Error: No source file. Can't carry on a process new!
by Seanie, 17 years, 7 months ago
I have the same problem.

The script works for smaller images JPG.
300kb ish.

However when I upload JPG's over 1mb I get the Error: No source file

I used the script that came with the class and i get the same error.

My php.ini file has been changed to:
upload_max_filesize = 20M
post_max_size = 20M

The log file says:
source is an uploaded file
- upload OK
- file name OK
- source variables
    file_src_name         : DSCF0532.JPG
    file_src_name_body    : DSCF0532
    file_src_name_ext     : jpg
    file_src_pathname     : /tmp/php5FPsJI
    file_src_mime         : image/jpeg
    file_src_size         : 1575689 (max= 104857600)
    file_src_error        : 0
process file to ./test/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
    file_dst_path         : ./test/
    file_dst_name_body    : DSCF0532
    file_dst_name_ext     : jpg
- image operation, keep extension
- checking for auto_rename
    auto_rename to DSCF0532_4.jpg
- destination file details
    file_dst_name         : DSCF0532_4.jpg
    file_dst_pathname     : ./test/DSCF0532_4.jpg
- DSCF0532_4.jpg doesn't exist already
- image resizing or conversion wanted
Reply
Re: Problem: Error: No source file. Can't carry on a process new!
by colin, 17 years, 7 months ago
You are probably running out of memory. Big images require a lot of memory to be resized or even converted. See this thread

Try to raise your local memory to 20M, 32M or more.

You can add this in your script:
ini_set ( "memory_limit", "20M")

Or in a .htaccess file:
php_value memory_limit 20M
Reply
Re: Problem: Error: No source file. Can't carry on a process new!
by Rasmus, 16 years, 5 months ago
I was running 0.19 on a PHP4 installation. When switching to PHP 5.2.4, it no longer worked and I got above error message. Upgrading class.upload.php to 0.25 solved the issue.

Cheers

RazReply