The tag has no wiki summary.

learn more… | top users | synonyms

10
votes
3answers
1k 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 ( ...
5
votes
1answer
723 views

Hide php Notices in Dashboard

When I program a theme, I put WP-DEBUG on. Which ensure a proper PHP code. Sadly most Plugin developers keeps using non existing vars : echo $args['title']; Notice: Undefined index: title in ...
4
votes
1answer
485 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 ...
4
votes
1answer
90 views

How to individually set WP_DEBUG on a sub-directory multisite?

According to this question, it's possible to turn on/off WP_DEBUG for specific sites on a multisite. Is it possible to do this with a sub-directory multisite?
4
votes
1answer
792 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 ...
3
votes
4answers
729 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 ...
3
votes
3answers
1k views

How to define WP_DEBUG as true outside of wp-config.php?

I am trying to create a debugging mode in one of my plugins so users can easily enable WP_DEBUG on their own, and hopefully report back to us with helpful error messages. Right now we ask them to ...
2
votes
4answers
742 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 ...
1
vote
1answer
815 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 ...
1
vote
1answer
793 views

Failed to open stream: HTTP request failed! in \wamp\www\wordpress\wp-includes\class-http.php on line 929

I'm writing a theme and almost everytime I reload a page, Wordpress is giving the following error Warning: ...
1
vote
0answers
42 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
286 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
1answer
94 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
412 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
2answers
706 views

WP_DEBUG is not set, but I'm still getting warnings

If WP_DEBUG is not set, as I understand it, you should never ever see warnings. But on some sites on some servers, I'm still seeing a few. Not all the warnings that would be displayed if WP_DEBUG was ...
0
votes
2answers
153 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
123 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
2answers
319 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 ...
0
votes
1answer
96 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 ...
0
votes
1answer
378 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 ...
0
votes
2answers
39 views

500 Internal Error after Moving Wordpress

I've just moved my Wordpress site from localhost to a live Server. What I did that worked: In the live server I've created a DB+user. Exported (quick mode) my localhost database to .sql format ...
0
votes
0answers
123 views

W3 Total Cache debug shows page caching not working, DB and Object caching works

I have nginx, apc running on my server and configure nginx according to this tutorial: http://codex.wordpress.org/Nginx I installed and activated w3 total cache and was done with all setting with no ...
0
votes
0answers
29 views

WP Debug set to true but still wsod

I'm trying to do my first wordpress plugin, and I've added this on my wp-config.php define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); but i still have ...
0
votes
1answer
76 views

TGM plugin error in Theme Check Plugin

Errors generated by theme-check plugin and with the code REQUIRED: plugin-activation.php. Themes should use add_theme_page() for adding admin pages. Line 335: add_submenu_page( add_submenu_page( ...
0
votes
0answers
70 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
2answers
57 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
66 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 ...
0
votes
1answer
33 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 = ...
0
votes
1answer
442 views

Notice: Trying to get property of non-object in options.php

I am generating the following notice in my options.php when testing my theme in wp_debug mode. I can see where the problem is but do not know how to fix this issue? It seems the non object is being ...
-3
votes
1answer
346 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 ...