Tagged: buddypress, Reply to comment butty
Hello Ravi,
Thank you again.
As discribed in the link you joined in your reply, I have put the following code in wp-config.php .
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
The “debug” file is only created when starting the website. So the response to comments does not appear in it:
[29-Dec-2020 16:44:24 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée. in C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php on line 1653 [29-Dec-2020 16:44:24 UTC] PHP Stack trace: [29-Dec-2020 16:44:24 UTC] PHP 1. {main}() C:\Users\User\AppData\Local\Programs\Local\resources\extraResources\bin\wp-cli\wp-cli.phar:0 [29-Dec-2020 16:44:24 UTC] PHP 2. include() C:\Users\User\AppData\Local\Programs\Local\resources\extraResources\bin\wp-cli\wp-cli.phar:4 [29-Dec-2020 16:44:25 UTC] PHP 3. include() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/php/boot-phar.php:11 [29-Dec-2020 16:44:25 UTC] PHP 4. WP_CLI\bootstrap() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php:27 [29-Dec-2020 16:44:25 UTC] PHP 5. WP_CLI\Bootstrap\LaunchRunner->process() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php:74 [29-Dec-2020 16:44:25 UTC] PHP 6. WP_CLI\Runner->start() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php:23 [29-Dec-2020 16:44:26 UTC] PHP 7. WP_CLI\Runner->load_wordpress() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1158 [29-Dec-2020 16:44:26 UTC] PHP 8. require() phar://C:/Users/User/AppData/Local/Programs/Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1237 [29-Dec-2020 16:44:26 UTC] PHP 9. require_wp_db() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-settings.php:124 [29-Dec-2020 16:44:26 UTC] PHP 10. wpdb->__construct() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\load.php:527 [29-Dec-2020 16:44:26 UTC] PHP 11. wpdb->db_connect() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php:632 [29-Dec-2020 16:44:26 UTC] PHP 12. mysqli_real_connect() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php:1653 [29-Dec-2020 16:44:29 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée. in C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php on line 1653 [29-Dec-2020 16:44:29 UTC] PHP Stack trace: [29-Dec-2020 16:44:29 UTC] PHP 1. {main}() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-admin\index.php:0 [29-Dec-2020 16:44:29 UTC] PHP 2. require_once() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-admin\index.php:10 [29-Dec-2020 16:44:29 UTC] PHP 3. require_once() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-admin\admin.php:34 [29-Dec-2020 16:44:29 UTC] PHP 4. require_once() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-load.php:37 [29-Dec-2020 16:44:29 UTC] PHP 5. require_once() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-config.php:77 [29-Dec-2020 16:44:29 UTC] PHP 6. require_wp_db() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-settings.php:124 [29-Dec-2020 16:44:29 UTC] PHP 7. wpdb->__construct() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\load.php:527 [29-Dec-2020 16:44:29 UTC] PHP 8. wpdb->db_connect() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php:632 [29-Dec-2020 16:44:29 UTC] PHP 9. mysqli_real_connect() C:\Users\User\Local Sites\vulgariser-les-maths\app\public\wp-includes\wp-db.php:1653
I don’t if I did what you asked for.
Regards,
Nestor
Hello Ravi,
It was effectivelly the mater of template override. In my case, it was du to the presence of the js\buddypress.js template in my theme (oceanwp-child-theme-master\Buddypress\js\buddypress.js). I added this missing new additional code
'_' + form_id[2]
to
to
` ajaxdata = {
action: ‘new_activity_comment’,
‘cookie’: bp_get_cookies(),
‘_wpnonce_new_activity_comment’: jq(‘#_wpnonce_new_activity_comment’).val(),
‘comment_id’: comment_id,
‘form_id’: form_id[2],
‘content’: content.val()
};`like this
ajaxdata = { action: 'new_activity_comment', 'cookie': bp_get_cookies(), '_wpnonce_new_activity_comment': jq('#_wpnonce_new_activity_comment'+ '_' + form_id[2]).val(), 'comment_id': comment_id, 'form_id': form_id[2], 'content': content.val() };
The problem is therefore solved. I would like to thank you, Ravi and Brajesh, for your help. Thank you very much.
Regards,
Nestor
- This reply was modified 3 years, 11 months ago by Nestor Djintelbé.
- This reply was modified 3 years, 11 months ago by Nestor Djintelbé.
- This reply was modified 3 years, 11 months ago by Nestor Djintelbé.
- This reply was modified 3 years, 11 months ago by Nestor Djintelbé.
You must be logged in to reply to this topic.