Why debug.log doesn’t work?

Based on this question: You have @ini_set(‘display_errors’, 0); – which will tell PHP (not WordPress) to stop displaying errors. WordPress requires errors to be turned on in order for it to pass them to the appropriate place. define(‘WP_DEBUG_DISPLAY’, false); or define(‘WP_DEBUG’, false); should take care of hiding them on the front end for you.

Warning: Cannot modify header information (with a twist)

Goin with @One Trick Pony… Change: <?php /* You really don’t want to touch this file if you don’t know what you’re doing. */ ?> <?php class WP_LESS_Styles extends WP_Dependencies { …. To: <?php /* You really don’t want to touch this file if you don’t know what you’re doing.*/ class WP_LESS_Styles extends WP_Dependencies {…

Undefined index: debuging error for theme option template snippet

Looking at your actual source, the relevant portion (with line numbers) is this: 745 if ( $_GET[‘page’] == basename(__FILE__) ) { 746 747 if ( ‘save’ == $_REQUEST[‘action’] ) { 748 749 foreach ($options as $value) { 750 update_option( $value[‘id’], $_REQUEST[ $value[‘id’] ] ); } 751 752 foreach ($options as $value) { 753 if( isset( … Read more

Different sql queries count indicator on the main page [closed]

Probably some code on your site caches the result of an expensive operation. When the page is cached by W3TC, if on the very same page generation, cache was being regenerated, you will see the actual queries that operation requires. After that, queries are like the usual page load ones. Don’t worry about it until … Read more

CPT Template Not Showing – Getting 404

Always flush the rewrite rules when you register a new public post type or taxonomy. Otherwise the internal rewrite rules will not take that into account when an URL is mapped to a query. You can automate that process by hooking into registered_post_type and registered_taxonomy. Below is the updated code, based on feedback from comments … Read more