Topic-icon Opengraph k2 plugin conflicts with K2 frontend editing

Active Subscriptions:

None
K2 frontend editing does not work when opengraph k2 plugin is enabled. It gives the following error:

1064 YOU HAVE AN ERROR IN YOUR SQL SYNTAX; CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL SERVER VERSION FOR THE RIGHT SYNTAX TO USE NEAR '' AT LINE 1 SQL=SELECT PARENT FROM #__K2_CATEGORIES WHERE ID =
It appears the page you were looking for doesn't exist. Sorry about that.

Further, the front page image on my site dissapears the moment i log into frontend as administrator from my facebook account.
Your extension works great but the social buttons load very slowly and the js used is shown in pagespeed analytics as render blocking.

Please help me resolve the issues at the earliest.

I had asked another query regarding jfbconnect and fb instant articles which has gone unanswered so far.

Request u to please answer me at the earliest.

Warm Regards,
Ashish
The topic has been locked.
Active Subscriptions:

None
Sorry i forgot to mention.

My site is: www.techstorybook.com

Please log in from frontend, expand the menu on the left, Go to experiences -> On the Job. Click on add new item below the category description to replicate the problem.
The topic has been locked.
Support Specialist

K2 frontend editing does not work when opengraph k2 plugin is enabled. It gives the following error:

We haven't heard of that issue before. Can you let us know what version of Joomla and K2 you are using? Also, what URL, specifically, are you seeing the issue on.. your home page, or some interior page(s)?

Please log in from frontend, expand the menu on the left, Go to experiences -> On the Job. Click on add new item below the category description to replicate the problem.

These instructions help.. are you saying you only see that error when you're trying to add new content? Do you ever see it when viewing existing K2 content? That will help narrow things down.

Further, the front page image on my site dissapears the moment i log into frontend as administrator from my facebook account.

Does this happen only when you login with Facebook? Does it happen when you login with your admin account using Joomla credentials? If with Joomla credentials, can you Private Message us those credentials? That will help us look at all these issues. You can PM us by clicking the mail icon under my name to the left.

Your extension works great but the social buttons load very slowly and the js used is shown in pagespeed analytics as render blocking.

We use the social buttons that each social network provides. It's not our own code that is loading, it's the buttons from each network and, unfortunately, we can't change their loading behavior.

I had asked another query regarding jfbconnect and fb instant articles which has gone unanswered so far.

Your post was answered a day after you posted it:
www.sourcecoast.com/forums/jfbconnect/jf...tant-articles#p58670

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

None
Thanks for your prompt response. My last query was answered just the day after, i dint know just coz i felt i'd get a mail notification. I must say your support is really prompt and earnest. Coming back to my issue:

1. I have seen the same problem being reported earlier in your forum but dint get enough infromation from it to solve the issue:
www.sourcecoast.com/forums/jfbconnect/jf...tend-item-submission
www.sourcecoast.com/forums/jfbconnect/jf...em-causes-1064-error

2. The link to my site is: www.techstorybook.com. Im using the latest joomla 3.5.1, K2 2.7.0 and JFBconnect 7.0.2

3. The error occurs anywhere i try to submit a story (add a k2 item) both on frontpage as well as internal pages as an super administrator or as an registered user. The registered user/ administrator is however able to edit the k2 items created by him without the error.

4. The error is as follows:
"1064 YOU HAVE AN ERROR IN YOUR SQL SYNTAX; CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL SERVER VERSION FOR THE RIGHT SYNTAX TO USE NEAR '' AT LINE 1 SQL=SELECT PARENT FROM #__K2_CATEGORIES WHERE ID =
It appears the page you were looking for doesn't exist. Sorry about that."

5. I do not see the error while "viewing" k2 item, but only when trying to add a new item

6. The error happens regardless of whether i log in using joomla credentials or fb credentials

7. The error goes away on disabling the opengraph-k2 plugin.

8. The left hand side component page on home screen appears and then disappears whenever any superadmin logs in. You can check it out using the joomla superadmin credentials provided.I suspect this has something to do with the "social meta | preview| create post | post activity" that comes over it. The moment you mouseover the image, it disappears.

Request you to look into the matter at the earliest and help me out.

Thanks again.
The topic has been locked.
Support Specialist
Thanks for the great explanation about how to recreate the K2 issue. It sounds like we need to do some more testing with front-end creation of K2 content. That used to work, but it's possible a new bug has been introduced along the way that we weren't aware of. For now, I'd have to recommend disabling the Open Graph - K2 plugin when you want to create content on the front end, or create new K2 items in the admin area.

We should have a fix for the K2 issue by the end of this week.

As for the content going away when you authenticate, this does not look related to JFBConnect. When I disable the JFBCSystem plugin, which disables all JFBConnect functionality, I still see the same issue. I did look through the HTML on the page to try to determine the cause. What's happening is that a style is being applied to the main area of ".jmoddiv.jmodinside"
There's also a new stylesheet being loaded on the page of /media/system/css/frontediting.css
That stylesheet has the following style:
.jmoddiv.jmodinside {
     position: relative; 
     top: 0; 
     left: 0; 
}
So, there's a conflict there when you're an admin and the frontediting.css file is loaded on the page, it causes that content to hide. I don't know why, but that should help you narrow things down further.

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

None
9 years 11 months ago #58687 by jure
Hello, I just wanted to open a new topic but found this instead. So I'm just letting you know that I have exactly the same problem with creating new articles in K2 from the frontend with opengraph-k2 enabled.
Looking forward to the fix.
The topic has been locked.
Support Specialist
9 years 11 months ago #58741 by mel
The previous bug fixes were for a related issue when editing an item. This issue seems slightly different and only when creating on the front-end. Could you try the following bug fix for me?

In plugins/opengraph/k2/k2.php around line 45, change
$isEditing = isset($queryVars['task']) && $queryVars['task'] == 'edit';
to
$isEditing = isset($queryVars['task']) && ($queryVars['task'] == 'edit' || $queryVars['task'] == 'add');

I've tested it on my test site, but let me know how it goes on yours. Once we have verified that the fix also works as expected for you, I can check it in for our next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi Mel,

It works ! I'll post in case i see any future errors due to this.

Thank you :)
The topic has been locked.
Support Specialist
9 years 11 months ago #58748 by mel
Thanks for letting us know. I've checked in the code.

-Melissa
The topic has been locked.