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:
10607
Total Polls:
0
Total Posts:
44815
Average Posts Per Hour:
1.0
User Info
 
Total Users:
38868
Newest User:
marper1
Members Online:
2
Guests Online:
702

Social Stream
SourceCoast Joomla Social Extensions
Wednesday, 24 August 2016
Joomla's caching system can be a huge benefit to your site, but can also cause a lot of headaches. The advantages are obvious: an overall better user experience, faster load times, less powerful server requirements and more. Let's talk about some of the pain-points that you should know about when trying to get Joomla's caching setup. https://lnkd.in/d_c_eaK
SourceCoast Joomla Social Extensions
Wednesday, 17 August 2016
Want a good explanation on what SSL is for, why you should enable it and how things have changed over the last few years? https://lnkd.in/euX2-z7
SourceCoast Joomla Social Extensions
Wednesday, 10 August 2016
With the launch of v2.0 of the Facebook Graph API over 2 years ago, a new review process was also implemented for all Facebook Applications. The review process is Facebook's way to verify that deeper integration features on your site are abiding by Facebook's Terms of Service. There's a lot to understand about the process and some of it may surprise you. Some JFBConnect features like posting to your Facebook Page usually don't even need to go through the review process. For the features that do need review, what's the process and how do you proceed? Read our blog post to find out. https://lnkd.in/eKbiwbb
SourceCoast Joomla Social Extensions
Wednesday, 03 August 2016
Using a Facebook Page Tab can be a great way to promote your site by showing content from your site within your Facebook Page. It's a powerful, yet simple, way to show a newsletter subscription form, product page or view of your blog on your Page. Well, it should be simple. Sometimes, it just doesn't work and, when it doesn't, it can be very hard to diagnose. We've worked with thousands of users to integrate Facebook with their website and want to let give out some easy pointers on where to look first. Read our blog post to find out more. https://lnkd.in/e6rmchw
SourceCoast Joomla Social Extensions
Friday, 29 July 2016
Sessions within Joomla can be mystifying if you are unfamiliar with them. Pulling back the curtains reveals a pretty easy concept and one that you should be familiar with in case you run into some too-common issues, mainly around authentication and staying logged in, on your site. Read more in our blog post at https://lnkd.in/dPMyZJj
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
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