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

See all posts Reply

Error: No source file. Can't carry on a process new!
by networ, 15 years, 1 month ago
Hello,

i use class version 0.2.
On Apache Windows work wery well, but on Linux give me this error...
could you say me where is the problem?

Thank youReply
Re: Problem: Error: No source file. Can't carry on a process new!
by colin, 15 years, 1 month ago
I suppose you use version 0.20, not 0.2

In any case, I can't say much without the log file, or your code.

What does the log print?
echo $foo->log;
Reply
Re: Problem: Error: No source file. Can't carry on a process new!
by networ, 15 years ago
i receive this:
Array ( 
 [image_field] => Array ( 
   [name] => 1.jpg 
   [type] => image/pjpeg 
   [tmp_name] => /tmp/phpmHXz0q 
   [error] => 0 
   [size] => 11221 ) 
 [image_field_2] => Array ( 
   [name] => 
   [type] => 
   [tmp_name] => 
   [error] => 4 
   [size] => 0 ) 
 [image_field_3] => Array ( 
   [name] => 
   [type] => 
   [tmp_name] => 
   [error] => 4 
   [size] => 0 )
 [image_field_8] => Array ( 
   [name] => 
   [type] => 
   [tmp_name] => 
   [error] => 4 
   [size] => 0 ) )

error : No source file. Can't carry on a process/tmp/phpmHXz0q
- new file name body : 1159530817_thumb
- file name safe format
- destination variables
    file_dst_path : /usr/virtual/webs/pastirik/galerie/image/
    file_dst_name_body : 1159530817_thumb
    file_dst_name_ext : jpg
- image operation, change extension for conversion type
- checking for auto_rename
    file_dst_name : 1159530817_thumb.jpg
    file_dst_pathname : /usr/virtual/webs/pastirik/galerie/image/1159530817_thumb.jpg
- 1159530817_thumb.jpg doesn't exist already

i upload new version 0.20 but same ...Reply
Re: Problem: Error: No source file. Can't carry on a process new!
by colin, 15 years ago
Firstly, you have three of your images out of four which didn't upload.

Apart from that, does it work for other files? Or when you are not doing multiple uploads?

Are you in a chroot environment? What server are you running the class on? Which version of PHP?Reply
Re: Problem: Error: No source file. Can't carry on a process new!
by Seanie, 15 years, 1 month 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, 15 years, 1 month 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, 13 years, 11 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
Re: Problem: Error: No source file. Can't carry on a process new!
by Seanie, 15 years, 1 month ago
I changed that Limit to 64M for
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 64M
in the php.ini file
This didnt work.

However I upgraded my version of php to version 5.1.6
and it worked!! :-D

Thank you for a great classReply
Re: Problem: Error: No source file. Can't carry on a process new!
by colin, 15 years, 1 month ago
Glad that it works!Reply