Image uploads
I'm having trouble uploading image in one particular item. I can upload to other items in the same region, and indeed in other regions just not this sucker. I've tried deleting the item and re-adding it to no avail. All text etc. updates without a hitch. Could you possibly shed some light?
Cheers!
Support Staff 2 Posted by Drew McLellan on 02 Mar, 2010 10:22 PM
Is the image larger in file size than the others? PHP has a file size upload limit (configurable per server) that you may be reaching.
3 Posted by Wil on 04 Mar, 2010 08:54 PM
The images are all really small: under 50kb. I've even tried using images that are working in the same region to no avail.
Support Staff 4 Posted by Drew McLellan on 04 Mar, 2010 08:56 PM
Do you have a lot of items in this region? Which version of Perch are you running?
5 Posted by Wil on 04 Mar, 2010 09:04 PM
This will be item number 6 in that region, and how do I find the version number?
Support Staff 6 Posted by Drew McLellan on 04 Mar, 2010 09:05 PM
Go to Settings > Diagnostics report.
7 Posted by Wil on 04 Mar, 2010 09:07 PM
1.2.4
Support Staff 8 Posted by Drew McLellan on 04 Mar, 2010 09:12 PM
That should be up to date enough.
Are you able to add an additional item, and then enter the same content as is failing?
9 Posted by Wil on 04 Mar, 2010 09:16 PM
I can add another item and add text to it, but I can't add any images.
Support Staff 10 Posted by Drew McLellan on 04 Mar, 2010 09:20 PM
I don't know what's causing that.
Could you add the following to your
perch/config/config.phpfile, then try and upload the image again, and copy and paste out the diagnostic information from the bottom og the page?11 Posted by Wil on 04 Mar, 2010 09:50 PM
DIAGNOSTICS:
SELECT *
FROM perch_users
WHERE userEnabled='1'
AND userID=2
AND userHash='4e4af95187e6d8dd430ee76ab71a8c40'
LIMIT 1
UPDATE perch_users SET userHash = '1075dec55249162f27bd9be5cd856dd1' WHERE userID = 2
SELECT settingID, settingValue FROM perch_settings
SELECT *
FROM perch_contentItems
WHERE contentID=15
LIMIT 1
UPDATE perch_contentItems SET contentHTML = '
\n \n
EVENTS & OUTDOOR
\n
\n \n
\n \n
\n
\n \n
Covent Garden Christmas for JCPR Dec 08
\n
\n
\n \n
All Star Lanes – Lovebox Festival – July 09
\n
\n
\n \n
Orbital World Tour for Renegade Design – 2009
\n
\n \n \n \n
\n \n
\n \n \n
\n
\n \n
PARTIES & AWARDS
\n
\n \n
\n \n
\n
\n \n
Topshop Party for 9PR – July 08
\n
\n
\n \n
Christmas Lodge for Massive Productions – Dec 08
\n
\n
\n \n
OPM Private Reception, Shoreditch Studios – July 09
\n
\n
\n \n
Rolex Awards for Urban Caprice, Royal Opera House – Dec 09
\n
\n \n \n
\n \n
\n \n \n
\n
\n \n
CONFERENCES & EXPOS
\n
\n \n
\n \n
\n
\n \n
3GSM World Congress for Whitespace – Barcelona, Feb 2010
\n
\n
\n \n
3GSM World Congress for Whitespace – Barcelona, Feb 2010
\n
\n
\n \n
3 Mobile Conference for GSP – Oct 09
\n
\n
\n \n
Topshop Conference for 9PR – July 08
\n
\n \n \n
\n \n
\n \n \n
\n
\n \n
INSTALLATIONS
\n
\n \n
\n \n
\n
\n \n
Youth Music Box with Youth Music and Silent Studios – UK Tour 2009
\n
\n
\n \n
CBBC Live Event – Liverpool – Oct 09
\n
\n
\n \n
Table D’Hote for Urban Caprice – April 09
\n
\n
\n \n
GAP Instore Competition for Timebased – Feb 09
\n
\n \n \n
\n \n
\n \n \n
\n
\n \n
LAUNCHES & EXPERIENTIAL
\n
\n \n
\n \n
\n
\n \n
Sony Ericsson – May 09
\n
\n \n \n \n \n \n
\n \n
\n \n \n
\n
\n \n
FASHION
\n
\n \n
\n \n
\n \n \n \n \n \n \n
\n \n
\n \n \n
\n', contentJSON = '[{\"heading\":\"EVENTS & OUTDOOR\",\"image-1\":\"\\/perch\\/resources\\/preview.jpeg\",\"image-2\":\"\\/perch\\/resources\\/covent-garden.jpg\",\"image_caption-2\":\"Covent Garden Christmas for JCPR Dec 08\",\"image-3\":\"\\/perch\\/resources\\/1265667393aslpic.jpg\",\"image_caption-3\":\"All Star Lanes - Lovebox Festival - July 09\",\"image-4\":\"\\/perch\\/resources\\/1265667393orb102216066.jpg\",\"image_caption-4\":\"Orbital World Tour for Renegade Design - 2009\"},{\"heading\":\"PARTIES & AWARDS\",\"image-1\":\"\\/perch\\/resources\\/topshop-conference.jpg\",\"image-2\":\"\\/perch\\/resources\\/1265669627topshop-conference.jpg\",\"image_caption-2\":\"Topshop Party for 9PR - July 08\",\"image-3\":\"\\/perch\\/resources\\/1265669627christmas-lodge.jpg\",\"image_caption-3\":\"Christmas Lodge for Massive Productions - Dec 08\",\"image-4\":\"\\/perch\\/resources\\/1265669627shoreditchstudios0126.jpg\",\"image_caption-4\":\"OPM Private Reception, Shoreditch Studios - July 09\",\"image-5\":\"\\/perch\\/resources\\/rolex.jpg\",\"image_caption-5\":\"Rolex Awards for Urban Caprice, Royal Opera House - Dec 09\"},{\"heading\":\"CONFERENCES & EXPOS\",\"image-1\":\"\\/perch\\/resources\\/1267437741final-barcelona.jpg\",\"image-2\":\"\\/perch\\/resources\\/1267437741final-barcelona.jpg\",\"image_caption-2\":\"3GSM World Congress for Whitespace - Barcelona, Feb 2010\",\"image-3\":\"\\/perch\\/resources\\/myriad-barcelona.jpg\",\"image_caption-3\":\"3GSM World Congress for Whitespace - Barcelona, Feb 2010\",\"image-4\":\"\\/perch\\/resources\\/12674410013sgottalent4358.jpg\",\"image_caption-4\":\"3 Mobile Conference for GSP - Oct 09\",\"image-5\":\"\\/perch\\/resources\\/1267441001topshop7.jpg\",\"image_caption-5\":\"Topshop Conference for 9PR - July 08\"},{\"heading\":\"INSTALLATIONS\",\"image-1\":\"\\/perch\\/resources\\/12657052463856790030fa279837bd-183905.jpg\",\"image-2\":\"\\/perch\\/resources\\/12657052463856790030fa279837bd-183905.jpg\",\"image_caption-2\":\"Youth Music Box with Youth Music and Silent Studios - UK Tour 2009\",\"image-3\":\"\\/perch\\/resources\\/1265705247cbbc-dr-who.jpg\",\"image_caption-3\":\"CBBC Live Event - Liverpool - Oct 09\",\"image-4\":\"\\/perch\\/resources\\/table-dhote.jpg\",\"image_caption-4\":\"Table D\'Hote for Urban Caprice - April 09\",\"image-5\":\"\\/perch\\/resources\\/image1.jpg\",\"image_caption-5\":\"GAP Instore Competition for Timebased - Feb 09\"},{\"heading\":\"LAUNCHES & EXPERIENTIAL\",\"image-1\":\"\\/perch\\/resources\\/sonyericsson.jpg\",\"image-2\":\"\\/perch\\/resources\\/1265736160sonyericsson.jpg\",\"image_caption-2\":\"Sony Ericsson - May 09\"},{\"heading\":\"FASHION\"}]', contentNew = 0 WHERE contentID = 15
Setting alert: Content successfully updated (success)
Support Staff 12 Posted by Drew McLellan on 04 Mar, 2010 09:56 PM
And it's the last item, with the heading FASHION that isn't saving?
13 Posted by Wil on 04 Mar, 2010 10:19 PM
That's the badger yep - won't save image, all text is fine.
Support Staff 14 Posted by Drew McLellan on 04 Mar, 2010 11:24 PM
I can't reproduce the problem. Would it be possible to upload a mysqldump of your data and the template you're using so we can try it here?
15 Posted by Wil on 05 Mar, 2010 07:49 AM
Here you go, hopefully it's got all the includes etc. you'll need to view it properly, if I've missed any dependencies just let me know.
Support Staff 16 Posted by Drew McLellan on 05 Mar, 2010 07:59 AM
Thanks - we'll give it a try here.
Support Staff 17 Posted by Drew McLellan on 05 Mar, 2010 09:19 AM
Could you send me the
highlight.htmltemplate? I can't use the edit form without it.18 Posted by Wil on 05 Mar, 2010 09:21 AM
Here you go, sorry.
Support Staff 19 Posted by Drew McLellan on 05 Mar, 2010 09:23 AM
Sorry, I meant the
highlight.htmlfile fromperch/templates/content20 Posted by Wil on 05 Mar, 2010 09:24 AM
I'm a bit slow on the uptake this morning. Try again.
Support Staff 21 Posted by Drew McLellan on 05 Mar, 2010 09:32 AM
OK, so I've gone to Item 6, chosen an image for First Image and clicked Save, and the image is uploaded. No problems.
Is that the point at which it's breaking for you?
22 Posted by Wil on 08 Mar, 2010 03:02 PM
That's the point yes, I suppose that means it's server related?
Support Staff 23 Posted by Drew McLellan on 08 Mar, 2010 04:13 PM
Yes, it's something to do with the server or the configuration - I can't get it to fail here, it's working perfectly.
24 Posted by Wil on 08 Mar, 2010 08:02 PM
Although it looks like the image doesn't exist in the JSON, so perch isn't dealing with it / doesn't know about it. Is there perhaps a limit to file input types on a page?
Support Staff 25 Posted by Drew McLellan on 08 Mar, 2010 08:05 PM
Perch doesn't have a limit, no. I don't think there's anything in the PHP config that would cause that either.
26 Posted by Wil on 08 Mar, 2010 08:11 PM
So is there a way around this? I think the problem could be related to there being too many file input types on the page... but the items require several images each to display properly. Could you suggest another way to get several images per item?
Support Staff 27 Posted by Drew McLellan on 08 Mar, 2010 09:17 PM
I'll see what I can find out on this.
28 Posted by Matt Bee on 09 May, 2010 12:24 PM
I'm having the same issues, got 21 items working fine, plenty server space, no errors in the debug output and the files are well within server upload settings.
But the last image doesn't upload, the text for that item is fine, just no image is uploaded to the server nor any image src in the data. Is there anything I can provide to help resolve this problem?
Support Staff 29 Posted by Drew McLellan on 09 May, 2010 01:10 PM
Matt - what version are you running, and have you tried changing the sort order on your region?
30 Posted by Matt Bee on 09 May, 2010 03:23 PM
Hi Drew,
Running Version 1.2.6.1 and I have changed the sort order so that the item I want to display is at the top of the edit list, which meant I could upload an image.
Any idea why that worked, as it means the order of items in the template is then not as the client wants.
Support Staff 31 Posted by Drew McLellan on 09 May, 2010 03:31 PM
I'm still trying to track down why changing the sort order resolves the upload issue (talk about bizarre!) - but I wanted to throw that out as it's a workaround.