The tag has no usage guidance.

learn more… | top users | synonyms (1)

1
vote
3answers
894 views

Not sure how to debug: Send specific users an email when posts are published

I've got the following code, which is supposed to run when a new post is published for the first time, check if a custom field 'specific_users' has data (this uses Advanced Custom Fields), and if so, ...
0
votes
1answer
8 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
2answers
22 views

how to error_log(wp_login_url())

I am trying to confirm if a filter I have applied has changed the wp_login_url to the correct address. I just want to print out the result of wp_login_url somewhere I can see it. if ( has_shortcode( ...
32
votes
13answers
3k views

How do you debug plugins?

I am pretty new to plugin authoring and was having a hard time debuging. I used lots of echo and it is sloppy and ugly. I am sure there is a better way to do this, maybe an IDE with a debugger that ...
3
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 ...
2
votes
4answers
736 views

How to set up plugin project with XDebug remote debugging in PhpStorm

I am looking for a detailed setup instructions for a plugin project in PhpStorm with full comfort like quick deployment to a testing site, debugging etc. I'm going to start with how our current ...
-2
votes
1answer
52 views

In WordPress, after installing “Pie Register” plugin, admin permission is GONE! [closed]

After installing the Pie Register plugin to my WordPress (v4.2.2) site, I found my administrator user lost all its administrative permissions. The menus for viewing and changing the site ...
2
votes
1answer
4k views

Debugging an error: wp_enqueue_style was called incorrectly

I've just uploaded a new, custom theme to find that the container is a fraction of the intended width, and the sections below the home section(this is one single page, long site utilizing ids/anchors ...
0
votes
1answer
30 views

I'm hit with: undefined constant register_sidebar. Once in debug mode? [closed]

I'm attempting to test my theme and I switched my config to debug true and I'm now hit with "Notice: Use of undefined constant register_sidebar - assumed 'register_sidebar'" I'm struggling to fix and ...
0
votes
1answer
32 views

Debugging WordPress with xDebug

Until now I was using a local WordPress project and I was able to define the xDebugger in the php.ini file, it's very useful and helpful. But now I'm connected to a remote server and I only have the ...
0
votes
1answer
13 views

How do I issue a warning in a wordpress plugin?

I'm trying to debugging a plug in that's misbehaving. I don't have a good setup for debugging and developing wordpress, so I just want to output the values of some variables to the rendered page. Is ...
1
vote
3answers
57 views

How to see list of plugins

Is there any tool out there for seeing a list of all the loaded plugins and how much time they took to load? Looking to analyze plugins effect on my site's performance.
14
votes
2answers
2k views

Does the functions.php file ever get called during an AJAX call? Debug AJAX

Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
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 ...
0
votes
0answers
29 views

How to find the function which is outputting Array

I'm calling a plugin (Event Rocket) from a template and the output is mostly as expected but seldom the only thing that is displayed is "Array". I have consulted the plugin's makers and they have no ...
0
votes
0answers
49 views

My website is not visible to visitors?

I don't know what happened, but my website is not visible to visitors, is only visible to me if am logged in as admin. I developed a website on a page, I could see it because I was logged in, however ...
0
votes
1answer
114 views

Suddenly lots of bugs in my WP installation? [closed]

I've been using WordPress for over 4 years without any issues. But recently I get error messages from various sources (mostly plugins). As all those plugins used to work just fine until a few days ...
0
votes
0answers
18 views

Formatting wordpress debug messages

On my local PC (win 8 & IIS) when I get a wordpress debug message I get a nicely formatted table at the top of the page with a full stack trace. When I enable debugging on my linux hosting I just ...
0
votes
1answer
17 views

Method 'post_title' not found in class.

I'm running some code through phpStorm and am getting an error: Method 'post_title' not found in class. at this line: echo $post->post_title(); Is that phpStorm getting things wrong or am I ...
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
0answers
36 views

34 Plugins Present In /wp-content/plugins Directory But Only 6 Of Them Are Being Displayed In WP Admin -> Plugins

There are around 34 plugins present in the /wp-content/plugins directory but only 6 of them are being displayed in the wp admin -> plugins section. Why other plugins are not being displayed. Another ...
0
votes
0answers
178 views

How can I debug the TTFB in WP?

I'm developing a WP theme, based on _s default theme with WP 4.1.1. I keep getting a TTFB(time to first byte) of 22s, consistently both on the front and back of the site, while on localhost. Here's a ...
0
votes
1answer
18 views

Plugins effecting layout & login

I've been working on this issue by myself for a week, and I feel like I'm at my wit's end. Need some advice on what to try next. The issue is that my site has the white screen of death (no login) ...
0
votes
3answers
51 views

How to dump/log default values that are passed to hooks/filter functions?

Here's a quick example of I am trying to achieve: I am using this filter: add_filter('manage_edit-member_columns', 'set_custom_edit_member_columns'); function ...
1
vote
1answer
2k views

Failing to open advanced-cache.php which is breaking Media Library

On my WordPress install, which is 3.8 and has all plugins updated, it is using Magic Fields 2 and Hypercache amongst other plugins. I can't insert images into posts because when I upload, it gives me ...
1
vote
1answer
17 views

Rendering css to screen and debug problem

i got a website here that i am building up HERE the right arrow, in chrome, is LOW as you can see here but when i debug it with the debugger and check float on/off, it comeback to the place it ...
0
votes
2answers
92 views

Using $post->post_name in body id causing error: Trying to get property of non-object

I'm getting the following error in my debug.log: PHP Notice: Trying to get property of non-object in /my-wesbite/wp-content/themes/express/header.php on line 36 This is line 36 of header.php in my ...
0
votes
1answer
21 views

what are WP_DEBUG conditions?

i'm trying to debug my theme using below code to find out some errors,do i need to fix all errors or is it OK when i ignore some of them? error_reporting(E_ALL); ini_set('display_errors', 1); ...
2
votes
1answer
159 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__) )) ...
0
votes
1answer
599 views

“Notice: Undefined variable: content” is showing [closed]

I am using this code if for showing related content form custom taxonomy. But it is showing "Notice: Undefined variable: content" Here is my code: <?php /* Plugin Name: Related Post */ ...
1
vote
1answer
141 views

$wpdb->get_results leaking memory

I have developed a wordpress plugin that reads large custom xml files and imports the information as custom post types and a lot of post meta information. So I am calling a lot of database ...
1
vote
3answers
8k 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
269 views

wp_enqueue_script was called incorrectly… i want to work with debug on

i know that this error is just a notice: notice: wp_enqueue_script was called incorrectly. scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, ...
0
votes
1answer
114 views

wp-includes/comment-template.php:26 - Trying to get property of non-object

I get this notice when debugging my new site. Does anybody know what this means? It doesn't break the site but it's just a warning when I switch debug mode on and I would like to solve this issue. ...
0
votes
1answer
86 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
0answers
29 views

How to find which plugin crashes

I use wordpress version 3.8.3 and as many times as i tried to update wp the site crashes. Probably it's due to plugins. Am trying to find a way to learn which plugin causes this confliction but i ...
-2
votes
1answer
387 views

How to quickly/easily make an analysis (reverse engineering) of Wordpress?

For me Wordpress is totally unknown. I would like to know what tools and techniques do you use to analyze unknown code of Wordpress. If more specifically that for the following tasks: 1. To locate ...
3
votes
2answers
403 views

Get list of scripts / styles and show file which enqueued them

I want to show what scripts and styles have loaded on a page and which plugin / theme / file has added them to the page. We can show all scripts and styles using: <?php global $wp_scripts, ...
0
votes
1answer
21 views

How can I turn off WP_DEBUG_LOG messages coming from a specific plugin or theme?

This is a seemingly simple question... I was wondering if anyone knows how to turn off WP_DEBUG_LOG messages coming from a specific plugin or theme? This assumes define('WP_DEBUG_LOG', true); in ...
0
votes
1answer
32 views

Debugging WordPress

Looking for advice on debugging sql queries. I find that plugins and themes are causing heavy queries and slowing performance. Any easy ways for doing this? Tools? Shortcuts? Thanks! Daniel
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 ...
1
vote
1answer
2k 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
68 views

Blank sign in page

I have a serious problem with my wordpress site. When I try to enter into my wp-admin page, I get blank page. I tried every solution possible including: deactivate plugins, update to higher wordpress ...
0
votes
0answers
18 views

Unable to find BP_Group_Extention

When I try to extend Buddypress' groups, I get false from the function-call class_exists( 'BP_Group_Extension' ). The function is called during my plugin initiation, and I am able to do other ...
1
vote
2answers
602 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 ...
0
votes
0answers
22 views

Debugging Missing Elements in Taxonomy

I'm trying to debug an issue and I was hoping I could get some direction. With the same exact taxonomy page template, one of the pages is missing the sidebar and the WP admin bar (logged in), while ...
0
votes
1answer
39 views

Theme parts path location dump

Few months back I was working on customizing theme that I was assigned to. I remember that I used some function or define something in the config or theme functions file and than it displayed debug ...
0
votes
0answers
242 views

Preview with Custom Post Type Not Working

At this point I have tried everything I know to fix the issue. Issue: preview only works right after a custom posts is loaded or updated. If you make any changes or hit preview twice without updating ...
0
votes
1answer
100 views

loging to Admin page not working at all

I'm trying to log-in to the admin page of my website without any luck, only i got white page, hers what i did to identify the problem: I have enabled the Debugging in wp-config.php // Enable ...
1
vote
0answers
106 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?