By masanori oyama on Tuesday, 04 February 2014
Posted in General Issues
Replies 7
Likes 0
Views 0.9K
Votes 0
Hi,

I apologize this because it's may based on my server setting issue.

Regarding EasySocial> Account> Preferences> Account Settings > Appearance > Upload Avatar,
when the user uploads his profile picture, the system says
Fatal error: Out of memory (allocated 68681728) (tried to allocate 4915201 bytes) in path/to/mysite/public_html/administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd.php on line 208.
This only happens when the user uploads big file e.g. 3MB.
I've checked memory_limit and I think it is OK.

The user belonging to Super Users of Joomla! user groups can upload those big files for his avatar.

What should I check then?
Hi,

That same settings actually applies for profile photo too.
·
Thursday, 06 February 2014 11:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It seems like your server only allocates 64M for memory limit. With GD driver on your site, we would recommend a higher memory limit and you could consult your hosting provider on increasing the memory limit.
·
Tuesday, 04 February 2014 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason,

Thank you for your note.
But an administrator can change the user's avatar in back-end.
Also he can change the avatar from front end but the registered user can not...

How do you think?
·
Wednesday, 05 February 2014 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Registered user might have extra actions such as create stream, send notification to friends, etc, and all of these action takes up memory while administrator updating profile might not have a similar set of actions.
·
Wednesday, 05 February 2014 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason,

Thank you for the advice.
That makes sense thank you.

I'll ask hosting provider about this.

I see max. file size setting for photos in administrator>esysocial>profiles>title>access>photo.
I appreciate it if you could add an option of max. file size for profile pictures, in the future.
·
Wednesday, 05 February 2014 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Jason;)

I think this issue is resolved.
Thank you again and have a nice day.

FYI
/administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd.php
$transparent = imagecolortransparent( $_ , imagecolorallocatealpha( $_ , 0 , 0 , 0 , 127 ) );
when I reduce the number of 127 the memory usage is reduced.
I don't know if I have the troubles with this change.....
·
Thursday, 06 February 2014 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Great.
·
Friday, 07 February 2014 16:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post