Error: "Can't carry on a process" after second process

See all posts Reply

Error: "Can't carry on a process" after second process new!
by Cameron Cooke, 17 years, 4 months ago
I have a upload script that I wrote using your upload.class to upload images and also create a thumbnail of each image.

After upgrading the upgrade.class to the latest version 0.22 the thumbnail (second process) failed with error "Can't carry on a process".

After crawling though your code, I found that at line 2904 there is a "move_uploaded_file" function call, this seems to move the temp file to the final dest filename. Obviously this moves the temp file, so when I try to create a thumbnail of the same upload the script errors because the temp file no longer exists.

I have changed the "move_uploaded_file" function call to a "copy" function to fix the problem.

Is this a bug?Reply
Re: Error: "Can't carry on a process" after second process new!
by colin, 17 years, 4 months ago
Yes, this is a bug, and a pretty bad one... Thanks for pointing it out.

The issue comes from the new code which circumvents open_basedir restrictions.

I will release a new version as soon as possible.Reply
Re: Error: "Can't carry on a process" after second process new!
by colin, 17 years, 4 months ago
I just released version 0.23 which should fix the problem. Please let me know.Reply