Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author we8u

    (@we8u)

    Hey melonie, in your footer.php file change this,

    <!-- JS for Facebook Fanbox (with CSS Support) by H.-Peter Pfeufer [https://ppfeufer.de | https://blog.ppfeufer.de] -->
    <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <!-- END of JS for Facebook Fanbox (with CSS Support) -->

    to this

    <!-- JS for Facebook Fanbox (with CSS Support) by H.-Peter Pfeufer [https://ppfeufer.de | https://blog.ppfeufer.de] -->
    <!--<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>-->
    <!-- END of JS for Facebook Fanbox (with CSS Support) -->

    Your fanbox should still work fine.

    Thread Starter MelonieMac

    (@meloniemac)

    Thanks for your help. ??

    The problem was with the comments in the posts though, not the fanbox. Sorry for not being specific. Was there something wrong with the fanbox too? I thought it was fine, but maybe not. :S haha.

    On my posts, I want people to be able to comment on facebook, but it’s just showing the FB home page instead of enabling comments.

    Plugin Author thinkswan

    (@thinkswan)

    Melonie, we8u is right. That script in your footer.php is already included with the commenting plugin, so your fanbox plugin is including it a second time.

    If you comment it out as suggested, they should both still work.

    Thread Starter MelonieMac

    (@meloniemac)

    Ok, I’m a little confused because the first script you posted that I am supposed to change does not even exist in my footer.php file. This is what the footer looks like:

    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    
    <?php if(is_page_template('template-page-fullwidth.php') OR is_page_template('template-page-columns.php') OR
    is_single() && (get_post_meta($post->ID, 'post_template', true) == "Two Columns" OR
    get_post_meta($post->ID, 'post_template', true) == "Full Width")) { ?><?php } else { ?>
    	<?php get_sidebar(); ?>
    <?php } ?>
    
    </div>
    
    	<div id="footer">
    
    		<div class="left">
    			<?php if(function_exists('wp_nav_menu')) { wp_nav_menu('sort_column=menu_order&container=ul&theme_location=footer-nav'); } else { ?>
    			<ul>
    				<?php if($theme_show_home_nav == "true") {} else { ?>
    				<li<?php if(is_home()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('url') ?>"><?php if($theme_home_text) { ?><?php echo($theme_home_text); ?><?php } else { ?>Home<?php } ?></a></li><?php } ?>
    				<?php $cats = wp_list_categories('echo=0&hide_empty=0&depth=1&title_li=&include='.$theme_include_footer_nav_cats); if (!strpos($cats,'No categories') ){ echo $cats; }?>
    				<?php wp_list_pages('orderby=menu_order&depth=1&title_li=&include='.$theme_include_footer_nav_pages);?>
    			</ul>
    			<?php } ?>
    		</div>
    
    		<div class="right">
    			<?php echo stripslashes($theme_footer_content); ?>
    		</div>
    
    		<?php wp_footer(); ?>
    
    	</div>
    
    </div>
    
    <?php echo stripslashes($theme_scripts); ?>
    
    </body>
    </html>
    Plugin Author we8u

    (@we8u)

    It looks like your page has changed. Did you update any plugins?

    In any case, it’s now here:

    <div id=”text-2″ class=”widget”> <div class=”textwidget”><script src=”https://connect.facebook.net/en_US/all.js#xfbml=1″></script&gt;<fb:like-box href=”https://www.facebook.com/meloniemac?v=info&#8221; width=”250″ show_faces=”true” stream=”true” header=”false”></fb:like-box></div>
    </div><div id=”text-3″ class=”widget”><h3>Advertisements</h3> <div class=”textwidget”><img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ls_macad.jpg’&gt; <img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’&gt;
    <p>
    <img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’&gt; <img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’></div&gt;
    </div>

    All you need to do is surround the italic part with <!– –>, like so:

    <!-- <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script> -->

    It looks like it’s being loaded in either template-page-fullwidth.php or template-page-columns.php, or possibly both if you use fullwidth for some pages. So, check those.

    If you can’t find it, do you use something like dreamweaver, bbedit/notepad++, etc. to edit? If you do, open all your php files in it and do a global search for ‘facebook.net’, then post the file names.

    shaun

    Thread Starter MelonieMac

    (@meloniemac)

    Oh yeah, I did change some plugins, so that must have changed everything. My bad.

    I’m having a difficult time locating this now. It wasn’t in template-page-columns.php or template-page-fullwidth.php either. I also checked template-post-column.php and template-post-fullwidtch.php with no luck either.

    I’m backing up some stuff right now and will do a search as soon as it’s done. Thanks so much for your help. I’ll update you as soon as I locate this. Thanks again! ??

    Thread Starter MelonieMac

    (@meloniemac)

    Ok, so I know why it’s not in column or full width, because I don’t use either. I use the default post setting, and I’m not sure what that would even be called in my php files, for some reason I’m having a hard time finding it.

    Having that said, it seems like when I make my posts column width, the FB comments work. However, column doesn’t have the widgets on the side, which is why I don’t use it.

    If I could figure out where the default template is, that’s probably where it’s located. *searches*

    Thread Starter MelonieMac

    (@meloniemac)

    Crap. I can’t find this to save my life. I tried installing the FB fanbox again to see if it would go back to the footer, but it didn’t. I honestly have no idea where that line of code is, and it doesn’t show up when I search it either. O.o

    Thread Starter MelonieMac

    (@meloniemac)

    Ok, so I opened all of my .php files in dreamweaver and did a search for ‘facebook.net’. No luck. :/ Even when I just searched ‘facebook’, the only results I got were from the facebook comments plugin and from my ‘share this’ plugin that enables facebook sharing.

    I can’t locate that line of text anywhere. I don’t even know if it is in the same spot any more.

    Thread Starter MelonieMac

    (@meloniemac)

    Ok, I did find that line of code on my text widget. lol. I made the changes, but this didn’t have any effect on my facebook comments. I’m still getting the error page instead of it allowing comments.

    For some reason the comments work on full width or column width, but not default. Coincidentally, default is the only one with the side widgets. Could there be a conflict? Here are my test pages:

    Default width: https://www.meloniemac.com/2011/02/10/test-2-2/

    Full width (without widgets): https://www.meloniemac.com/2011/02/10/test-3/

    Plugin Author we8u

    (@we8u)

    Are you sure you uploaded the changed file? If so, then try clearing all of wp-super-cache’s caches, because your server is still serving the old code.

    shaun

    Thread Starter MelonieMac

    (@meloniemac)

    Oops, my bad. The cache was throwing me off. I cleared it, and we are good now! WOO!! Thank you so much, Shaun. ??

    I have the same problem in my website….

    Look the error in any post in my blog https://www.produtosbancarios.com

    Can anyone help me please…

    Thread Starter MelonieMac

    (@meloniemac)

    I’m guessing it’s the same problem as mine, since you have the FB fan widget as well.

    Did you post that into a text widget by any chance? If so, it’s super easy to locate. Just look at your widgets, and on your posts section, fine the line of code for your FB fan widget that starts and end with <script> (other code inside) </script>. Simply put <!– –> around the script like so:

    <!– <script> *line of FB fan widget code* </script> –>

    That should do the trick just fine. Worked for me, thanks to Shaun. ?? Let us know if it works.

    Hi Melonie,

    I had the “the page you requested was not found” problem with my facebook comment. I followed your instruction by adding <!– and –> around the script. it works, but my fan box does not show in the homepage anymore. The both (facebook comment and fan box) show in a posting article just find. When I go to homepage, my fan box is gone.

    Regards,
    Shawn

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Plugin: Facebook Comments for WordPress] FB Comment error on my site’ is closed to new replies.