April 26, 2016 - JFBConnect v7.0.0 is available now, with several major features including auto-posting, Facebook profile channels and compatibility with Joomla 3.5.1. See the full changelog

Forum is closed

Fatal error on execution of the component

Fatal error on execution of the component

This is a different error than was listed in the other thread, so I thought it best to start my own.

The component installs fine, but when I try to run it, I get the following error:

Fatal error: Class 'VersionVerificationToolControllerHome' not found in /nfs/users/xxxxx/xxxxxxxxx/xxxxxxxx/administrator/components/com_versionverificationtool/admin.versionverificationtool.php on line 12

[email protected]
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

The error occurs in 'admin.versionverificationtool.php, line 12:

Code:

 
10         require_once('controller.php');
11         
12         $controller = new VersionVerificationToolControllerHome();

The class 'VersionVerificationToolControllerHome' is defined in controller.php, but it's obviously not getting loaded.  Change line 10 to:

Code:

 require_once(JPATH_COMPONENT.DS.'controller.php'); 

This appears to be the proper Joomla way to include this file.

yolabingo
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

That's odd.  It works on my sites.  I wonder if it's because I have . in the PATH and possibly you do not?

Either way, thanks for the fix, yolabingo!

ken, can you confirm that this fixes your issue?  If so, I will update the code and put out another version.

Thank you both for helping!

cmsmarket
useravatar
Offline
5 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

Yes, that did indeed fix the issue. 

And given that it's the full path, I wouldn't think the . would be necessary, but perhaps it is.  Since this is a live site, I'm somewhat reluctant to test it.  <!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->

Thanks!

[email protected]
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

I actually meant that the PHP include_path had . in it (meaning the current directory).  If I go to Help -> System Info and look on the PHP Information tab, I see this:

Code:


include_path    .:

I'm guessing that is why it works on my server.

Either way, I want to change the code so it works for everyone.  I modified the code and I'm packaging version 1.3 and will have it up shortly.

Thanks for finding and helping fix the issue!

cmsmarket
useravatar
Offline
5 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

I just uploaded version 1.3.  If you have some time, can you get it and make sure everything works properly on your system?

Thanks again for all the help.

cmsmarket
useravatar
Offline
5 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

While debugging this, I confirmed that "." was in the path.  However, PHP considered the current working directory to be elsewhere (I think it was "administrator/").  Since there was a file named "controller.php" in that directory, it would happily load that file and proceed. 

We used this component on numerous sites, and saw this problem on about 1/5 of them.  I suspect that the loading of another component played a role.  This change does fix it in any case, and seems like a good disambiguation that is used by most other Joomla components.

yolabingo
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error on execution of the component

Sounds good.  Thanks for helping us fix it for others.  If you have any other feedback, we're always listening.

cmsmarket
useravatar
Offline
5 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
10516
Total Polls:
0
Total Posts:
44527
Posts today:
8
User Info
 
Total Users:
38724
Newest User:
ανδαπο
Members Online:
1
Guests Online:
477

Online: 
alzander
Social Stream
SourceCoast Joomla Social Extensions
Wednesday, 20 July 2016
Want to know what's new in Joomla 3.6? Check out our blog post at https://lnkd.in/ewWFVgg
SourceCoast Joomla Social Extensions
Wednesday, 13 July 2016
Facebook has begun sending out notices to Facebook Application administrators that v2.0 of the Graph API will be deprecated on August 8, 2016. The message can be a bit cryptic on it's own. It's very difficult to know what it means when you're using an extension like JFBConnect for integration, since it's supposed to mask you from the inner workings of Facebook integration for Joomla. If you're confused, concerned or just curious, read our blog post to understand what the message means and what you need to do. https://lnkd.in/e8Uiikf
SourceCoast Joomla Social Extensions
Wednesday, 06 July 2016
Unsure of the difference between Facebook Applications, Groups and Pages? Check out our new blog post which tries to explain each one and how you can use them to integrate Facebook with your Joomla site! https://lnkd.in/eQ4rjkp
SourceCoast Joomla Social Extensions
Wednesday, 29 June 2016
JFBConnect v7.0 Available now! This release brings auto-posting of content from your site to Facebook, Twitter and LinkedIn as well as Joomla 3.5 support and lots of other great enhancements. For more details, see: https://lnkd.in/e2XW3_u
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program