The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
772 views

Preferred Method of debugging a wordpress SQL calls?

What is your preferred method of debugging Wordpress Applications when writing custom behind-the-scenes SQL calls, etc. ? Coming from a Rails background, I usually tail a log file that displays not ...
1
vote
2answers
234 views

Debugging - trying to add search box to menus

I have already asked a similar question at stackoverflow (http://stackoverflow.com/questions/22492292/add-filter-in-wordpress-how-do-i-know-if-it-is-run), but maybe that was the wrong place? As you ...
1
vote
1answer
195 views

how to find and correct plugin query performance issues

I have recently uploaded a new site I've been working on for a while - which is working and performing very well on the localhost - there is no notable sluggishness to the load-times. Once uploaded ...
1
vote
2answers
115 views

Debug errors on sidebar

I'm uising a child theme of twentyfourteen on wordpress 3.8. When in debug mode, I get the following errors regarding a widget. Notice: Trying to get property of non-object in ...
1
vote
1answer
3k views

Filtering custom taxonomies

This is a cross post from the WordPress forums, which I apologize for, but it has been almost a week and not getting any response there so hoping someone here can help. If I do get a reply in either ...
1
vote
1answer
696 views

Do WP_debug notices explain why my site runs so slow?

When I enable WP_DEBUG, I get lots of the following kinds of notices (see below). Of course, I normally don't have the debugging turned on, but I'm wondering if these are a clue as to why it takes so ...
1
vote
2answers
532 views

Moved my Wordpress site and now it can't read the theme

I moved my Wordpress website on Friday (so DNS propagation should be long finished) and now the site has no theme. I spent time yesterday re-installing the theme and Wordpress but to no avail. It ...
1
vote
0answers
46 views

Get log of function/method calls made by do_action() on WordPress initialization

Is there any way I can get a log of the method calls that are made when do_action( 'init') is fired?
1
vote
1answer
48 views

Dumping variable in custom pre_gets_post function in functions.php, returns NULL

Problem Summary: I am using firePHP to analyze my variables in a custom function, but it does not display their contents into the console as I would expect. I also used var_dump(), it returns NULL. ...
1
vote
0answers
82 views

Undefined index error when saving content on metabox

I am trying to debug 'undefined index' errors on the WP backend when debug is set to TRUE. The offending lines are: if ( !wp_verify_nonce( $_POST['pdwt_meta_noncename'], plugin_basename(__FILE__) )) ...
1
vote
0answers
210 views

Wordress debug log is not working

I have tried all recommendations from here but none solves my issue. I have a couple of wordpress installations on a local machine running Win 7 and wamp 2.4 and none of them writes in the debug.log ...
1
vote
2answers
59 views

Dump contents of a variable inside a filter/hook callback that runs during save post

I just need to debug an array which comes into addfilter function like this: add_filter('pll_copy_post_metas', 'copy_post_metas'); function copy_post_metas($metas) { var_dump($metas); return ...
1
vote
1answer
70 views

Always keep a parameter in URL?

Is there any way that WordPress always keeps a custom parameter in every link it generates? Here's what I want to do. I want to create a debug mode by entering ?debug as a URL parameter; and display ...
1
vote
1answer
819 views

Updated to version 3.8 and Admin pages are very slow. How to diagnose problem? [closed]

I manage a large multi site Wordpress installation with about 300 hundred users and blogs. The server is blocked from making internet requests, so I have defined a proxy service in wp-config.php ( ...
1
vote
0answers
260 views

Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work

I've got the proper debugging constants defined in wp-config.php: define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', true); define('WP_DEBUG_LOG', true); But they're not doing a darn thing. When ...
1
vote
2answers
196 views

Getting notices on fresh 3.6.1 install

I'm a relative newcomer to WP. I've been playing around for the past 3 months or so trying out themes, plugins etc. About a month ago I got to the point where I turned debug on and I started seeing ...
1
vote
0answers
113 views

Debugging unserialize errors

NOTICE: wp-includes/functions.php:232 - unserialize() I get this error of varying lengths on the admin pages of several of the sub-blogs of my multisite instance. It doesn't happen on all the blogs, ...
0
votes
2answers
179 views

How can I determine what php files are being called by a given WP page?

I'd like to debug some WordPress functionality, but to do so I need to know where to find the php file that is executing on a given page. How can I set up something that will tell me what php files ...
0
votes
2answers
840 views

Wordpress: Notice:Object of class WP_Query could not be converted to int in on line

I am facing issue in debug mode with wordpress. In my featured slider getting error Notice: Object of class WP_Query could not be converted to int in on line I am using below code for my slider ...
0
votes
2answers
563 views

Front end empty (i.e. nothing displays); Back end looks fine; What are possible causes?

My customer's site was working last night. Today nothing displays from the front end. Firebug gives as the contents of the home page. I logged in. The back end looks fine. The most recent post (added ...
0
votes
4answers
152 views

Finding and disabling 'rogue' stylesheet from header: Source Sans Pro

I just recently set up a local WordPress development environment and imported the content from the live site into it using WordPress' built-in export and import functionality. Unfortunately, this ...
0
votes
2answers
122 views

Should all references to a text domain be to my current theme?

I'm running Theme Check on a theme I've inherited and I've come across lots of recommendations like this one: RECOMMENDED: Text domain problems in loop.php. The twentyten text domain is being used! ...
0
votes
1answer
3k views

register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead

I turned on my Debugger and got this error... Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in ...
0
votes
2answers
462 views

debugging errors.. how to remedy?

I had trouble accessing wp-login.php, so I changed the name of the theme I'm developing to force WP to switch to default. I then turned on debugging and received the errors below. I'm a little puzzled ...
0
votes
1answer
90 views

The plugin generated xx characters of unexpected output. How to solve?

I get the following message when I activate the plugin `The plugin generated 655 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with ...
0
votes
1answer
337 views

Add body class based on existance of post thumbnail. Code works but receiving PHP Notice

What I'm trying to do is add a body class based on whether there is a post thumbnail. The following works, but I get a PHP Notice. How can I fix the PHP Notice below? function ...
0
votes
1answer
96 views

Getting a WordPress Debug Strategy

I have been reading up on debugging. I watched Chip Bennett's video on wordpress.tv and was inspired to take debugging seriously. What I have found in my reading up though has confused me a bit. I ...
0
votes
1answer
221 views

Notice: attribute_escape is deprecated

I have WP_DEBUG set to ON to show errors and notices. Of all notices the one that is bothering me is Notice: attribute_escape is deprecated since version 2.8! Use esc_attr() instead. in ...
0
votes
2answers
523 views

White screen on front page only

I've got the famous white screen, but only on my home page. Deeper pages load just fine. I moved my themes directory to themes-old and made a new themes directory that only has twentyten in it. I ...
0
votes
1answer
84 views

How to disable JS? info windows from WP-FirePHP

I'm using current ver of WP and WP-FirePHP. When I load the WP dashboard, firebug's Console window shows the FirePHP data. That's all good. As expected, the main browser window shows the WP ...
0
votes
2answers
3k views

Debug 500 Internal Server Error on WordPress blog

My WordPress blog is hosted on a shared webserver on Hostgator. I've been having 500 Internal Server Errors the last couple of days. I haven't installed any new plugins since the errors started ...
0
votes
2answers
561 views

the_content() returning null in one category only, even though there is content

A friend's heavily customized blog has a category with a specific categoryname-single.php file to display posts. Apparently for no special reason, since yesterday, the_content() is not returning any ...
0
votes
1answer
28 views

How do I acquire all the meta-information for a particular page I am on?

I am trying to customize behavior for different displays of pages; I know I can use the Template Hierarchy and Conditional Tags to accomplish this. In the process of debugging, though, I'd like to be ...
0
votes
2answers
7k views

Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?

I am trying to utilize this function. I cannot figure out why I am still getting the PHP error. All I can figure out is that for some reason the template isn't able to access $wpdb. I don't know ...
0
votes
1answer
1k views

Problem installing plugin: unexpected T_STRING, expecting T_FUNCTION

i am trying to install plugin tumblrize and got the error Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in ...
0
votes
1answer
22 views

Following/tracing page construction through theme PHP

What tools and methods will allow me to figure out how a page is being constructed by WP? I have a mix of plugins that are involved in the theme, and starting with the code I can't begin to figure ...
0
votes
1answer
56 views

mysqli_real_connect() - authentication method unknown to the client Warnings

I keep getting the following warnings in my debug log: PHP Warning: mysqli_real_connect(): The server requested authentication method unknown to the client [mysql_old_password] in ...
0
votes
1answer
53 views

How do I debug an error that a plugin is causing?

I'm having an issue debugging why the plugin I'm creating keeps displaying the error You need to upgrade your database as soon as possible.... The work I've done so far has been on a remote dev site, ...
0
votes
1answer
84 views

Undefined variable error in theme option after updating theme [closed]

I have built a theme.. Now i have updated the theme and my theme consist of two new fields in the theme option panel <input id="welcome_post_char" type="text" name="abc_options[welcome_post_char]" ...
0
votes
2answers
449 views

Why does WP_DEBUG only work after wp_debug_mode() is called? [closed]

With debugging set to on, define('WP_DEBUG', true); my instance of WordPress doesn't show any debugging info. After a lot of searching I figured that after I call wp_debug_mode() debug info shows ...
0
votes
1answer
96 views

Debug output during filter execution doesn't work

I'm working on my first Wordpress plugin and am working on my first Custom Post Type. I'm looking to provide some debug output so I can see what kind of data I have to work with. I have the following ...
0
votes
1answer
183 views

Notice: Undefined index [closed]

Got this great contact us page to use on in my theme. It works great, but the problem is, in debug mode I get undefined index errors on the following line of code: $name = $_POST['name']; ...
0
votes
1answer
238 views

add_sub_menu page() to be replaced by add_theme_page()

While checking my theme with theme-check plugin, i found few errors which are listed below along with the line of codes where it displays those errors(REQUIRED:) to be fixed. REQUIRED: ...
0
votes
1answer
237 views

How to find out which function is causing a 404

So I am trying to upgrade a WordPress project and for one section I get the 404 instead of seeing a product page. I looked around and tried adding this to my functions.php add_action('wp_head', ...
0
votes
1answer
37 views

Best place to call xdebug helper functions?

Right now I place the following code wherever I expect something to go wrong. /** xdebug helper */ error_reporting(E_ERROR); ini_set("display_errors", 1); ini_set("html_errors", 1); ...
0
votes
1answer
103 views

Cannot Modify Header Information - While trying logging in

I am having the same issue as cited on: Cannot modify header information - headers already sent (Theme Specific : functions.php) Can you give me a help on that. I am using Optimize Press Theme This ...
0
votes
2answers
114 views

Wordpress + Buddpyress - troubleshooting server overloading

I have a Wordpress+Buddypress installation which is regularly going down - the number of HTTPD on the server and the server CPU load both peak suddenly and the server fails to recover. A restart of ...
0
votes
1answer
737 views

Weird undefined index: id,std notices. How to fix it?

Ok I'm running my wordpress in debug mode. I'm getting lot of notices. This is my code. <?php //allows the theme to get info from the theme options page global $options; foreach ($options as ...
0
votes
1answer
1k views

Getting a stack trace when an error occurs?

I was told to "get a stack trace" when an error occurs in my WordPress installation. How do I do this? This is meant to be an easy place to refer others to. Please list plugins, configuration ...
0
votes
1answer
370 views

Fix warning: Missing argument

i want to submit a theme to the wordpress.org. when i put the define('WP_DEBUG', true); in my wp-config.php. my theme showed some errors.but i don't know how to correct theme. Q1:Warning: Missing ...