Topic-icon Combined PlugIns messes up the page

Active Subscriptions:

None
9 years 10 months ago #45428 by fedcon
Hi Alex,

after nearly 10 months of testing and searching i found out, that a combination of two activated JFBC plugins messes up my webpage. It causes double content. One time the content is shown straight after the <body> tag and second time the content as it should be in joomlas content area. Ending with a "/>".

This only shows up, when i activate both plugins - OPEN GRAPH - CONTENT and SYSTEM - JFBC SYSTEM. As long as one of both is deactivated, everything is good. But i need both of the plugins to run the site.

Here site two links. The first one is with OPEN GRAPH - CONTENT deactivated
relaunch.hobbitcon.de/index.php?option=c...0&Itemid=221&lang=en

The second with both plugins activated (1:1 copy of the page)
relaunch.fedcon.de/index.php?option=com_...0&Itemid=221&lang=en

Cheers man and thanks for any help.
Rafael


System: Joomla 3.3.1
JFBC: v6.1.0
but i had this issue 10 months ago also with older joomla versions and older JFBC also!
The topic has been locked.
Support Specialist
9 years 10 months ago #45441 by alzander
Rafael,
That's a really, really bizarre problem that we haven't seen before. Just to clarify, the content is actually shown 3 times! The problem is how the Open Graph description and Twitter description tags are set on the page. If you search for og:description and twitter:description, you'll see that the content="..." property is basically the whole Joomla article.

Obviously, that's very, very incorrect.. but it's also something that I don't have a specific answer as to *why* it's happening right now. We'll be able to create a test article with exactly your contents and test to see if we can recreate the problem. In the meantime, can you let me know if you've created any objects in the JFBConnect -> Open Graph -> Objects area? If so, please try to disable those Objects so that you're using the standard JFBConnect defaults.

We'll let you know what we find, and please let me know if you have any objects enabled.

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

None
9 years 10 months ago #45448 by fedcon
Hi Alex,

well, i think it is a little more difficult as i described before…

In these articles, where the site messes up, i use a extension from Rockettheme called RokCandy - which makes it possible to use pre-defined macros.

The issue causes only, when i :
- use a macro SOMEWHERE at the beginning of the article and
- Open Graph - Content plugin is activated and
- System - JFBC System plugin is activated

Now i fixed it with a trick.

I just use {SCOpenGraph description= …} for this article - (doesn't matter where i set it. Top, middle or bottom of the article-content) and it works.
So i removed the cause - but not the symptom…

For more testing i leave this solution, so you can still see the issue.
relaunch.fedcon.de/index.php?option=com_...0&Itemid=221&lang=en

If you go to the russian content (which is still english) you can see the same article with fixed content.
relaunch.fedcon.de/index.php?option=com_...1&Itemid=321&lang=ru


By the way: to answer your question: NO, i don't use objects in the JFBConnect -> Open Graph -> Objects area. I only use some items in JFBConnect -> Open Graph -> Configuration area. But for the issue it doesn't matter if it's used or empty.

Cheers,
Rafael
The topic has been locked.
Support Specialist
9 years 10 months ago #45460 by alzander
Ahhh.. that makes perfect sense. What's happening is:
1) You have an article. At the beginning, there's a macro AddFullArticleHere (I don't know what RokCandy macros look like, but you get the idea).
2) The Open Graph - Content plugin fetches the first 50 words from your article by default to use as the description
3) JFBConnect sets the og:description and twitter:description to be "AddFullArticleHere"
4) Later, the RokCandy Plugin scans the full output of the page and replaces all 3 of those macros with the full article (or whatever the macro is meant to do).

In this case, JFBConnect is doing what it's supposed to and RokCandy is as well. They're just doing it out of order since RokCandy should replace its stuff first.

Your fix of using the {SCOpenGraph description=...} tag is excellent as JFBConnect will always use the tags over what we automatically generate. If you're going to the effort to create a custom tag, it's an obvious assumption that it's better.

The other options to try is to order the RokCandy System plugin to be *before* the JFBCSystem plugin. That may make the replacements it does happen before our Open Graph plugin tries to scan the article. However, there's many places that each plugin can do it's replacements, so that may not help.

Beyond that, let me know what the macro your using looks like. We may be able to help you update the Open Graph plugin to 'skip' that macro. In that case though, the description tag still won't use what happens after the macro is replaced, since the article contents won't be on the page by the time we try to read it.

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

None
9 years 10 months ago - 9 years 10 months ago #45490 by fedcon
you're a genius, Alex…

now, with that explanation of how JFBC works, it makes totally sense… ich switched the JFBC System with the RokCandy plugin, and it works. I was fixed on the Open Graph Plugin, but as it is a content plugin, i couldn't move the RokCandy before - that's clear… but i didn't try to move it before the JFBC System…

Thanks a lot… and are you still interested in how my macros look like? sometimes i have weird PHP content inside for language, sometimes i build several macros in macros, aso.

I can give you a super user account, if you are interested in it…

Cheers man
Rafael
Last edit: 9 years 10 months ago by fedcon.
The topic has been locked.
Support Specialist
9 years 10 months ago #45493 by alzander
Rafael,
Awesome! So glad to hear the suggestions above fixed things for you. Conflicts can be tricky to debug in general. I'm sorry you've been seeing this issue for a while, but happy to hear it's hopefully over.

As for the actual macro, nah, we don't need that. The solution you have is the best. If we tried to have code to 'skip' the macro, it would cause other problems since your actual content wouldn't be on the page to scan. That was a worst-case solution, not a good long-term one.

Anyways, should you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.