Topic-icon Opensource plugin breaking Jreviews submit form

Active Subscriptions:

None
6 years 5 months ago #62963 by petgal
hi Alex and Melissa,
I actually don't know if this is true but when I see an opengraph anything I think of you guys. Below is the problem I reported and jReviews response. Would appreciate your help to solve.

"Sites' now on my own shared server and I just tried submitting a listing, but the pages refreshed to the same page.
See:
screencast.com/t/MkocVLTl

What do you think is the problem?"

JREVIEWS RESPONSE:

"The issue is caused by a different plugin. If you look at the response from the submit request, you can find this:

<b>Warning</b>: get_class() expects parameter 1 to be object, array given in <b>/home4/morevida/public_html/goodtalktnt.com/test2/plugins/opengraph/content/content.php</b> on line <b>335</b><br />

So it's that plugin that is breaking the submit form."

Is this a sourcecoast plugin?

If not can you shed some light on who it belongs to and if I can simply disable it?

Thanks much for your help.
The topic has been locked.
Support Specialist
6 years 5 months ago #62969 by alzander
That's our plugin, but the warning is a bit bizarre. This may be due to an interaction between jReviews and JFBConnect simply because jReviews extends and changes normal Joomla content.

Here's the fix I'd recommend that should get you going. In the /plugins/opengraph/content/content.php file, at line 335, you should see:
if(get_class($article) == 'JTableContent')
Change that to:
if(is_object($article) && (get_class($article) == 'JTableContent'))
The other simple option is to set Error Reporting to "None" in the Global Configuration area of Joomla, which will hide those warnings.. but the best is the code fix above.

Let us know how that goes and we can gladly include that change in the next release.

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

None
6 years 5 months ago #62971 by petgal
Thanks man. Made the change and it worked. Impressed that I was able to do it. ;-)
The topic has been locked.
Support Specialist
6 years 5 months ago #62976 by mel
Thanks for letting us know. I've checked in the change for the next release.

-Melissa
The topic has been locked.