Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • B,

    Thank you for your quick response and helping hand. But I am afraid to say, I don’t know how to apply fb_get_comments_count and fb_hide_wp_comments filter in function.php

    so I put the new code in the desired area and it is showing this error message:

    <b>Fatal error</b>: Call to undefined function fb_comments_automatic() in <b>/..../public_html/wp-content/themes/nbee/single.php</b> on line <b>1</b>

    B,
    I followed what you said I inserted the code in the desired position but Facebook comment is not showing up.

    I add this code to function.php
    remove_action( 'init', 'fb_apply_filters' );

    And add this to single.php
    <?php if (comments_open() && isset($fb_ver) && isset($options['comments']['enabled'])) echo fb_comments_automatic(''); ?>

    I also try
    <?php echo fb_comments_automatic(''); ?>
    But its also not working.

    Any suggestion?

    In this plugin there is no option to manually add the code wherever user want. Please look at this issue in next update.

    Example: Facebook plugin add comment box just after the content. But I have author info and other things to show before the comment and after the content. But with this plugin I can’t do that. It will be great if I can choose where to add the comment box.

    Thread Starter voiceofbsl

    (@voiceofbsl)

    I just reset the all plugings via ftp. by pluing.hold

    but still same notice. Error establishing a database connection

    I am in panic.

    I got the same problem then I contact with my hosting provider and fix it by killing all sleep connection. And now again same problem. Here is the response I get from hosting provider.

    The problems are due to sleeping/hung database connections.

    At this time the MySQL max_user_connections setting is set to 20, meaning that an individual CPanel user can have up to 20 separate database connections at any given time.

    For some reason certain connections you are making to your WordPress database are failing to close and are ‘sleeping’ for extended periods. These sleeping processes are collecting up and once they reach 20 the web site can no longer connect to the database.

    Here is a list of the 20 processes I just killed in order to get WordPress back up and running:

    | 270285 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 25943 |
    | 271946 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 25543 |
    | 278034 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 23781 |
    | 278428 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 23647 |
    | 281686 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22569 |
    | 281688 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22568 |
    | 282325 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22435 |
    | 282611 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22364 |
    | 282715 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22332 |
    | 283335 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 22182 |
    | 284477 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21778 |
    | 285203 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21586 |
    | 285206 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21586 |
    | 285448 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21518 |
    | 285679 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21446 |
    | 286170 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21292 |
    | 286264 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21266 |
    | 286886 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21124 |
    | 287036 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 21070 |
    | 291090 | [DATABASE NAME] | localhost | [DATABASE NAME] | Sleep | 20141 |

    As you can see these processes had all been running from between 5 hours (20141s) and 7.3 hours (25943s).

    You may want to check the WordPress web site and forums for possible causes and solutions. If you have any further questions or if you need anything else please let me know. Thank you for using HostRocket!

Viewing 5 replies - 1 through 5 (of 5 total)