Where can I get a full list of wordpress errors in plain text?

Enable debug logging in wp-config.php: define( ‘WP_DEBUG’, true ); // Enable debugging // Default logging path is wp-content/debug.log define( ‘WP_DEBUG_LOG’, true /* or custom path e.g. ‘/path/to/debug.log’ */ ); define( ‘WP_DEBUG_DISPLAY’, true /* or false if you want to just log the errors */ ); That will capture and store all errors (either from core … Read more

WordPress Plugin: Demon Image Annotation

The problem is that the plugin is trying to echo data (re-sending the headers) after they have been sent. Here is line 178 of the plugin echo “<div id=\”comment-“.$str.”\”><a href=”#”.$str.””>noted on #”.$imgIDNow.”</a></div>”; I would need more information on which page the plugin was failing on. What the plugin does, what you are trying to do … Read more

How to handle PHP parse errors?

You have to close the PHP context if you use raw HTML output. Instead of … <?php global $EM_Event; <div class=”content_left”> <?php gteventstore_before_loop(); ?> … close PHP before the div: <?php global $EM_Event; ?> <div class=”content_left”> <?php gteventstore_before_loop(); ?> Use an IDE with a PHP parser to see such syntax errors early. You code looks … Read more

WooCommerce Product Search Error

” Invalid argument supplied for foreach()” . means that the $parents variable is not an array so you can’t loop through it. You should wrap the foreach loop in an if check that verifies that $parents is something valid. <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); $parents = get_the_terms($term->parent, get_query_var(‘taxonomy’) … Read more

problem with php function error

When $ticket_details[‘assigned_to’]->display_name is not set, get_user_by() has returned not an object but FALSE. First test if you got an object: $user = get_user_by(‘id’, get_post_meta( $post_id, ‘_responsible’, true)); if ( ! is_object( $user ) ) return; $ticket_details[‘assigned_to’] = $user; display_name is always set if there is an user object. At least to an empty string.

WordPress database error Unknown column

There is a SQL query in the theme file /themes/ExtraGrid/content-single.php, and it is asking for a column that doesn’t exist. This seems to be a commercial theme, so we can just guess why that query exists. Maybe you forgot to set a required theme option, or your tables are just incomplete.

Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ [closed]

It’s not a very good practice to echo html code. Also you have errors with quotes. Correct way to do this would be: <a href=”https://wordpress.stackexchange.com/questions/106828/mailto:type%20email%20address%20here?subject=I%20wanted%20to%20share%20this%20post%20with%20you%20from%20<?php echo rawurlencode(get_bloginfo(“name’)); ?>&body=<?php echo rawurlencode(get_the_title()); ?>%20%20%3A%20%20<?php echo rawurlencode(get_the_excerpt()); ?>%20%20%2D%20%20%28%20<?php echo rawurlencode(get_permalink()); ?>%20%29″ title=”Email to a friend/colleague” target=”_blank”>Share via Email</a>

WordPress Customer Reviews Error: Line 239?

Replace that line with the following: if(!is_object($val) && !is_array($val)){ $this->p->$c = trim(stripslashes($val)); } else { $this->p->$c = $val; } This is just a temporary solution so the error will go away. All this does is check the variable to see if it’s an object or an array. If it is the variable just gets saved … Read more

What does that mean: cannot use a scalar value as an array [closed]

A scalar value is something you can put on a scale: an integer or float value (4 or 5.5) or a string. That means WPBMap::getParam(‘vc_row’, ‘el_class’); doesn’t return an array, but a number or a string, so you cannot treat $param as an array with $param [‘description’]. Find out why you don’t get an array.

The plugin generated xxx characters of unexpected output during activation

Anything outside the <?php ?> tags will be echoed as output since it has no conditions. The fastest way is to wrap in a function and output in the footer. add_action(‘wp_footer’,’custom_random_script’); function custom_random_script() { echo ‘<script> ……SCRIPT CONTENTS…… </script>’; } There is nothing technically wrong with outputting the script inside your existing function either, it … Read more