Questions tagged [wp-debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
1answer
2k views

Wordpress Errors in generated by theme check plugin [closed]

Please help me in solving these warnings, in order to submit the theme for submission. Thanks in Advance. I have found many warnings and have solved many of them thanks to wordpress.stackexchange.com ...
0
votes
0answers
1k views

Notice: Use of undefined constant - assumed ' '

I turned on debug mode and see the following in my header: Notice: Use of undefined constant - assumed ' ' I'm using the following function in header.php: <?php if ( is_user_logged_in() ) { ...
0
votes
1answer
503 views

Undefined index: id, when I save the options [closed]

I'm making a Wordpress theme and I get these 'Notices' repeated a lot of times when I save the options using the WP_DEBUG: Notice: Undefined index: id in /var/www/Seozeta/wp-content/themes/seozeta/...
0
votes
1answer
4k views

How to debug 'Notice: Undefined index' on a Request['action']

I use the next code in order to save the options of my theme (by using the Wp Settings API), but when I debug it, I get the 'Notice: Undefined index: action' error/notification. In order to fix it, ...
0
votes
2answers
183 views

Some ways to debug code

I have a BuddyPress installation with many custom code. I had everything ready for production until I moved my database to shared hosting. The problem is that in strange ocasions, all the activities ...
0
votes
1answer
183 views

Pick your brain on wp-config.php if statement for multisite

I am trying to write a if statement into the wp-config.php to only enable define('WP_DEBUG', true); if it's not the main site in a WordPress Multisite install. I just don't know how much of the ...
8
votes
1answer
6k views

Control verbosity level of WP DEBUG?

I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in ...
0
votes
1answer
608 views

Undefined offset: 2

I'm using this function I found from this answer here about showing prev/next navigation for a current page <?php $pagelist = get_pages("child_of=".$post->post_parent."&parent=".$post->...
1
vote
2answers
2k views

Notice: Undefined index: suppress_filters

I'm doing some de-bugging on a theme I'm working on and I'm hoping someone can help me please. I used this function that Justin Tadlock made to display custom post types on the blog page and with wp-...
0
votes
1answer
130 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
4k 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
108 views

How to receive notification of deprecated API elements and functions?

There is some way to get notifications when deprecated API elements are used in WordPress. How is it done? Put WordPress in debug mode (which also shows all other types of errors) or is there another ...
5
votes
1answer
1k views

How to override WP_DEBUG for Ajax responses?

It is highly recommended practice (that I completely agree with) to develop with WP_DEBUG enabled. However it is merely inconvenient to see not yet fixed warnings in pages, but in Ajax responses they ...
6
votes
4answers
3k views

What is the best way to monitor PHP functions/executions?

I am trying to find the best way to monitor which PHP code/functions, MySQL requests and/or plugins are slowing down pages on a site. I know there are a bunch of different options out there including ...
0
votes
1answer
882 views

Undefined index error on options array element?

WP_DEBUG is telling me: Notice: Undefined index: no_cat_base in myplugin.php on line 20 Here's the lines of code where I'm pulling the value of "no_cat_base" from my options array called "...
5
votes
1answer
1k views

Prevent notice and warnings in error_reporting?

When turning opn WP_DEBUG and WP_DEBUG_DISPLAY, I get tons of warnings and notices. I have tried to remove the warnings by doing a @ini_set('error_reporting', 1) to only show E_ERROR, but I still get ...

1
2