Topic-icon OpenGraph causing problems with submitting listings in JReviews

Active Subscriptions:

None
I've noticed this on my ipad and now it's happening on my mac. See screencast.com/t/QZmDlO1M

I get some feedback that the listing is being saved but the page does not refresh to the next page where I can upload media. This happens as a registered user and a super-admin on the front-end.

Now it seems to be getting worse. Now I hit submit (new listing) and it's not saving. page does not go to next page where I can submit media, but at least before the listing was being saved.

Here's a screencast of it.
screencast.com/t/mxj0NbSq4B

The JReviews support guys said "This php error is breaking the submit form:
Notice: Undefined index: pid in /home/morevida/public_html/goodtalktnt.com/plugins/opengraph/jreviews/jreviews.php on line 133

Can you help. I need to get this fixed fast. Thanks.
The topic has been locked.
Support Specialist
We'll definitely be looking into the issue. In the meantime, go to your Joomla Global Configuration and set "Error Reporting" to "None". That will disable Notice's from being output, and should stop the submission problem you're seeing.

Again, we'll still look into it, but that should get you past the listing submission issue for now.

Let us know how that goes, and we'll let you know what we find as well.

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

None
Seems it was already set to "None". In the meantime the problem is that listings seem not to be submitted. They are but the user is stuck on the "submit" page and thinks it's not being submitted. In addition, they can't complete the submission by adding any images which appears in the page after.

Would really appreciate it if you can solve this for us quickly.
The topic has been locked.
Support Specialist
If None is still showing those messages, it means your host is forcing the display of those messages. I'd honestly recommend contacting your host to stop that as it's not good to display warning/notice messages as it can give information about your server out that shouldn't be out there and it just looks bad for guests. While there shouldn't be notices/warnings anyways, they do happen and should just be masked (turned off) by Joomla/your server.

To fix, please try making the following change to the /plugins/opengraph/jreviews/jreviews.php file. Around line 132, you'll see:
// get the article ID being reviewed:
            $id = $data['Review']['pid'];
// get the article ID being reviewed:
            if (!array_key_exists('pid', $data['Review']))
                return;
            $id = $data['Review']['pid'];
Let us know how that goes, and thanks for letting us know about the problem.

Alex
The topic has been locked.
Active Subscriptions:

None
Thanks. Made the change and listings can now be submitted like normal again. Only problem seems to be those strings of error code being displayed still. See
screencast.com/t/vQzHLEeW

Will talk to support at Hostgator about it, but I wonder how I would know there is a problem if that doesn't show up. Also why is it still showing up?

Thanks for your help.
The topic has been locked.
Support Specialist
The messages should be able to be configured to turn on or off in the Global Configuration area. However, some hosts are setup to force them on or off always, which it appears to be the case for you. In general, when you're testing things or debugging, you'd want Error notices and messages 'on' so you can see those messages. When you're not debugging you should be able to turn them off so that they don't cause issues for your users, as you're seeing here.

To fix that notice, please edit the /libraries/sourcecoast/articleContent.php file. Around line 335, you'll see:
static function getFirstArticleText($article, $numCharacters = 100, $socialGraphFirstText='1')
    {
        if(isset($article->introtext) && trim(strip_tags($article->introtext)) != "")
Change that to:
static function getFirstArticleText($article, $numCharacters = 100, $socialGraphFirstText='1')
    {
        $articleText = ''; // <------- ADD THIS
        if(isset($article->introtext) && trim(strip_tags($article->introtext)) != "")
That should get rid of the notices.

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

None
Saw your email. i thought I had replied to your last post here, but I see I did not. The messages have stopped but it leaves me wondering if there are still problems. Also, will the changes I've made be reflected in new updates to OpenGraph?
The topic has been locked.
Active Subscriptions:

None
Also, I just notice the same problem occurring. I'm hitting the submit button, it gives me an indication that it is saving my changes but it does not refresh the page to the page that it is supposed to go to.
The topic has been locked.
Support Specialist
If you're still having issues submitting, we'll probably need to test on that page to see what's going on. Can you post (or PM) a link to a page where we can submit a test listing?

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

None
Hey Alexander,
Seems the issue is not with adding a brand new listing but with editing. I just tried adding a new listing and it worked the way it's supposed to, but when I edit an existing listing and hit the submit button it doesn't refresh to the next page, so a user is left wondering if it took or not. It does actually accept/save the changes but it should refresh to the next page and it does not.

You can see it here
screencast.com/t/CSm9OO9jnh

You can log in to the front end using the same access information I provided to you before and test it yourself. Probably best to create a new listing yourself (click on "Add something new" on the bottom of the page) and then go back and try to edit it.
The topic has been locked.