Questions tagged [debug]
Basic techniques on debugging WordPress that can assist you on first hand.
323
questions
0
votes
0
answers
23
views
How to get rid of undefined variable in previous post image
I am working on a website on WordPress and I have it set to where the bottom of the post will automatically link to a random previous post with a picture from that previous link but a notice keeps ...
0
votes
0
answers
20
views
How do I fix wp-admin error when exporting reusable blocks?
I am having trouble with the export to json feature of the reusable blocks shown below.
I am getting the following console errors after pressing the export to json link:
Access to fetch at 'https://...
0
votes
1
answer
28
views
Solution to White Screen of Death that does not require Web Server access?
I'm working on a live website, updated a plugin and got the dreaded White Screen of Death. I know exactly how to resolve the problem; simply deactivate or delete the plugin I upgraded.
The problem is ...
1
vote
1
answer
23
views
How do you change error reporting to only show errors in WordPress?
I'm working on a development site that has some plugins that produce notices. It's a bit annoying during development when you only want to see the errors your own code produces.
How can you turn off ...
0
votes
1
answer
26
views
Unable to get a simple plugin admin page to work
Even though I have years of software development experience, I am new to WP & PHP development, so please bear with me.
After reading through the plugin manual, I started with a WP plugin boiler ...
0
votes
0
answers
656
views
Can't get rid of JQMIGRATE: Migrate is installed, version 3.3.2. Manually updated all the libralies and site. 5.8.2
Answers I found here are about the older versions of WordPress when it were transitioning into a new version of jQuery. (This is version 5.8.2)
Since the one from WordPress is not logging active, I ...
0
votes
0
answers
23
views
strange characters in debug file
recently I get a weird log in WordPress debug file
[09-Dec-2021 20:26:57 UTC] 03AGdBq27pjsLRdeIVXfN_q2XMOOFf1OY3rFj5GIEfJHVBrzTHplTE0-...
0
votes
0
answers
19
views
Notice on core function
I have this weird error (I guess) since this morning in my logs :
[23-Nov-2021 14:46:50 UTC] PHP Notice: Undefined offset: 3322309 in
..../wp-includes/class-wp-query.php on line 3275
Where the ...
0
votes
0
answers
17
views
Debugging JS errors
I'm struggling with this error and would appreciate some help.
Wordpress with the MasterStudy theme and then MasterStudy LMS plugin. Elementor on top. Everything up to date. I have a caching plugin, ...
0
votes
0
answers
46
views
Step debug wp cron run - ideas how to get this working in PHPStorm with Xdebug?
This is driving me a bit nuts...
I am using my Mac's cron functionality to run Wordpress cron jobs.
In wp-config.php
I have
define('DISABLE_WP_CRON', true);
define( 'WP_DEBUG', true );
// Enable Debug ...
0
votes
1
answer
151
views
Where exactly do I write define( 'WP_DEBUG', true ) in wp-config file
would anybody know where I would write WP_DEBUG in wp_config file. I don't see it there.
I would like to check why my javascript is not working. I have enqueued everything with php in the functions....
0
votes
1
answer
13
views
Home Dashboard Screen Options always change
Like any other WordPress user I have installed a few Themes and Plugins.
I recently noticed that the boxes on my Home Dashboard change every now and then and only 3 of them they are always there:
...
0
votes
1
answer
21
views
Can not login to wordpress site after resolving white screen of death
I had a white screen of death that I was somewhat able to resolve. I updated PHP from 7.0 to 7.3.2, removed BOM from wp-config.php, and deleted wp super cache plugin. From looking at others issues ...
0
votes
0
answers
89
views
Uncaught TypeError: Cannot read property 'className' of null
I am so new at debugging so I don't know what can I provide as more information. Can you look at the problem and my website.
to solve it, I disable customize support from function.php, but it didn't ...
0
votes
0
answers
33
views
WordPress Error Message
I am getting below error message in debug.log file.
[19-Jun-2021 14:12:52 UTC] PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s ...
0
votes
1
answer
111
views
Debugging in WordPress at Theme installation [duplicate]
I am trying to upload a Theme. But I am getting message Please select a file.
I placed below code in wp-config.php file.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( '...
0
votes
1
answer
245
views
How to get the full stack trace for WordPress "table doesn't exist" error in debug.log?
I'm getting a WordPress "table doesn't exist" error in my debug.log, but unlike most errors it doesn't give a full stack trace to help me isolate the code. Anyone know how to tell WordPress ...
1
vote
1
answer
401
views
WP_Debug not displaying anything
In wp-config.php I have included:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
As I understand, this should display certain information on every page, also if there are no errors. However, ...
0
votes
1
answer
80
views
There is no any line related the error but it says critical error
My website says critical error on website after add my custom code but there is no any line related my custom code in log file.There are only 2 repater lines and they are standard for my website, not ...
0
votes
1
answer
150
views
Display Custom Taxonomy Dropdown posts
I wanna display posts of my custom taxonomy in a dropdown list, I mean I create a filter for taxonomies in my custom post type I have 2 different types which contains some sub-category & in that ...
0
votes
1
answer
52
views
Can Someone Help me to Correct my shortcode for displaying a category?
Actually the problem is in this code that is, If I put the id directly in "terms" of any post type like; [arts-list 10], then this type of post which contains this id displays the posts on ...
0
votes
0
answers
22
views
Correct my shortcode for displaying a category?
function diwp_create_shortcode_arts_post_type(){
$atts = shortcode_atts( array(
'type' => ' ',
), $atts );
$args = array(
'post_type' => 'arts'...
0
votes
0
answers
147
views
var_dump() and print_r() display null in php
I am trying to debug php and it would help me if I could display some variables.
When I add var_dump($value) and print_r($value) to functions.php they show Null.
When I add var_dump($value) and ...
0
votes
0
answers
26
views
File is executed twice if plugin is activating
I have an issue with my plugin. I run an function if the plugin is activating this function include a file. But if I activate the plugin the file is included twice. Is this normal or an bug in ...
0
votes
3
answers
129
views
Why does WordPress keep showing me error messages?
I'm trying to hide error messages on a WordPress installation on a shared hosting. I added the following code to my config.
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('...
0
votes
2
answers
398
views
Fatal error: wp-settings.php on line 199
I'd love to know how to get back into wp-admin and get my site back online.
I contacted GoDaddy tech support again today and the PHP is supposedly updating.. Wordpress has been complaining about the ...
0
votes
0
answers
27
views
Access "wp site health info" data from plugin
I wanted to know if a third party plugin can access "WordPress site health info" data. If yes, than what is the correct procedure to do that?
Thank you.
1
vote
2
answers
492
views
WordPress admin menu gap when debug mode is enabled?
After the recent update of WordPress, version 5.5.1.
Whenever I enabled the debug mode, there is a 2em gap between WordPress admin menu and the bar.
.php-error #adminmenuback, .php-error #...
0
votes
2
answers
775
views
How to find line of code causing wordpress deprecation notices
My Site gives a few errors about notices and depreciations that I would like to fix. For example:
Got error 'PHP message: PHP Deprecated: add_option was called with an argument that is deprecated ...
0
votes
1
answer
763
views
error log is going to the wrong location, WP_DEBUG_LOG is ignored
My WordPress error log is going to /var/log/php-fpm/www-error.log. That's not where I want it. In fact, it took me too long to figure that out. (I'm new to WP and PHP).
I've tried to redirect it with ...
0
votes
1
answer
738
views
How to display only specific Error types in debug.log? No notices, warnings, etc
I can't find the right way to make it work.
I tried many things, like putting this in wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', 'wp-content/...
1
vote
0
answers
81
views
PHP-FPM Wordpress Debug
Is there any way to get WP_DEBUG to log errors when running PHP-FPM?
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SAVEQUERIES', true );
12
votes
4
answers
3k
views
How to fix the admin menu margin-top bug in WordPress 5.5?
I recently updated a WordPress instance from 5.4 to 5.5 to end up with an annoying margin-top in the admin area, above the menu directly.
I deactivated all plugins, switched themes, did some ...
1
vote
1
answer
134
views
How to show the error causing the 'There has been a critical error on your website'?
I'm getting the error: 'There has been a critical error on your website. Learn more about debugging in WordPress.'.
How do I display which error I'm getting in the frontend?
I have these three lines ...
1
vote
1
answer
996
views
How to implement Sentry on Wordpress? [closed]
I need Sentry to track errors in my project code, the unofficial plugin for wordpress seems to be useless. How should I fix it?
0
votes
1
answer
42
views
Why Do Pages Always Work Aa Expected When Logged Into The Dashboard?
I am finding that all the changes I make and preview when logged into the dashboard are just as I would like them. Once I log out of the dashboard all hell breaks loose. Pages don't display my latest ...
0
votes
1
answer
483
views
Password Protected Pages Don't Accept A Valid Password After Changing The Password
I have a password protected page which I recently was asked by my client to change the password. The password protection is done from the WordPress dashboard by using the Status and visibility option ...
0
votes
1
answer
49
views
Best location for a debugging script
I am integrating Sentry.io into my multisite setup. I have 5 themes and a number of plugins across the network too.
Sentry needs to be initialised as early as possible, I want it to be loaded before ...
0
votes
0
answers
25
views
A bug happens in the Footer and the code keeps appearing
On this WordPress site with the Newspaper theme, the footer appears and looks normal (as you can see in https://www.vendaonline.pt/), but I installed a question plugin (DW Question Answer) and on the ...
0
votes
1
answer
741
views
Debug Errors, site health
When I go to site health this is what I am seeing.
Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be ...
1
vote
0
answers
13
views
Mute Debug Messages from Plugins
I have an older plugin installed that is firing all these PHP Deprecated and PHP Notices in my debug.log every time a page loads. Is it possible to mute PHP Deprecated and PHP Notices but ONLY for ...
0
votes
0
answers
38
views
Blank White page issue in WordPress
I am working in a WordPress site in Linux Mint. My file and folder permission is like below
I used below code in wp-config.php file
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
...
1
vote
0
answers
20
views
How to Debug WordPress
I put below codes in my wp-config.php file.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define('WP_DEBUG_DISPLAY', true);
@ini_set('display_errors',1);
But I not getting any ...
1
vote
1
answer
589
views
How to enable error logs and debug mode in WordPress using Azure Cloud?
I am using Azure Cloud, multisite WordPress and have enabled these codes in wp-config.php file.
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/...
0
votes
1
answer
43
views
Getting a list of the PHP files included to generate a page
Some commercial themes have become a real mess: the header may be created by the files in the theme folder or by child theme or maybe from a legacy folder which is located inside a legacy plugin.
In ...
0
votes
0
answers
257
views
How do I specify where to save the debug.log?
According to the documentation cited below I should be able to add a path to save the debug.log at but it does not seem to be working for me.
https://wordpress.org/support/article/debugging-in-...
0
votes
0
answers
2k
views
Console Messages: A cookie associated with a cross-site resource at
I gets these error on chrome console.I added this code to my header.php:
<script>
response.setHeader("Set-Cookie", "HttpOnly;Secure;SameSite=Strict");
</script>
But it doesnt ...
0
votes
2
answers
59
views
"... logged-in ..." seems top of my website
I dont know what is these mean so can you explain to fix it:
class="home page-template-default page page-id-50 logged-in theme-html5blank-stable woocommerce-no-js ehf-header ehf-footer ehf-template-...
0
votes
1
answer
359
views
PHP Notice: Undefined index: mytheme_meta_box_nonce
There is a bug about my metaboxes in debug.log:
[12-Mar-2020 13:00:05 UTC] PHP Notice: Undefined index: mytheme_meta_box_nonce in /home/deniztas/migrate666.deniz-tasarim.site/wp-content/themes/...
0
votes
1
answer
118
views
debug.log is not created
logs seem only while admin panel is loading,after page was loaded, it will hide so I cant seem the logs.Also I want to debug.log but there is no the file in wp-content.
*
* @link https://codex....