Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Error code when trying to upload pics
Avatar
PasoFinoLIVE
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 9:51 am

I keep getting error (JSON Parse error: Unrecognized token '<') when I'm trying to upload pictures,the pics sizes are as follow below. I am not using the thumbnail option as i prefer to show picture actual size within the topic to avoid additional steps, I also have a narrow theme with ads on the right side of page (www.PasoFinoLIVE.com)

Screen-Shot-2013-07-31-at-9.49.09-AM-1.pngImage Enlarger

 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 11:28 am

a 4.9M image, really?  hope you have your php memory set really, really high and the same for cpu time...  and can you really show an image 3456x5184 pixels?  certainly that is larger than your content width...  my guess is you are simply running out of resources...

what are you php max file upload size?

Avatar
PasoFinoLIVE
Member
Free Members
sp_UserOfflineSmall Offline
Jul 31, 2013 - 11:58 am

i believe what your telling me is that the picture is too big in size and i should re size them. i am new to computer , forum, ext. have been trying to understand and learn as i go.

i believe your asking me what i have my setting at - php max file is set to (0 - no limits)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 31, 2013 - 2:47 pm

Not really. More to the point:

  1. You will need a very, very large amount og php memory allocated to the server to process this size of image. And I mean a lot!
  2. Do you really want your users to be downloading a 5MB image file EVERY time they look at the page it is shown on? Think of your bandwidth and their patience.
  3. You will almost certainly need to change some php settings for this size of file and will need to discuss whether your host will even allow them. But you will need to not only increase php memeory but probably post size memory and upload size as well.

yes - you really very much need to resize these down and even save them for 'the web' so they are as compressed as you can get them.

andy-signature.png
YELLOW
SWORDFISH
Avatar
PasoFinoLIVE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 1, 2013 - 5:20 am

can you please recommend a correct settings in (file upload - setting page) so that is reasonable for me or any other member trying to post pictures.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 1, 2013 - 7:03 am

Not really. This is very much going to be a personal choice which must balance what is appropriate for your level of hosting and bandwidth allowance; what you want to allow your users to do; what you think they need and what your php environment will allow.

We have ours set at 204800 but many users would suggest that is too small. Some - which want to control things a little more tightly, would think it too big.

And read the label prompt to that field on the admin form. Note the maximums that your php set-up will allow. Always a good idea to leave a little extra in reserve of those values.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625