Questions tagged [debug]
Basic techniques on debugging WordPress that can assist you on first hand.
343 questions
0 votes
0 answers
25 views
How to create a new theme from an existing incomplete theme folder?
My friend created a clone of a wordpress site and gave me the project files. I would like to use the theme of this website (install it on the wordpress engine and create a new site using that theme). ...
0 votes
0 answers
66 views
Turning off debug in my WP blog causes an internal error
Sorry if this is a basic question, but I'm not a WP expert in any way. Using WordPress version 6.0.9 I have a blog hosted on someone's server (where I host other sites that I develop, not using WP), ...
0 votes
0 answers
70 views
How to resolve error in debug.log file
There are many hundreds of errors in the debug.log file: [25-Dec-2024 14:21:25 UTC] PHP Warning: chmod(): Operation not permitted in /var/www/mydomain.com/news/wp-admin/includes/class-wp-filesystem-...
0 votes
2 answers
146 views
Critical Error on Pages – WP_DEBUG Not Showing Anything
We have a bunch of sites using a custom theme we had assistance creating many years ago. When we upgrade PHP on the server from v7.4.x to v8.2.x, we get a critical error message on most of the pages (...
-2 votes
1 answer
90 views
Error Function is_tax was called incorrectly
I am developing for a client, and everything was working fine until I ran into this error: Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. ...
1 vote
2 answers
137 views
Why is version showing as "42" instead of "6.6.1" in dashboard
Why do you think this is happening? I just updated a bunch of client sites and they all show me running 6.6.1, but this particular site says simply "42" for the version. I've reinstalled the ...
1 vote
0 answers
36 views
Edit page displays 'critical error has occurred' but when debugging is turned on, there are no error messages
I was encountering a 'there has been a critical error' message when trying to edit pages/posts on a WP site. I enabled debugging and fixed the problems that were being displayed. I thought I'd got ...
1 vote
1 answer
151 views
Error logging in wordpress
I set define( 'WP_DEBUG', true ); & define('WP_DEBUG_LOG', true);. But error_log('hello'); is not printing any thing. What could be the issue ?
0 votes
0 answers
174 views
Dropdown menu only appearing when logged in
I'm having a problem where the Hamburger dropdown menu only appears when I'm logged in, I tried on multiple devices and I tried clearning the cache and removing all plugins (except elementor, without ...
0 votes
1 answer
74 views
write developer debug statements to separate log
Is there a way to write the debugging I do in my code (ex: error_log("$msg"); to a different log file than the rest of the system-generated logging that gets written to /wp-content/debug.log?...
0 votes
0 answers
405 views
I'm getting this 'PHP Deprecated' issue
PHP Deprecated: Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /container/application/...
1 vote
0 answers
997 views
"Object-cache.php" disables wp_cron and even disables my entire site, and keeps reappearing by itself again after I delete it
I'm having a truly maddening issue. It may involve plugins (or it may not, I don't know) but I believe it is sufficiently technical to be allowed here. A few weeks ago, I needed to revert to a backup, ...
1 vote
1 answer
595 views
How can I use xdebug with wp-cli
I'd like to use xdebug and vscode to debug a script I'm running via wp eval-file. My launch.json is pretty basic. { "name": "Listen for Xdebug", "...
3 votes
0 answers
297 views
How to find code responsible for warnings from wp_cron runs?
I have a website created using wordpress, which is hosted on accuwebhosting.com Recently I have been getting emails with the subject line "Cron user@server cd wpfolder && /usr/local/bin/...
0 votes
0 answers
232 views
Finding plugin that makes this part of page (finding sweetwinsprizes.info virus's origin)
I have a website with several plugins installed. in 70% of page loading everything is OK and header is something like this: <head> <meta charset="UTF-8"> <link rel=&...