By Robert on Sunday, 24 November 2013
Posted in General Issues
Replies 10
Likes 0
Views 687
Votes 0
I get this error on my stream from a blog post after I updated to the latest version

Warning: Invalid argument supplied for foreach() in media/com_easysocial/apps/user/blog/themes/default/streams/create.content.php on line 34
Hello Robert,

I've fixed it for you. Please have a look.
·
Sunday, 24 November 2013 09:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik,

I have the same error after update, can you post how to fix it?
·
Monday, 25 November 2013 23:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

What I did was, change this <?php if( isset( $audios ) ){ ?> to <?php if( is_array( $audios ) ){ ?> at line 33 in ../media/com_easysocial/apps/user/blog/themes/default/streams/create.content.php. Hope this helps.
·
Monday, 25 November 2013 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik,

'change this to at line 33'

Change this to what at line 33?

At the moment..............

Line 33 = ?php if( isset( $audios ) ){ ?
Line 34 = ?php foreach( $audios as $audio ){ ?
·
Tuesday, 26 November 2013 00:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Sorry. change it from
 
<?php if( isset( $audios ) ){ ?>

to

<?php if( is_array( $audios ) ){ ?>


·
Tuesday, 26 November 2013 00:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect Nik thank you!

By the way, Stackideas support is so quick/superb/top quality your reply was posted before I managed to edit/update my post with the code lines...........pure class.
·
Tuesday, 26 November 2013 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

Thanks for the compliment. Very much appreciated.
·
Tuesday, 26 November 2013 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
FYI, Having the same error here. I will apply the fix you mention above. Thank you.
Followup: OK, seems to have solved the problem! Thanks!
·
Wednesday, 27 November 2013 01:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Same error - fixed easy enough.
·
Wednesday, 27 November 2013 10:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

You're welcome.

Best Regards,
Nick.
·
Wednesday, 27 November 2013 10:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post