The tag has no usage guidance.

learn more… | top users | synonyms (1)

5
votes
3answers
3k views

Is it possible to change the log file location for WP_DEBUG_LOG?

I use WP_DEBUG_LOG in my development environment and have no issues with debug.log being in the wp-content directory. Sometimes I turn on WP_DEBUG in production when I need to debug something, and I ...
1
vote
2answers
933 views

WordPress Ajax Problems

Update I got it to fire using the following curl command: curl -H "Accept: application/json" -X POST http://localhost/wordpress/wp-admin/admin-ajax.php -d ...
2
votes
4answers
1k views

Debug whats going on inside a function called from AJAX

I have a link on my post edit page (admin side) that calls up AJAX and jQuery to run a function inside my functions.php page. The link is wired up and calling the jQuery but I can't seem to debug ...
3
votes
3answers
1k views

How to Debug the 'save_post' Action?

Is it possible to validate PHP code? I have a Custom Post Type (Film) with Custom Meta Boxes. Everything is working fine, I can add new Films and details to the Custom Meta Boxes. My problem is ...
5
votes
2answers
406 views

Is there any debug toolbar that shows whick hooks are called for the current page in Wordpress?

In Django there is a debug toolbar that shows which template files and hooks are called while rendering a page. Is there any plugin that shows which hooks are called for the current page in ...
1
vote
2answers
756 views

How to use WP-FirePHP extension?

http://wordpress.org/extend/plugins/wp-firephp/ I'm simply supposed to call fb('Error message','Lable') but it doesn't work all the time. I can't figure out when and where the relevant files are ...
6
votes
2answers
3k views

Count & Display Database Queries

I'm looking for an solution how I can count and display all queries in a WordPress site. Does anybody know, if there is an good plugin? Otherwise it would be an solution to check the queries on the ...
0
votes
1answer
660 views

Certain aspects of site suddenly not working in Chrome and Firefox

My site has been working perfectly in all browsers, until suddenly 2 days ago. Now in Chrome and Firefox, the main page accordion slider is stuck, the "log in" button is not functional, and a few ...
11
votes
3answers
3k views

Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)

I'm developing a site on a server that the client has access to as well and what I'd like to do is show WP_DEBUG only for administrators. Referencing Yoast's article on a way around this: if ( ...
1
vote
1answer
835 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 ...
0
votes
1answer
220 views

How to solve the fopen error?

I recently updated xampp to 1.8 and enabled xdebug. I'm not sure if this is the reason for this error message which I didn't see before: Warning: fopen(http://api.wordpress.org/plugins/info/1.0/): in ...
2
votes
1answer
131 views

Wordpress visual editor broke due to non standard port?

I recently installed WordPress on my own server, which uses non-port 80 Apache service. I could view posts but the tinymce editor constantly broke. More specifically, all menu items in visual editor ...
0
votes
1answer
4k 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 ...
1
vote
0answers
127 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
1answer
422 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 ...
1
vote
2answers
333 views

How to debug a unit test for a WordPress plugin, which uses wordpress-test?

I'm attempting to debug a unit test for a WordPress plugin. The unit test uses wordpress-test (and PHPUnit). However, wordpress-test: calls system(php ...) the new external PHP process attempts to ...
0
votes
1answer
108 views

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

I use w3_total_cache plugin. But i can`t understand what is going on sometimes. I have enabled database caching and debug info at the bottom. Sometimes on the main page 90-96 db queries, sometimes ...
0
votes
1answer
48 views

Strange Behavior of Page Template Dropdown

My wordpress is updated to latest version 3.4.1 and I noticed a strange function of it - in the Page attributes block page template dropdown has the value: ...
6
votes
2answers
300 views

Debugging WordPress themes with Xdebug, real time html output

Hi I'm using XDEBUG to debug my WordPress code, is it possible to view the page building up in the browser while debugging? At the moment the page just hangs until the debugging process is finished ...
2
votes
1answer
636 views

WP 3.4 has missing photo data

I just updated to WP3.4 and discovered that previously available images are no longer "found" by the system. By this I mean that all the image files remain online and accessible, but WP has lost ...
0
votes
1answer
724 views

How can I understand what is the cause of WP death (white screen)?

I have some problems on a admin side: when i try to filter posts according to any category, or when I publish a post, I see a white screen of WP death... The content of debug.log is: [17-Jun-2012 ...
0
votes
1answer
103 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
2answers
639 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 ...
5
votes
1answer
595 views

Weird behaviour when adding terms/term_taxonomies programmatically

This certainly looks like a bug to me. I put together the following code for you to test it on a fresh install. Basically, the code will add two sub categories under the "uncategorized" to achieve ...
1
vote
1answer
61 views

debugging wordpress

I noticed that when I'm working on a php page that loads wp programmatically, some of my errors are not fired. For example, a variables that has not initialized previously creates a warning when I ...
0
votes
1answer
247 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
732 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 ...
2
votes
1answer
1k views

How to var_dump nav menu items from anywhere?

I wanna preview all the fields that the nav menu $item array holds. Is there a function to fetch it from anywhere and place it inside var_dump?
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
1k 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 ...
1
vote
3answers
6k views

Unhook jQuery from WooCommerce via `functions.php`? [closed]

So I am using the http://woothemes.com/woocommerce/ plugin for eCommerce and it's registering jQuery local and conflicting with my default jQuery call from Google CDN. It took a long time but I ...
2
votes
1answer
4k views

How can I see all the actions attached to an “add_action” hook?

I'm working with the admin bar and trying to debug some of the menus and their priorities. I know several callbacks get bound to actions, such as this one: add_action( 'admin_bar_menu', ...
1
vote
1answer
976 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 ...
0
votes
1answer
929 views

Undefined index: debuging error for theme option template snippet

Hello I tried to find the solution but couldn't get what I am looking for..I am getting error exactly as bellow.. Notice: Undefined index: page in ...
2
votes
5answers
805 views

How to debug WordPress correctly?

I'm using a few plugins and UpThemes framework on my new website and if I turn on Wp Debug I can see that there are a few errors related to Deprecated functions (but website is working). What I would ...
0
votes
2answers
4k 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 ...
1
vote
1answer
124 views

Why do plugins that cause 'unexpected output' create AJAX problems?

I just had to fix an AJAX failure in the admin area (the search/attach dialog box in the Media Library wasn't working) and tracked down a plugin that was the culprit. On activation, this plugin was ...
1
vote
2answers
688 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 ...
5
votes
3answers
1k views

Print WordPress template filename(s) for debugging

I've taken over the maintainance of a large WP-MS powered site. The site has ~200 templates, many page specific, and with no standard naming procedure. It would save a lot of time if while surfing ...
0
votes
2answers
194 views

Warning: Cannot modify header information (with a twist)

Warning: Cannot modify header information - headers already sent by (output started at /home/ezekiel/public_html/boxsponsive/wp- content/themes/BoxSponsive-Portfolio/class.wp-less-styles.php:3) in ...
0
votes
2answers
632 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 ...
27
votes
1answer
326 views

How to perform unit testing on proposed patches in Trac?

I was looking for some insight and good resources on how to correctly perform unit testing on proposed WordPress patches in the Trac and how to accurately report the results from the testing. I'm new ...
0
votes
1answer
904 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 ...
2
votes
1answer
249 views

How to empty debug.log when file size is above xyMB?

Sometimes I forget to empty my debug.log file (or that it exists) and after trying to get around a bug, I find it having simply too much content to open it in ex. the basic Windows Text Editor. Part ...
2
votes
1answer
68 views

Using a _GET gives me a debug error (over my head)

Just looking for some advice on something that is bugging me. Please bear in mind I am a PHP noob :-) I am passing a variable in the url to my WP index page like so: <a href="<?php ...
3
votes
2answers
271 views

Identify which loop you are hooking into; primary or secondary?

What is the most efficient way to determine which loop I'm in? I have a few plugins that alter the query by hooking into various parts of WP_Query::get_posts(), through the usual suspects, ie ...
2
votes
3answers
150 views

Super WordPress debugging toolkit and triage procedures? [duplicate]

Possible Duplicate: Software for WordPress Theme and Plugin Development? What do you use or carry with you in your "toolbelt" when approaching an existing WordPress site that you've got to ...
0
votes
1answer
30 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 ...
2
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
444 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 ...