Topic-icon Open Graph causes internal server errors

Active Subscriptions:

None
Hi,
I have just installed JFB and setting up the apps and modules went well. When I try to create an open graph object and action for a category it causes internal errors when try to open and articles in the category. I followed the instruction video to set it all up. The extension layout is set for "Content - Article" and the object type is "article". I would expect that the option to share this would now be set to each article in the category. Can you please help.
The topic has been locked.
Support Specialist
8 years 9 months ago #53871 by mel

When I try to create an open graph object and action for a category it causes internal errors when try to open and articles in the category.

Could you describe this a little more? Are you trying to edit the article on the frontend or the backend? Could you provide the text for the error?

Also, could you take a screenshot of the object settings in the backend and the object in Facebook? First upload the files and then use the green arrow to attach to the thread. Sometimes strange things like case sensitivity could cause problems.

Could you give a specific URL where we can see this in action?

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 9 months ago - 8 years 9 months ago #53876 by Brianxvc3m876
Hi Mel,
Thanks for your reply. I decided to do a little more research and found that there are no automatic tags in the "default" box in open graph section>configuration of the component. I decided to re-run auto-tune and all seems fine except when I conduct an "error check" . As you can see in the attached file the check tells me the "systems plugin" is not detected. When I check the plugin it is enabled as you can see in the second screen dump, and is confirmed via Joomla plugin manager. Could this be a contributing factor to my issue below?

Regards,

Brian
P.S I also uploaded a non responsive template and re-ran the test but no change.
JFB-error-report3-7.pdf
Last edit: 8 years 9 months ago by Brianxvc3m876.
The topic has been locked.
Support Specialist
8 years 9 months ago #53882 by alzander
Something is preventing JFBConnect from inserting some information in the page that is necessary for normal operation. Normally, there should be a block of code that looks like:
<script type="text/javascript">jfbc.login.logout_facebook = false;
jfbc.base = 'https://www.sourcecoast.com/';
jfbc.return_url = 'L==';
jfbc.login.scope = 'email';
jfbc.login.show_modal = '0';
jfbc.login.use_popup = true;
jfbc.login.auto = '0';
jfbc.login.logged_in = true;
jfbc.token = '8c6fe97473ee9025b5bcb32efcb6c378';
jfbc.init();
</script>
Your code may have different values, but it should look similar. Something on your site is preventing that extra code from being added. It's likely a system plugin that's altering how the template is rendered, but it could really be any other extension that is conflicting. All I can recommend is selectively disabling some system plugins and keep re-testing until Autotune shows a pass. Then, let us know what plugin(s) are causing the issue and we can help narrow things down from there.

You mentioned using a non-responsive template... have you tried with one of standard Joomla templates that's installed by default? That will be the best test to determine if it's specifically a template problem.

I hope that helps get you started, and I'm glad that Autotune reported a valid error. Now we just need to understand what's wrong.

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

None
8 years 9 months ago #53904 by Brianxvc3m876
Hi Mel,
I received a response from Alzander who asked me to turn of various system plugins until I found the the systems plugin was correctly identified as installed. I have found the plugin which was JCH optimise and the system appears to be configured correctly. The problem I have is when I try to create an open graph object and action, following the video on your site it cannot make it work. Please find a screen shot of the result.
If I do get it to not create this error the syntax throws this error when I place it in an article (JFBCAction ID not found!), I know the ID is correct!. Frankly, I am at the end of my resourced having spent the weekend trying to configure the extension and do not know what to do next.
Please help

Regards,

JFB-Page-error4-7.pdf

Brian
The topic has been locked.
Support Specialist
8 years 9 months ago #53906 by alzander
We're glad you found the plugin causing issues. JCH Optimize can work just fine with JFBConnect, but it's over-optimization of the Javascript on the page can cause issues with our Autotune checker tool. You can either configure JCH to not pull out all inline Javascript or you can ignore the error in Autotune. If you run into issues though, you know which plugin to try to disable to begin diagnosing issues further.

Thank you for uploading the PDF of the error message you're running into. The SQL query that's shown there is indeed incorrect. The query seems to be trying to get 2 category IDs from the categories table, but using very wrong syntax. It seems like 2 categories have been selected in the Open Graph configuration area of JFBConnect - IDs 22 and 34. However, the selection box we have in JFBConnect specifically only allows for one category to be set.

Can you verify that only one category was set in the Object you created? Can you also test that disabling the Object you created or the Open Graph - Content plugin altogether fixes the issue? That will narrow it quickly down to our plugin and a mis-configuration somewhere in just that plugin (instead of somewhere else within JFBConnect). Again though, that's not something we've ever seen before since only 1 category should be selected.

Beyond that, do you have any extensions for Joomla that would be altering the category structure, like something that allows one article in multiple categories or something similar?

Finally, if none of the above helps shed light on things, please let us know what you find and then Private Message us with admin credentials for your site so we can investigate further. You can PM me by clicking the mail icon under my name to the left. Any details on how to configure, recreate and test the problem will greatly help.

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

None
8 years 9 months ago #53908 by Brianxvc3m876
Hi Alex,
I set the category as the main category (ID 22)which has a sub category (ID 34). We have a component called CW multicats which allows us to place articles into more than one category. When I try to reconfigure the object to select just one category the SQL error is still the same. I even tried it on a category with no sub or shared categories and this category show no errors but the original pages which have Cat ID 22 and 34 still shows the same error even when no object is assigned to it. What do you suggest from here? I have also attached a copy of the object and action screens for your reference.
JFB-Object-and-Action-dump.pdf


Regards,

Brian
The topic has been locked.
Support Specialist
8 years 9 months ago #53914 by alzander

We have a component called CW multicats which allows us to place articles into more than one category.

Can you test with that component disabled, even temporarily? I'm not sure what that extension is doing, but if it alters the standard response from Joomla as to what categories an article should be in (normally just 1), then that could be the cause of the problem. From the 28,35 in the query, it sounds like it's returning a string of categories for the article which is not the appropriate way that Joomla operates and not something that JFBConnect could anticipate.

I saw you sent admin credentials, which is helpful. However, my first test would be to disable that extension. Since I'm not familiar with it, it'd be best for you to try so that I don't inadvertantly break some feature you require.

If CW multicats is the issue, I'm not sure if we'll be able to help since it's not conforming to Joomla standards at all. Let us know though and we'll see what we can do. You may need to contact the developer of that extension.

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

None
8 years 9 months ago #53924 by Brianxvc3m876
Hi Alex,
I have tried to add the open graph function to articles that are not in more than one category without success. I have uninstalled the CW cats component and that also gave a negative result. As such I am of the opinion that re-configuring the website without this extension may be the only way to resolve the issue and at this stage we are not in the mood to do so. I will contact the developer to see if there is anything they are willing to do and we will simply use the "social"function to post to FB.
If there is any other solution you can recommend please do so.

Regards,

Brian
The topic has been locked.
Support Specialist
8 years 9 months ago #53941 by alzander
Brian,
I just logged into the admin area of your site to investigate further. I went into the Jojoba Face Lotion article that is showing issues and saw that it was still assigned to 2 different categories. When I removed one of the categories and re-enabled the Open Graph plugin, there was no SQL error.

The issue is absolutely that the articles are being assigned to multiple categories in a way that is non-standard and breaking for how Joomla is supposed to work.

If the problem remains after you uninstall whatever extension your using for multi-categories, that means that the extension is leaving the problem in your database without reverting any changes it made. I'd argue that a very bad scenario as it can leave you with lingering problems that would be very hard to diagnose at a later date.

My only suggestion is to contact the developer of that extension to determine if there is some suggestion they have to make it work with how Joomla normally functions.

I hope that helps you narrow things down and I'm sorry I don't have a specific 'fix' for you. Removing the multi-categories from articles does look like it will fix your problem though.

Thanks,
Alex
The topic has been locked.