Error log not showing up in my WordPress installation

Solution:1

define( 'WP_DEBUG', false );

Its already in wp.config.php file

You just need to change it like

define( 'WP_DEBUG', true );

If still you are not able to see the error while adding comments

then add this below line in theme at the top of functions.php file at

ini_set('display_errors', 1);

Hope it will work Thanks

Solution:2

Start with the simpler:

define( 'WP_DEBUG_LOG', true );

If that is still giving you the “site is experiencing technical difficulties” error, temporarily rename your .htaccess file to ensure there are no strange rewrites causing an issue. This should at least get the logs being written to /wp-content/debug.log inside of this WordPress install.

Regarding the full path however:

define( 'WP_DEBUG_LOG', '/public_html/ibdpage/wp-content/debug.log' );

When accessing the filesystem, even though /public_html/ might be the highest you can go in the file structure of your cPanel account, often you need the full path, which would be something like this:

define( 'WP_DEBUG_LOG', '/home/accountname/public_html/ibdpage/wp-content/debug.log' );

Look for Home Directory in your cPanel or File Manager to discover the correct path.