How do I acquire all the meta-information for a particular page I am on?
you can inspect $wp_query to see the query vars and returned data, including all of those conditionals: <pre><?php print_r($wp_query); ?></pre>
you can inspect $wp_query to see the query vars and returned data, including all of those conditionals: <pre><?php print_r($wp_query); ?></pre>
Is there any way to output the raw, unfiltered post HTML to find out whether this is a rogue filter deleting all the content in that specific category for some weird reason? Yes there is, you can use $post->post_content. Try adding something like: echo ‘<pre>’.$post->post_content.'</pre>’; just before the_content() call in your template file. What else … Read more
WP-FirePHP installs two debuggers: FirePHP jQuery.debug This is only mentioned in passing on the WP-FirePHP plugin’s page. Sigh. To disable the jquery debugger, comment out a line in the WP-FirePHP plugin main file. See below. This can be done via the WP Plugin Edit command for the plugin. function WPFirePHP() { add_action( ‘admin_init’, array(&$this, ‘fb_exit’) … Read more
This proves that the problem isn’t core: I switched the theme to twentyeleven where the problem does not appear at all. Core functions are not throwing those notices. Your Theme is calling the deprecated function(s) somewhere – perhaps in a filer callback for the_title. Search your Theme files to find the culprit. Start in functions.php. … Read more
You have several tools at your disposal when working with native WordPress debugging. PHP Debugging – WP_DEBUG is the native WordPress PHP constant for debugging WordPress errors. It sets PHP’s error reporting to to E_ALL for warnings when deprecated functions are used and if none are found it sets it to E_ALL ^ E_NOTICE ^ … Read more
Try using the first code – that worked, but gave errors when submitted the form blank and just cahnge isset($_POST[‘name’] to: isset($_POST[‘name’] && !empty($_POST[‘name’] In your code you are triggering the $missing_content it the vars are empty. According to the spec (see reference) an empty (so not filled as in your case) string will trigger … Read more
Just take a look at its source: function wp_debug_mode() { if ( WP_DEBUG ) { error_reporting( E_ALL ); if ( WP_DEBUG_DISPLAY ) ini_set( ‘display_errors’, 1 ); elseif ( null !== WP_DEBUG_DISPLAY ) ini_set( ‘display_errors’, 0 ); if ( WP_DEBUG_LOG ) { ini_set( ‘log_errors’, 1 ); ini_set( ‘error_log’, WP_CONTENT_DIR . ‘/debug.log’ ); } } else { … Read more
Has your hosting setup changed? The first three errors indicate that PHP can no longer make HTTP requests. Check you have cURL enabled. Deprecated: Call-time pass-by-reference has been deprecated in /home/zoomingj/public_html/wp-content/themes/alltuts/functions.php on line 131 If you weren’t getting this error before, this indicates PHP has been upgraded – read up on how to fix the … Read more
$page = get_page_by_title($title) – this line is failing somewhere, so you should do a check on this to make sure it exists. Like so: function the_alt_title($title=””) { $page = get_page_by_title($title); if (!$page) { return $title; } if ($p = get_post_meta($page->ID, “_x_entry_alternate_index_title”, true)) { $title = $p; } return $title; } add_filter(‘the_title’, ‘the_alt_title’, 10, 1);
The problem was caused by a plugin (wp-spamfree), which simply set error_reporting(0). So if anyone has the same problem, my advice is to search your whole wp-content/plugins directory for words like error_reporting, display_errors and similar to find out if any of your plugins tamper with these settings. You can either disable these plugins, or fix … Read more