Topic-icon Fatal error: Cannot access empty property in

Active Subscriptions:

None
9 years 8 months ago #59606 by timmil
Hi Guys,

I've had this problem about a year ago- not sure how I resolved it.

I just updated this plugin but when I enable JFBCSystem in the plugins, it crashes a blog view here:
lisafreeney.com/videos

I recently backed up the site and updated every plugin...appreciate any help.

I"m not sure where to go from here.


System Info:
PHP Built On Linux gator4145.hostgator.com 3.12.35.1418868451 #1 SMP Wed Dec 17 20:10:32 CST 2014 x86_64
Database Version 5.5.51-38.2
Database Collation utf8_unicode_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.24
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.6.2 Stable [ Noether ] 4-August-2016 23:41 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
The topic has been locked.
Support Specialist
9 years 8 months ago #59613 by mel
I was able to find the related blog post that you had last year at www.sourcecoast.com/forums/jfbconnect/jf...s-fatal-error#p56249

In the thread you mentioned that it was related to the number of words in the text. Does this ring any bells on how it was resolved?
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago - 9 years 8 months ago #59617 by timmil
Hi Melissa,

Yes- I definitely remember that. However, I cannot for the life of me get into any kind of user interface for JFB Connect on the site.

While I did figure out a work-around for the earlier issue, it doesn't apply to this one, as all the blog items have a high word-count.

But the bigger issue is that I am honestly clueless as to how to get to the JFB interface within this site...sorry, must be I'm starting to age :)

Appreciate any help...

EDIT- OK, I'll give it another chance. For some reason after I updated JFBConnect, the application didn't display under components for the first hour or so...it's there now. I'll ping back if I get it going and post. Thanks...
Last edit: 9 years 8 months ago by timmil.
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago #59618 by timmil
Ok,

I have been adjusting and can't seem to get this right. If I EXCLUDE the category/blog in question, it displays correctly. However- I really don't want to exclude those, I want to have the ability for users to share them. If I disable exclude for the two categories, both menu items give me a fatal error.

At this point, I'm stuck- really appreciate help.
The topic has been locked.
Support Specialist
9 years 8 months ago #59619 by mel
I understand the need to share the content. To verify your problem, when going to lisafreeney.com/videos or one of the blog posts from that link such as lisafreeney.com/how-to-live-the-best-yea...-in-2016-3-questions you get a fatal error when the JFBC content plugin is enabled and set to have the Like / Share buttons visible when the category is not excluded.

If you're getting a fatal error, the easiest way for us to diagnose this is to know what the actual error message is. If it's just a blank white page, please set Error Reporting to 'Maximum' or 'Development' which should display the message. Let us know that message and we can go from there.

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

None
9 years 8 months ago #59620 by timmil
Hi Melissa,

Yep. Just unselected both categories from exclude and I get the same error:
Fatal error: Cannot access empty property in /home3/thankful/public_html/libraries/vendor/joomla/registry/src/Registry.php on line 689

lisafreeney.com/inspirational-quotes
lisafreeney.com/videos

In the registry file, below is 663-691:
protected function bindData($parent, $data, $recursive = true, $allowNull = true)
	{
		// Ensure the input data is an array.
		$data = is_object($data)
			? get_object_vars($data)
			: (array) $data;

		foreach ($data as $k => $v)
		{
			if (!$allowNull && !(($v !== null) && ($v !== '')))
			{
				continue;
			}

			if ($recursive && ((is_array($v) && ArrayHelper::isAssociative($v)) || is_object($v)))
			{
				if (!isset($parent->$k))
				{
					$parent->$k = new \stdClass;
				}

				$this->bindData($parent->$k, $v);

				continue;
			}

			$parent->$k = $v;
		}
	}
The topic has been locked.
Support Specialist
9 years 8 months ago #59624 by mel
If you don't mind, could you PM me backend credentials and FTP access? I think it may be faster to step through our code to debug this issue.
The topic has been locked.
Support Specialist
9 years 8 months ago #59634 by mel
Thank you for the credentials and backend access. I was able to get the error fixed by disabling the Pinterest PinIt button in your JFBConnect > Social > Content Plugin - Like area. We've had other instances of the PinIt button causing strange problems with the page not rendering correctly, but not a fatal error like you're seeing. I'd still like to debug on your system as this is a new error for us, so let me know in a PM about the permissions on the FTP credentials. In the meantime, the fatal error is gone and the other sharing icons are present on your blog pages.

-Melissa
The topic has been locked.
Support Specialist
9 years 8 months ago #59664 by mel
When the Pinterest PinIt button is enabled, JFBConnect attempts to get the pin text from the article text. Looking at your articles, I am seeing script/html code only, such as the following for the entire article text. There isn't "regular" text in the articles to pin.
<script type="text/javascript">
var idcomments_acct = "";var idcomments_post_id = "simple_pleasures";var idcomments_post_url = "http://lisafreeney.com/simple-pleasures";
</script>
<div class="rk-commentcount rk-none">    		
<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>
</div>

JFBConnect is having a hard time deciphering that to get any text and I think is partially putting some of that in as the description, making things all wonky. I'm not sure as to how you're generating the article content as I don't know the specifics of your website. Honestly, though, I'd suggest just leaving the PinIt button options off in the content plugin Social area. If you're really set on having them in, we'll have to delve into this a lot further.

-Melissa
The topic has been locked.