× Joomla Facebook Connect support forum

Topic-icon JFB Breaks with Virtuemart Social Sharing plugin

Active Subscriptions:

None
I'm trying to share my product socially. I use this extension:
ATShareVirtuemart plugin at extensions.joomla.org/extensions/extensi...uemart-coupons/14617

It works great. However, when it is enabled it breaks JFB Connect. Is this one of those "Oh well that is from another developer we can't do anything" type of deals? If so, any recommendations of anything that will work with JFB Connect?
The topic has been locked.
Support Specialist
14 years 10 months ago #11728 by alzander
If you can show the page you're using it on, we can likely help. My guess (this is usually what it is) is that the other extension is including the same Javascript library that we include, in which case there will be conflicts. Usually preventing this double-inclusion is all that's necessary and normally, the other extension will continue to work normally.

Can you give the URL to your site again. I know I've seen it before, but can't remember it off-hand right now. Once we see the front-end, we can figure out the issue quickly, and then possibly poke into the AT Share extension and figure out what needs to be changed.

Finally, in the 4.0 release we're adding support for auto comments/likes in K2. We're hoping to add the same functionality to VirtueMart in the 4.1 or 4.2 release. Of course, we still won't try to break other extensions and always try to play nice when we can :)
The topic has been locked.
Active Subscriptions:

None
The topic has been locked.
Support Specialist
14 years 10 months ago #11739 by alzander
First off, on the page, I'm seeing some PHP warnings coming from that module.. which is never good. You can disable them from showing in the Joomla Configuration area, but hiding warnings isn't necessarily the best 'fix' for them.

Either way, the issue is definitely what I said. That module is including the all.js file in a line similar to below:
script src="http://connect.facebook.net/en_US/all.js#xfbml=1"

I'd look through the files in their directory and see if you can disable those script tag. When you do, that will fix your problems, while still leaving their Like button's and other functionality intact.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #11753 by hdwebpros
I removed the script tag, still get the error
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #11772 by hdwebpros
Any ideas why?
The topic has been locked.
Support Specialist
14 years 10 months ago #11782 by alzander
I'm not seeing the problem you mention. On all of your pages, I'm seeing the following warnings, which aren't coming from JFBConnect:
Warning: Cannot modify header information - headers already sent by (output started at /home2/scorpip6/public_html/hdwp/plugins/system/ATShareVirtuemart.php:147) in /home2/scorpip6/public_html/hdwp/administrator/components/com_virtuemart/classes/ps_session.php on line 68

However, even with these warnings I was able to create an account using JFBConnect, log out, and then log back in without issue. In your post above though, you mention that enabling the ATShareVirtuemart plugin (which is definitely enabled because it's throwing those messages above) breaks JFBConnect. What functionality of JFBConnect isn't working? Once we know that, we'll be able to help you a bit more.

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

None
14 years 10 months ago #11874 by hdwebpros
I'm sorry it took so long to get back, things got crazy for a minute. I phrased that poorly then. It doesn't break. But, when the JFB is enabled I get those errors. When it is disabled, everything works properly.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #11907 by hdwebpros
OMG solved. After some research I found that at the very end of the file, it wasn't the ?> but actually a couple of extra empty lines. Such are the adventures of "open sores" software. I'd gladly pay and get top notch support like you give anyday.

Thanks
The topic has been locked.
Support Specialist
14 years 10 months ago #11908 by alzander
Ahh. Great catch! I saw your post earlier today, but hadn't had the time to investigate the cause further. What you mention is a common (and annoying) problem with PHP in general.. but of course, best coding standards don't generally allow that issue to come to light.

Either way, very glad you found the issue, and hopefully you're all fixed up now! Should you need anything, don't hesitate to ask.. you know where to find us :0

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect and/or our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Best of luck to you and your site,
Alex
The topic has been locked.