MicrostockGroup Sponsors

Image Upload Issue

Started by daveh900, March 26, 2013, 18:12

Previous topic - Next topic

daveh900

First of all, I'm super impressed by SymbioStock so far. I've wanted something like this for a while and this fits my needs exactly. Thank you Leo!

My issue...

So far I have tried uploading a handful of images and vectors with mixed results.

I get this error occasionally when uploading vector.jpg and vector.jpg and then trying to "process to drafts":

Fatal error: Uncaught exception 'WideImage_InvalidImageSourceException' with message 'File '/home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/plupload/uploads/PatrioticDesigns.jpg' appears to be an invalid image source.' in /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/wideimage/lib/WideImage.php:225 Stack trace: #0 /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/wideimage/lib/WideImage.php(183): WideImage::loadFromFile('/home/stompsto/...') #1 /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/symbiostock_image_processor.php(172): WideImage::load(Array, '/home/stompsto/...') #2 /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/symbiostock_image_processor.php(997): symbiostock_image_processor->symbiostock_process_image('/home/stompsto/...') #3 /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/symbiostock_image_processor.php(13 in /home/stompsto/public_html/wp-content/themes/symbiostock/inc/classes/image-processor/wideimage/lib/WideImage.php on line 225

Kerioak~Christine

I was just in the process of typing a similar post so will add it here


I am beginning to wonder if it is a size issue as the only one that has been successful so far was a 5Mb jpg illustration (that I put a hyphen between the words and took out the number).

Most of my images are way above this size.

I have tried
zipping jpg
changing name - no numbers, just numbers, no spaces, spaces
I did upload a zipped eps and jpg (as I would upload for FT) and that failed with the same message as well and that was a tiny file
I have also been uploading images to a file in preparation and tried transferring one of those - still got error message

Leo Blanchette

Ill get on that soon too. What is your success rate?
since its testing do a few at a time. Post errors like you have if its ok with msg

daveh900

I'm happy to let you in to my site if you want to see for yourself Leo, you can message me.

I'm going to try a couple more and I'll let you know.

Kerioak~Christine

I "think" there is a limit of 5Mb for jpgs - is this likely?   I have a success rate of 2/15 jps so far

Leo Blanchette

Can you send me the files so I can test them? Leo at symbiostock dot com

Leo Blanchette

Quote from: Tinny on March 26, 2013, 18:43
I "think" there is a limit of 5Mb for jpgs - is this likely?   I have a success rate of 2/15 jps so far
yes that is very likely and its an easy fix if the host doesn't override

daveh900

Ok, tested two files.

File1.jpg
File1.eps

File2.jpg
File2.eps

Uploaded them all together with each JPG at approx. 4900x4900 and got the same error as I posted above.

Reduced the size of the JPGs to approx. 3500x3500 and uploaded them again and it worked.

Travelling-light

I've set POST and upload limits in php.ini both to 25M, but I'm still getting Apache errors saying there's a POST limit of 8M. Smaller files are going up OK. Is that limit configured somewhere else? Can't find anything in httpd.conf

cidepix

Quote from: daveh900 on March 26, 2013, 18:45
Ok, tested two files.

File1.jpg
File1.eps

File2.jpg
File2.eps

Uploaded them all together with each JPG at approx. 4900x4900 and got the same error as I posted above.

Reduced the size of the JPGs to approx. 3500x3500 and uploaded them again and it worked.

that could be an issue caused by your php.ini file

I am guessing that there is a file size limit that needs to be increased..

Leo Blanchette

I can't seem to duplicate the issue, but I have my memory limit to an obnoxiously high level.
PS - I opened this thread to track the problems of the test release:

http://www.microstockgroup.com/symbiostock-technical-support/symbiostock-test-build-the-bug-stomping-thread!/msg306296/?topicseen#new

So far I'm well along.

Jeffrey

After clicking "process images"

I get this error

You do not have sufficient permissions to access this page.

Leo Blanchette

Thats a wordpress thing. Shouldn't happen if you are logged in with an administrator level account.

Kerioak~Christine

I have found my php.ini file in public_html and it reads:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)


Is this likely to be the problem?  If so what would you recommend I change them to please?

Leo Blanchette

#14
I didn't know you guys had access to that! Yes, that is very likely it. On my localhost here I changed mine to 128 and it worked. On my server I changed it to 512 when certain image operations crashed and it was all fixed :D.

Just updated my bug thread regarding this. Thank you! By the time we're done we'll have a nice checklist for Symbiostock webmasters. Hosting an image site isn't hard...its just stuff like this we have to remember! http://www.microstockgroup.com/symbiostock-technical-support/symbiostock-test-build-the-bug-stomping-thread!/msg306271/#msg306271

Leo Blanchette

Quote from: Travelling-light on March 26, 2013, 21:05
I've set POST and upload limits in php.ini both to 25M, but I'm still getting Apache errors saying there's a POST limit of 8M. Smaller files are going up OK. Is that limit configured somewhere else? Can't find anything in httpd.conf
Sorry I didn't get back to you quickly. httpd.conf might not have anything. The other thing might be an htaccess setting. I'm tackling the problem from a few angles, so I'll keep updating :D. With so many prospective people doing the self-hosting thing, it would be nice to have a "symbiostock image processing" checklist for people to go through. I really appreciate your participation in all of this. Its setting a good foundation.

Kerioak~Christine

Thanks Cidepix and Leo.

In my php.ini* file which I had never heard of before I have changed - not sure if these are too high, might try reducing at some point

memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)

Plus increased these to 30M each (probably on the high side, maximum my ISP permits is 100) after speaking to ISP support for the second time today

upload_max_filesize
post_max_size

That sorted the problem.

When I initially tried to edit the file it said I did not have permission so contacted my ISP support and they sorted out the permissions for me so I could change it myself

I hope this helps someone else if they get a similar problem

*php.ini file is in public_html in site files



Jeffrey

I'm logged in as Administrator.

I clicked Anyone can register.

Hhmm, I lost all possible options.

Could be because I uploaded it in a folder/subdomain? Well I have to check this one.

Quote from: Leo on March 27, 2013, 08:10
Thats a wordpress thing. Shouldn't happen if you are logged in with an administrator level account.

Travelling-light

Quote from: Leo on March 27, 2013, 09:42
Quote from: Travelling-light on March 26, 2013, 21:05
I've set POST and upload limits in php.ini both to 25M, but I'm still getting Apache errors saying there's a POST limit of 8M. Smaller files are going up OK. Is that limit configured somewhere else? Can't find anything in httpd.conf
Sorry I didn't get back to you quickly. httpd.conf might not have anything. The other thing might be an htaccess setting. I'm tackling the problem from a few angles, so I'll keep updating :D. With so many prospective people doing the self-hosting thing, it would be nice to have a "symbiostock image processing" checklist for people to go through. I really appreciate your participation in all of this. Its setting a good foundation.

This problem's gone away for me, after another server restart - which shouldn't be needed for php.ini changes. I seem to remember there's a way of increasing the limits on the fly with a bit of code in a page - I might have to dig that out.

Jeffrey

I finally got it.

It's because I uploaded it on a subfolder, after processing the images, it goes back to the root folder, which causes an error.

I need to test it on a new folder or single domain.

daveh900

I have scaled back the size of my uploads and I don't have the problem anymore. Plus, smaller files is a good thing when you are paying the hosting bill yourself.

I just uploaded a bunch of images, and they were all approved immediately.  ::) ;D

tina

I have used ftp to upload images, but today is not working :'( The image show up under Process Images, but when I click process to drafts, I get "File doesn't exist?"
Is strange since I haven't  changed the ftp uploads folder!
The symbiostock image uploader is not working either :( warning: using runtime flash
Happy user of Symbiostock: http://innerstock.com

Kerioak~Christine

Are the images bigger than those you have uploaded before?

tina

Bulk upload of 60 photos could this cause the problem? Each image wasn't bigger than normal though. Now I have deleted these files from the process page. Later I tried to upload only a few.... with same error coming.

Even if I get file doesn't exist, they are in the images listing/ editing area with description and keyword, but not the photo!!
Happy user of Symbiostock: http://innerstock.com

CrackerClips

Whenever I upload a group of images (as little as 10-15) I get a handful of error messages when I process them. The error is always exactly the same.

Warning: unpack() [function.unpack]: Type A: not enough input, need 1, have 0 in /home/content/93/5238093/html/wp-content/themes/symbiostock/inc/classes/PHP_JPEG_Metadata_Toolkit/IPTC.php on line 263

Whatever the message means, it doesn't seem to cause a problem with the uploads that I'm aware of as all of the images get processed.  According to the process page I'm using GD to process the images.  I've seen a little bit of discussion about "imagemagick" but I have no idea how to activate it.
CrackerClips Stock Footage and Photos
HD Video Backgrounds for use as green screen backgrounds and more...