By Daniel Pierce on Thursday, 17 July 2014
Posted in Technical Issues
Replies 12
Likes 0
Views 689
Votes 0
I have created an Extension to post a Stream commend on Easy Social from a Mobile app.

It was working just fine on V1.2.14, but just went to V1.2.19 and it now causes the user to go to an error condition when ever they logon to EasySocial.

After I create a Stream Entry the user Account now get the attached display instead of going to the EasySocial community application. None of the links that are display do anything.

Here is my code that is used to Create the Stream Entry.


$stream = Foundry::stream();
$template = $stream->getTemplate();

$template->setActor($user_id, SOCIAL_TYPE_USER);
$template->setContext($context_id, SOCIAL_TYPE_STORY);
$template->setVerb('create');
$template->setContent($content);

$location = Foundry::table('Location');
$location->latitude = $latitude;
$location->longitude = $longitude;
$template->setLocation($location);

return $stream->add($template);



Please let me know what I'm doing wrong for the new version.

ALSO is there a way to get the user account out of this strange mode or do I need to delete the account and create it again?

Thanks
Hello Daniel,

I am really sorry for the delay of this reply. It does seem like it's some sort of "Fatal Errors" being generated by the stream. Can you try turning on error reporting to maximum and see what errors are being generated there?
·
Friday, 18 July 2014 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Support,

I couldn't find any documentation on how to enable Error Reporting to the Maximum level. I looked at the Administrator and Developer Docs that are online on your side and did a forum search.

Please let me know if this the proper way or if I need to do more.

EasySocial -> Settings -> System Preferences

System Environement = Production (no change)
System Profile = YES (change from NO )
Catch Error Logs = YES (changed from NO)

There are also several settings in:
EasySocial -> Settings -> Activity Logs ( I didn't change anything )

Backend Limit = 5
Frontend Limit = 10

If we are going to lock up more account I would like to have it configured to capture all the data. Still haven't found a way to get original account out of Error Condition.

Dan
·
Friday, 18 July 2014 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Support,

I made the changes that I described above and I'm now able to post to Stream without failure.

Have you made any changes or has enabling System Profile and Catch Error Log settings to YES resulted in functionality working.

Just posted multiple content items via the API interface. You may want to review logs on system.

Dan
·
Friday, 18 July 2014 07:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Daniel,

Hm, we have never actually made any changes to these items and setting the catch error logs shouldn't really affect the logics of the stream. It's main purpose is to catch errors on the site.
·
Friday, 18 July 2014 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Support,

I want to be able to control who has access to the Stream Contents.

setSiteWide( 'true' ) for the stream content security = "Registered Users"
setSiteWide( 'false' ) for the stream content security = "Only Me"

I got this error when use setSiteWide function to define friends

Fatal error: Call to undefined method SocialStreamTemplate::setSideWide() in C:\xampp\htdocs\saver_health\dev\api\hss.helpers.php on line 591

HELP....
·
Friday, 18 July 2014 11:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I think there's a typo in your code. It should be setSiteWide and not setSideWide
·
Saturday, 19 July 2014 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Support,

Thanks for the correction, however setSideWide is what your Developer documentation defines as the proper call. That should be corrected.

Correction: Should be setSiteWide.

Thanks Again
·
Sunday, 20 July 2014 08:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this.
·
Sunday, 20 July 2014 15:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for the necro, but the documentation still has "setSideWide"
·
Monday, 20 October 2014 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Shaun Carvill,

Thanks for reporting on this,
Do you mean that "setSideWide" still showing in our documentation?
Can you provide us the URL page so that we can know which documentation page are you mentioned? Please advise.
·
Monday, 20 October 2014 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex,

Its "setSideWide" twice on this page

creating_a_stream

Thanks
·
Monday, 20 October 2014 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Shaun, will update the docs shortly.
·
Monday, 20 October 2014 23:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post