Hi,
we like ur plugin, but since some server security configurations, we have troubles, because
“Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0”
Located in
“File: /wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php”
Please update to something like below, to look for _getter and prefer if available, the curl _getter:
function fbc_comment_count() {
global $post, $product;
$url = get_permalink($post->ID);
// Produce error:
// $filecontent = file_get_contents(‘https://graph.facebook.com/?ids=’ . $url);
// Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /kunden/506462_20537/webseiten/meine-wilde-wiese.de/wordpress/wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 142
// Warning: file_get_contents(https://graph.facebook.com/?ids=https:///): failed to open stream: no suitable wrapper could be found in //wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 142
// Notice: Trying to get property ‘/’ of non-object in //wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 145
// Notice: Trying to get property ‘comments’ of non-object in //wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 145
// $filecontent = file_get_contents(‘https://graph.facebook.com/?ids=’ . $url);
// Itdah
// allow_url_fopen active?, file_get_contents wrapper disabled, alternative curl
if(function_exists(‘curl_init’)) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘https://graph.facebook.com/?ids=’ . $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$filecontent = curl_exec($ch);
curl_close($ch);
} elseif(ini_get(‘allow_url_fopen’)) {
$filecontent = file_get_contents(‘https://graph.facebook.com/?ids=’ . $url);
}
// Itdah comments prop missing
$count = 0;
$json = json_decode($filecontent);
if(isset($json->$url->comments)) {
$count = $json->$url->comments; // Error, when no comment entered
}
// END itdah
$wpCount = get_comments_number();
$realCount = $count + $wpCount;
if ($realCount == 0 || !isset($realCount)) {
$realCount = 0;
}
return $realCount;
}
Also nice to have in plugin main file, woocommerce version hints, to compare in wordpress plugins page for compatibility:
Best regards,
Alex
Hello there,
We are calling “fbc_wc_tabs_panel_content()” function using “woocommerce_after_single_product_summary” action; but this action accepts no arguments but your function accepts two arguments and those two arguments are not even used in your function.
Warning we are getting:-
“PHP message: PHP Warning: Missing argument 2 for fbc_wc_tabs_panel_content()”
Kindly resolve this issue in your next update.
]]>Hi, I would like to know how to change the language?
Best Regards,
]]>Hello,
Looks like this plugin makes a hard link call to an image using https://. This breaks the secure icon for https websites.
Looks like it’s coded into FBC_LOCATION, which is using WP_PLUGIN_URL. Which is the wrong way to do it.
See https://core.trac.www.ads-software.com/ticket/13941
(Basically you’re doing it wrong if you use WP_PLUGIN_URL, and should do it this way: https://codex.www.ads-software.com/Determining_Plugin_and_Content_Directories )
Looks like your other code is modern, just this line is using a 5 year old method.
//define(‘FBC_LOCATION’, WP_PLUGIN_URL . ‘/’.basename(dirname(__FILE__)));
define(‘FBC_LOCATION’, plugin_dir_url(__FILE__));
Also, the hard script links get blocked:
https://connect.facebook.net/en_US/all.js#xfbml=1
https://platform.twitter.com/widgets.js
https://assets.pinterest.com/js/pinit.js
Please fix for next version.
]]>Hi!
It is an option to set the comment box available to all products?
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>How can i change Language for Comment box?
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hello,
The problem is comment box not displaying in the single product page. After i gave the facebook app id and changes the width. still the error is not solved. Could you tell me what i want to do in my website or could i need to do any changes in the plugin php file.
Thanks
Jagadeesh
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hi,
This plugin doesn′t work on my website and I think problem will be with facebook app configuration. I create facebook app ID paste it inside plugin but it still doesn′t work. Please, can you give me step by step instructions? Thank you
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hello,
Yesterday I tryed this plugin and works perfect for me, but I would like to know if is posible do somethings:
1- If I use px when open comments tab in mobile, I can not see well the facebook form neither button for publish. I was trying to do manually, but if I change any, I’m not able to see the form. ?Could you help me with this?
2- If you plane to update the plugin, could you add a form field, under admin>your plugin, to change the tab name? not every body use english
Thanks in advance for all.
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hi.
I have a problem.
In my website, some products have facebook comment box some products do not have. Products have a comment box is product I make is before install this plugin ExNet WC Facebook Comment & Share and product do not have is product I make the plugin after install. I do not know where I config wrong. Help me please!
So I have been using this just fine on prepareyourgroundzero.com and then recently I started getting this error
Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/preparey/public_html/wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 142
Warning: file_get_contents(https://graph.facebook.com/?ids=https://prepareyourgroundzero.com/shop/insane-water-cannon-w-tripod/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/preparey/public_html/wp-content/plugins/fb-comment-share-for-woocommerce/frontend/fbc-class-frontend.php on line 142
Any ideas what is causing this? I have had to disable this great plugin for now.. I would like to get it going again
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Thanks for your amazing plugin. That suit my need perfectly. But i’m having a problem here.
First, I checked some boxes and it worked well.
When i unchecked every thing including “Enable” box, The page didn’t change with new setting. Every thing still show up. I even tried to clear caches and cookies but social share button still there.
I’m using twenty twelve theme. Would you mind checking the back-end setting for me please?
Thanks.
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hello, when i enable the woocommerce points and rewards plugin, on the product page it overlaps with social buttons, it does not start a new line.
Here is an example.
https://www.stockorganic.com/product/a-la-maison-bar-soap-honey-crisp-apple-8-8-oz
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hello, no matter what combination i set the settings on the social buttons, it show all of the social icons. I only want the facebook share icon. Right now my only options are to show all of the social icons or disable it and show none. Iv tried this on all my sites and its the same.
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>/wp-content/plugins/fb-comment-share-for-woocommerce/admin/fbc-setting-admin.php
row: 67
change:
<option value=”default” <?php if(get_option(‘fbc_color_scheme’) == ‘default’) echo ‘selected=”selected”‘;?>><?php _e(‘Default’, ‘fbc’ ); ?></option>
to:
<option value=”light” <?php if(get_option(‘fbc_color_scheme’) == ‘light’) echo ‘selected=”selected”‘;?>><?php _e(‘Light’, ‘fbc’ ); ?></option>
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>Hey, buddy, I still haven’t tested your plugin, but someone is now selling it online on codecanyon.net
Just have this in mind: https://codecanyon.net/item/facebook-commenter-social-share-for-woocommerce/5819693
https://www.ads-software.com/plugins/fb-comment-share-for-woocommerce/
]]>