Topic-icon Error

Active Subscriptions:

None
12 years 2 weeks ago #44261 by share24
Error was created by share24
Using Joomla's debug function I'm presented with the following error:

JFile: :read: Unable to open file: /home/ohiovars/public_html/components/com_jfbconnect/includes/jfbconnect.js?v=434

I will include a screenshot with all the call stacks.


File Attachment:
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44264 by alzander
Replied by alzander on topic Error
That error looks to be coming from your template while it's trying to compress and combine our Javascript file. I'm not sure why the error is showing, but it's not from JFBConnect directly, it's from your template's optimization scripts.

Beyond that, it sounds like the version of JFBConnect you're using is quite old. If your on v4.3 or v5.0, I'd highly recommend updating. There's been quite a few changes with Facebook lately, regarding their Graph API v2 . The newer releases of JFBConnect support those Facebook updates as well as support Twitter, Google and LinkedIn integration.. and there will be a few more social networks we support in the 6.1 release in June.

I hope that helps, but if you have any other questions, just let me know.

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

None
12 years 2 weeks ago #44268 by share24
Replied by share24 on topic Error
Thanks, I actually did just update and now the error has changed (reflecting the current version):

JFile: :read: Unable to open file: /home/ohiovars/public_html/components/com_jfbconnect/includes/jfbconnect.js?v=6

I'm using JCH Optimize...how would you suggest I avoid that error?
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44270 by alzander
Replied by alzander on topic Error
There's a few things to check and some suggestions that should fix things. First, please check to see if the following file exists on your server:
/home/ohiovars/public_html/components/com_jfbconnect/includes/jfbconnect.js

If so, that means that JCH Optimize is having issues with the ?v=6 at the end. That ?v=6 is meant to prevent browsers from caching the file when you upgrade JFBConnect (so that the older version of the file isn't used. We haven't seen JCH Optimize have this issue before though, and we know of many sites that use JCH.

What I'd recommend is:
* Checking your settings in JCH. I haven't used it in a long time, but there may be a setting for query strings in files to ignore, or something like that.
* Contacting the JCH Optimize developers to see if they have any suggestions as to why the ?v=6 isn't being stripped from the filename properly to get the actual filename on your server.

Finally, you should be able to alter JFBConnect to remove the ?v=6 from the inclusion. However, this is something that will have to be done after every update, so it's not the most ideal solution. To do so, edit the /components/com_jfbconnect/libraries/provider/facebook.php file. In there, search for "?v=6" and you'll find a line like:
$doc->addScript(JURI::base(true) . '/components/com_jfbconnect/includes/jfbconnect.js?v=6');
Simply update that to:
$doc->addScript(JURI::base(true) . '/components/com_jfbconnect/includes/jfbconnect.js');
I hope that helps, but if not, let us know.

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

None
12 years 2 weeks ago #44271 by share24
Replied by share24 on topic Error
I was able to add the script location to the exclusions portion of the template settings and the error is gone.

But, I do have another issue. Since I updated to 6.0, JFBConnect is no longer listed in my components dropdown list.


File Attachment:
The topic has been locked.
Support Specialist
12 years 1 week ago #44277 by alzander
Replied by alzander on topic Error
Glad to hear that got you going with the Javascript problem. I'm not sure why JFBConnect isn't showing up in your menu. I'd recommend clearing your Joomla caches and, if that doesn't work, re-install using the Joomla Install manager.

In the worst case, if that still doesn't work, uninstall JFBConnect and then re-install it again. JFBConnect will retain all of it's settings even when uninstalled, so it shouldn't cause any problems to do that.

I hope that helps get you going, but if you continue having issues, just let me know.

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

None
12 years 1 week ago #44288 by share24
Replied by share24 on topic Error
It took two uninstalls/reinstalls to get the component to show up in my components list...but it's back! Weird.
The topic has been locked.
Support Specialist
12 years 1 week ago #44294 by alzander
Replied by alzander on topic Error
Well... frankly, that's pretty bizarre. I'm glad it worked though and hopefully you're all set now. If you run into any other issues or have any questions, just let me know.

Thanks,
Alex
The topic has been locked.