Topic-icon Ohanah Event App has an error coming from Jfbconnect graph with 5.1

Active Subscriptions:

None
here is the error. Is there anyway to get rid of that?

{JFBCGraph title=ORG CHEM I 2210 FINAL EXAM2 Review}{JFBCGraph image=http://isaerudition.com/media/com_ohanah/attachments/1901043552-Chemistry.jpg}{JFBCGraph description=ISA Tutors Review Info Why it Works Other Services Register & Pay Section}
The topic has been locked.
Support Specialist
We actually implemented a change for this behavior before the final release due to your testing feedback. We originally decided to remove the {JFBCOpenGraph } tag support from this release because it was replaced by {SCOpenGraph } tags. However, we realized there are multiple extensions still using that for adding Open Graph tags and we need to contact those developers to get them to switch before removing that tag support.

Can you check the /plugins/system/jfbcsystem.php file. Around line 415, you should see:
private function replaceGraphTags()
    {
        $placeholder = '<SCOpenGraphPlaceholder />';
        $regex1 = '/\{SCOpenGraph\s+(.*?)\}/i';
        $regex2 = '/\{JFBCOpenGraph\s+(.*?)\}/i';

        $newGraphTags1 = array();
        $newGraphTags2 = array();
There's a lot more code after that which is important too. However, if you're only seeing one $regex line, it means that your JFBCSystem plugin hasn't been updated since the beta. You'll need to install the latest version and that should support the {JFBCOpenGraph } tags.

After you update, make sure you clear your Joomla caches.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
im sorry this is going to be a stupid question. The latest version of what? and since when has this version been correct.
The topic has been locked.
Active Subscriptions:

None
this is why my line 415 says. I believe it is correct but the error is still there.
private function replaceGraphTags()
{
$placeholder = '<SCOpenGraphPlaceholder />';
$regex1 = '/\{SCOpenGraph\s+(.*?)\}/i';
$regex2 = '/\{JFBCOpenGraph\s+(.*?)\}/i';

$newGraphTags1 = array();
$newGraphTags2 = array();

$contents = JResponse::getBody();
$this->getGraphContents($regex1, $contents, $newGraphTags1);
$this->getGraphContents($regex2, $contents, $newGraphTags2);
The topic has been locked.
Support Specialist
Then something very strange is happening for you only. Something strange was also happening with your avatar that seemed to indicate the update didn't take.

Do you know if you're running any sort of PHP caching, like APC or eAccelerator that may be caching previous versions of your PHP files?

Alternatively, can you try adding {JFBCOpenGraph test=blah} to any Joomla article and see if that tag is removed automatically (and more specifically, if an og:test tag is inserted into your head area)?

Not sure why the changes of the 'real' v5.1.0 file aren't fully working for you, but we'll get to the bottom of it.

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

None
can I do this for a k2 article?

I know before the update there were a ton of updates that were coming through and it seemed as if there were like a 100 for jfbconnect. i refreshed and they went away. but before your upgrade came out those where there.
The topic has been locked.
Support Specialist
Christian,
We're working on improving the Joomla update manager area to not notify of all the individual modules anymore, now that we have a 1-file install package that updates everything. The situation should get a lot cleaner soon.

As to your question, yes, you can add that {JFBCOpenGraph ...} tag to a K2 article (or anywhere on your Joomla site) to add Open Graph tags. That's what Ohanah has been doing to add Open Graph tags to your pages, and it's a great integration from them. We intentionally didn't break the {JFBCOpenGraph } tag because of other extension developers like Ohanah that are using JFBConnect integration.. but we're at a loss why it seems broken on your site.

One other thing to check.. can you let me know if you have an "Admin Render Key" set in the Social -> Misc area of JFBConnect? If so, remove it, and see if that makes the issue go away. The render key is meant to prevent visitors to your site from adding their own tags. Generally, it's never been abused, but it's something we wanted to protect against.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
I have checked the social box and there is nothing there. As well, I have added that tag {JFBCOpenGraph test=blah} to a k2 article and I don't see anything there in the article.
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #35944 by chrmat1
I figured something out. I looked at the code and this is something to consider...

{JFBCGraph title=ORG CHEM I 2210 FINAL EXAM2 Review} <<< notice that there isn't an OPEN in the JFBC**OPEN**Graph title=ORG <<< your fix seems to imply the open should be in the statement.

because when I add the above code into an article it does appear

is this the problem?
Last edit: 10 years 8 months ago by chrmat1.
The topic has been locked.
Support Specialist
Ahhh.. you're right. We removed support for the {JFBCGraph } tag initially, but it looks like we re-added it for {JFBCOpenGraph } unintentionally and incorrectly.

Can you update the jfbcsystem.php file lines I mentioned above. Where I put:
$regex2 = '/\{JFBCOpenGraph\s+(.*?)\}/i';
Change that to:
$regex2 = '/\{JFBCGraph\s+(.*?)\}/i';
I'm assuming that will fix you up, but please let me know. We'll get this in the 5.1.1 release as well to prevent others from running into the same issue.

Thanks,
Alex
The topic has been locked.