By Michael Squire on Sunday, 06 November 2016
Posted in General
Replies 11
Likes 0
Views 497
Votes 0
Hi, I have seen this is a common issue. We are getting this error on some picture uploads from a mobile device to Easysocial in the frontend. We do not seem to get the error form desktop. Also some photos are fine and others are not. We have tried all the solutions that have been suggested before and none have helped.

We cannot work out why some pictures have this error. We have uploaded larger images without any issue then the ones causing the problem.

We have admin tools installed and have played with that as that has been mentioned but even disabling this component did not resolve this issue.

Any ideas would be very much appreciated.
Many thanks Mike
Hello Michael,

The only possible reason that I can think of right now is that the size of these images taken with your mobile devices are large. Larger images would require higher php requirements. Try increasing the following values,

memory_limit
post_max_size
upload_max_size

Then, restart the webserver and see how it goes.
·
Monday, 07 November 2016 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I think we have done that as we saw it in other posts.

We uploaded one image on a phone at 3.6mb which had this error then uploaded a picture on desktop at 6.5mb and it worked.

We have also tested with different pics taken from our phone with no issue. But then ever so often a user get this error. They send us the picture via email and we then also get this error even though the size is smaller than others we successfully upload.

Anything else we can try?

Mike
·
Monday, 07 November 2016 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mike,
I tried to upload some photos in your site but I was unable to replicate the issue.
Can you provide us the same pictures that are claimed to generate these errors so we can test them out ourselves? Thanks.
·
Monday, 07 November 2016 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Please see image attached which causes the error. Its size is just under 2mb so no idea why this causes the error when larger files are fine.

Thanks

Mike
·
Monday, 07 November 2016 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mike,
Thanks for providing us the image. I am able to replicate the issue in your site using the image provided.
This is the error I found in the browser's console:
Out of memory (allocated 164102144) (tried to allocate 12096 bytes) in JoomlaFolder/administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd.php on line 339

I suspect that somehow since the resolution of the image is huge(3024x4032), the system requires a high amount of memory to resize and adapt the image to EasySocial. Based on this, can you try to increase your server's memory_limit to 512M and post_max_size to 128M? Then, let us know if the issue persist while uploading that same image, thanks.
·
Monday, 07 November 2016 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

We have made those changes and yes the error still occurs?

Mike
·
Tuesday, 08 November 2016 00:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mike,

The error appears because memory limit is exhausted when PHP GD library try to create a thumbnail for an image.

I noticed when you increased your server memory limit to higher, it still show the same figure "164102144" which is your current memory limit around 160M something.

If I am not wrong, It seems your web server is configured to allocate maximum around 160M, can you consult with your webhosting provider regarding this how many memory you can use from your server?

By the way, I did do a test from our demo site here -> http://es2.stackideas.com/ , it upload successfully.

You can check my video here : http://screencast.com/t/NDd6ACeZ5lGe
·
Tuesday, 08 November 2016 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hy Arlex and Michael,

i have found the Issue

If you make a photo with the main camera at a Samsung phone it works but one uses that front camera it comes to this error.
I have tried it also on the es demo page here exactly the same error comes.
On the iphone it works normally it's got tested on Samsung a5 and Samsung s7 comes to this error.

Look at the video
http://82.165.194.212/kunden/external_videos/WhatsApp%20Video%202017-06-08%20at%2023.34.02.mp4

Regards
Dominik
·
Friday, 09 June 2017 05:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Try download my attached file and replace into this following file and see how it goes?

JoomlaFolder/administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd_hack.php
·
Friday, 09 June 2017 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hy Arlex,

now does it what was the error?

Regards
Dominik
·
Saturday, 10 June 2017 02:40
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like it hitting this kind of common issue.

https://github.com/Intervention/image/issues/21

This fix will included in next release version as well.
·
Saturday, 10 June 2017 11:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post