Topic-icon OG Group Error - Join group Action

Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #50464 by Ivan
I am getting the error below:


Object at URL 'mysiteurl' of type 'myapp_app:group' is invalid because the given value '/components/com_community/assets/group.png' for property 'og:image:url' could not be parsed as type .

When I did a view source I am noticing 2 instances of og:image that seem to be inserted via jomsocial. Does anyone know where this is happening. What is the path of this file in jomsocial?

I noticed someone already posted about this here: www.sourcecoast.com/forums/jfbconnect/jf...alid-parameter-error
Last edit: 9 years 3 months ago by Ivan.
The topic has been locked.
Support Specialist
9 years 3 months ago #50467 by alzander
Those links are inserted from the /components/com_community/helpers/head.php file. In there, I'd recommend removing the og:see_also tags and the og:image tags and see if that helps fix your problem.

Keep us posted on how that goes, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50473 by Ivan
It was missing the domainame.com. I fixed the issue, however when i go to groups i seem to be getting another set of og:image tags 2 times this time and i haven't found where in jomsocial these are coming from. Because of this the join group action errors out. I need to find this section of code its not in head.php
 <link rel="image_src" href="/" />
  <link rel="alternate" type="application/rss+xml" title="Announcement Feeds" href="/bucketlist/groups/1-achievements/62-janumada-jodi/view-all-announcements/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Discussion Feeds" href="/bucketlist/groups/1-achievements/62-janumada-jodi/discussions/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Photo Feeds" href="/bucketlist/photos/1-achievements/62-janumada-jodi/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Video Feeds "  href="/bucketlist/videos/1-achievements/62-janumada-jodi/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Event Feeds"  href="/bucketlist/events/1-achievements/62-janumada-jodi/feed"/>
  <meta property="og:image" content="/components/com_community/assets/group.png"/>
  <meta property="og:image" content="/components/com_community/assets/cover-group-default.png"/>
The topic has been locked.
Support Specialist
9 years 3 months ago #50481 by mel
As Alex mentioned, look at /components/com_community/helpers/head.php. Around line 125 you should see the following block of code for adding images:
if ($images !== null) {
                foreach ($images as $image) {
                    self::addOpengraph('og:image', $image, true);
                }
            }
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #50484 by Ivan
Yes, Commenting that section fixed the og image error i was getting when upload a photo and i am now able to invoke the photos upload action. However for join group at the group page that code i pasted above is showing up. Thats telling me there is something else rendering 2 additional tags on the individual groups page. I need to find out what is rendering that code there and comment out those 2 tags.
Last edit: 9 years 3 months ago by Ivan.
The topic has been locked.
Support Specialist
9 years 3 months ago #50485 by mel
Gotcha. Can you try looking at /components/com_community/views/groups/view.html.php for the og:image tag around line 108?
case 'og:image':
   $this->_addArray('image', $attributes['content']);
   break;
The topic has been locked.