By Steven Koontz on Tuesday, 06 October 2015
Posted in Technical Issues
Replies 17
Likes 0
Views 788
Votes 0
Hi,

I cannot upload an avatar on the front end. I get the following error in the upload dialog:

SyntaxError: Unexpected end of input

And in the console there is the following error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://www.domain.com/index.php?option=com_easysocial&lang=&Itemid=123&_ts=xxxxxxxxxxxxx

I was on ES 1.3, just upgraded to 1.4.1 and the problem persists. In the backend it works fine.
New version of Admin Tools 3.6.3: https://www.akeebabackup.com/component/ars/?view=release&id=2244 bug fix:

[HIGH] UploadShield would cause blank pages when uploading files in the front-end


I updated and removed com_easysocial from the WAF Exceptions, tested an upload, and it WORKED! So this was all caused by a bug in Admin Tools.

The only thing I need now to close out this ticket is to restory my JoomlaFolder\administrator\components\com_easysocial\includes\cron\hooks\storage.php back to the original.
·
Friday, 09 October 2015 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Steven,

I am really sorry for the delay of this reply. It seems like you have installed Admin Tools on your site and the component is actually blocking the ajax request made by easysocial. I've added "com_easysocial" in your admin tools WAF exception and the upload is working correctly now. Please have a look.
·
Tuesday, 06 October 2015 14:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Steve / Arlex... Is this not also the issue on our site? see: http://stackideas.com/forums/image-uploads-attachment-upload-issues-massive-cpu-usage

Not sure but maybe...
·
Tuesday, 06 October 2015 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm, I thought I had tried disabling Admin tools when testing this. I must have forgot to disable the plugin. Funny this wasn't an issue before, as you can see on the stream that less than a week ago a user was able to upload pics, and I was able to upload a new avatar on 25 Sept. no problem.

OK, so I can now upload avatars. However, I got the exact same 500 server error in the console when I tried to change my avatar back to the original one. I was able to delete the StackIdeas logo OK. But when I choose an avatar from my avatar album it goes to the cropping screen and all I get there is the same internal server error as in the original post. I ended up having to upload the avatar again. The error shows in the console as AJAX errors from this script:
http://www.domain.com/media/com_easysocial/scripts/easysocial-1.4.1.static.min.js

Side note: My JReviews profile integration is messed up. All author links now point to the homepage instead of the author's profiles. Have you guys changed anything in the routing or the DB structure?

@ Andrew: no, in my case, I haven't seen anything odd in CPU usage. Server continues to operate normally.
·
Tuesday, 06 October 2015 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Steven,

Can you provide us with your FTP access to check on the issue directly? Here is our current ip address : 110.159.160.171
·
Tuesday, 06 October 2015 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
I fixed the JReviews profile links. This works: https://forum.jreviews.com/topic/27277-easysocial-14-beta-and-jreviews/#entry117315

Please find FTP info attached.
·
Tuesday, 06 October 2015 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Steven,

I am really sorry that delay of this reply,

You can send to our email address regarding with your SSH keys -> ezrul@stackideas.com || arlex.wong@stackideas.com
·
Thursday, 08 October 2015 03:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Steve,

Thanks for getting back to us, I already received your SSH keys, but after I generated to private key using Putty software, it seems like can't connect with your SSH, can you double check you provided that login credentials is it correct?
·
Friday, 09 October 2015 00:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is all the info again, just in case.

Is it timing out or are the credentials not working? Why use Putty? You can log in easily with Filezilla with the credentials provided. This is the IP I have in the whitelist for you guys: 110.159.160.171
·
Friday, 09 October 2015 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh, I think my IP address blocked in your server, this is my current dynamic IP address -> 175.145.128.162
·
Friday, 09 October 2015 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I cleared 175.145.128.162. I have dynamic IP, too, hate it!
·
Friday, 09 October 2015 01:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Steven,

I think I figured out what is the issue causing this, it seems like when you trying to edit the avatar and choose from existing photos, those photos is actually uploaded in your Amazon S3, so system can't found out that photo and causing this issue, I will consult with our developer regarding this later when I at office.
·
Friday, 09 October 2015 02:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Sounds good. Thx
·
Friday, 09 October 2015 02:59
·
0 Likes
·
0 Votes
·
0 Comments
·
I think I figured out what is the issue causing this, it seems like when you trying to edit the avatar and choose from existing photos, those photos is actually uploaded in your Amazon S3, so system can't found out that photo and causing this issue


Hi guys... we also had an issue with images and broken links etc... Similar setup EC2 server with S3 setup, S3 configured in ES for remote storage.

SI was going to look into making changes in updates, but not sure where things are at...
·
Friday, 09 October 2015 05:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Steven,

I have applied some fix in this file -> JoomlaFolder\administrator\components\com_easysocial\includes\cron\hooks\storage.php , so when the cronjob process, it will not upload `stock` type image to Amazon S3.

But previously you uploaded those image in your site, I already checked, all image already uploaded in your remote storage server, so when you choose back your image when you edit user avatar, it still not work is because these image is not exist on your local server.

So you have to re-upload the new avatar image file again when you edit user profile avatar.

=====================================================================================================================
Hey Andrew,

I am sorry that delay of this reply,

Can you create a new post in our forum regarding this issue? so that we can take a look of this.
·
Friday, 09 October 2015 17:08
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, then, it's not a bug or a problem. It was happening because those images were originally uploaded with local storage. That's fine and I would rather NOT have the original images on the server. I would rather go back to the original storage.php file. Could you please post it, or should I re-install ES?

Thanks for finding that and sorry for the trouble.
·
Friday, 09 October 2015 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Steven,

Thanks for getting back to us your issue resolved.

You can replace back this original file to your live site -> JoomlaFolder\administrator\components\com_easysocial\includes\cron\hooks\storage.php
·
Saturday, 10 October 2015 00:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post