Topic-icon Errors for EasySocal users

Active Subscriptions:

None
5 years 11 months ago #63987 by buztan
We have just started getting an error. We are not sure if something has got corrupted as the site was fine this morning but there was a period when it went offline (we haven't yet asked the hosting what happened) so something may have got corrupt. The error is for example:

Warning: getimagesize(faenet.org/media/com_easysocial/users/14...50f1b9ed2_medium.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/faenet5/public_html/libraries/sourcecoast/openGraph.php on line 410

and when I check I see there is no folder /media/com_easysocial/users but there is a folder with the specified image file in it at /media/com_easysocial/avatar/users

For now we have set Joomla to not show any messages so as not to panic our users, but we are concerned something may be broken somehow. I'm going to post also in the StackIdeas support as it's not clear if it's a JFBC or EasySocial thing.
The topic has been locked.
Support Specialist
5 years 10 months ago #63991 by alzander
Replied by alzander on topic Errors for EasySocal users
Buzzy,
The section of code that warning is being thrown in is when JFBConnect is trying to determine the height and width of an image set using og:image tag.

You can disable that image size functionality in the JFBConnect -> Social Meta -> Configuration area with the setting "Image Size Tags". We provide an option to disable it because some servers don't allow reading from files like we do there. That's an easy way to hide the warning as well, though on a production site, turning off error reporting in the Global Configuration area is a good idea anyways.

The PHP warning is just a warning and, essentially, it's saying the file can't be found.. which it sounds like it can't.. it doesn't exist. The tag is being set in our /plugins/opengraph/easysocial/easysocial.php file. Around line 69, you should see:

$avatarUrl = JURI::root().'media/com_easysocial/users/'.$joomlaId.'/'.$user->avatars;

If the files are really in the directory you mention, try updating it to:

$avatarUrl = JURI::root().'media/com_easysocial/avatars/users/'.$joomlaId.'/'.$user->avatars;

That may get you going. It's possible that EasySocial changed their avatar directory and we didn't update properly.. Feel free to test and let us know if that helps and we can try to do some more investigation on our own as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 10 months ago #63996 by buztan
Replied by buztan on topic Errors for EasySocal users
Thanks for that, yes it is the file /plugins/opengraph/easysocial/easysocial.php that is set to the wrong path, so changing that fixed the problem. Guess there is an easy bug fix for you for next release :-)
The topic has been locked.
Support Specialist
5 years 10 months ago #63999 by alzander
Replied by alzander on topic Errors for EasySocal users
Thanks for letting us know that worked. We'll look into that fix for the next release.

Yes, it sounds easy, but we need to also make sure it won't break users on older versions of EasySocial. If it does, then we need to add some compatibility code or figure out a more dynamic way to load the image. Either way, I've added this to our to-do list to get sorted out.

Glad we could help you get things going now, but if you need anything else, just let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 10 months ago #64069 by buztan
Replied by buztan on topic Errors for EasySocal users
I've just installed the latest version and unfortunately the error is back. I had a quick look in the new version of .../plugins/opengraph/easysocial/easysocial.php and I can see the code you have put in to detect if it's a new or old version of EasySocial, but what seems to be happening is that the if check part of that code is returning false even though the ...media/com_easysocial/avatars/users folder exists, so it's back to giving the error of the file not existing since it's looking at the old style url. I have to admit I'm not so familiar with Joomla as to be able to see why the way it's coded doesn't work as it looks to me like it should!
The topic has been locked.
Support Specialist
5 years 10 months ago #64072 by alzander
Replied by alzander on topic Errors for EasySocal users
Well then, we're unsure either. We did tests with both old and new versions of EasySocial and that code did work. It's possible this is a Windows server issue, permissions issue for those folders or something else more obscure.

Would you be able to PM us FTP access to your site? We should be able to narrow it down quickly once we have that.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 10 months ago #64074 by buztan
Replied by buztan on topic Errors for EasySocal users
Okay, have PM'd the info
The topic has been locked.
Support Specialist
5 years 10 months ago #64077 by alzander
Replied by alzander on topic Errors for EasySocal users
Buzzy,
Thanks for the FTP access, though I didn't make much progress.

I registered on your site and went to my profile. On that page, there is an og:image tags of:
<meta property="og:image" content="https://YOURDOMAIN.org/media/com_easysocial/avatars/users/656/f8ce6e0eb6c05cef2048a31b64311b1c_medium.jpg"/>
<meta property="og:image:width" content="64"/>
<meta property="og:image:height" content="64"/>
That has the /avatars/ in the URL like it should. Also, the image dimensions are being properly detected. The original warning happened when the image dimensions couldn't be detected because the file couldn't be found.

Since that was working right, I then looked at the EasySocial open graph plugin file and the code hasn't been modified from our 8.0 version. I was thinking maybe you had fixed the URL so it would always have 'avatars' or something, but you hadn't.

So, from what I can see, the URL is correct in the og:image tag and the functionality is as I'd expect.

Can you double check that you're still having this issue? All I can think is that there was some caching issue on the server that cleared itself up after a while with the new release. If not though, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 10 months ago #64084 by buztan
Replied by buztan on topic Errors for EasySocal users
I just checked and I see you created an account on our live site, but the FTP access info is our test site. I realise perhaps it wasn't clear what the URL was for that, so I've just sent that to you.
The topic has been locked.
Support Specialist
5 years 10 months ago #64117 by mel
Replied by mel on topic Errors for EasySocal users
The front-end test site does not allow Facebook authentication right now, with the following error:

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.


Could you fix the application settings to allow for the test site? Additionally, could you send Alex superadmin credentials for the backend test site?

-Melissa
The topic has been locked.