I am trying to enable debugging on a WordPress site to debug a plugin. I read about the WP_DEBUG setting and I added the following to my wp-config.php file:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
My understanding is that I should see a debug.log file in my wp-content directory. I haven't seen anything yet, but I don't know if that is because there aren't any errors that have been logged, or if something needs to be restarted for these settings to take effect. So my question is when are the wp-config.php settings read and do I need to restart any services to make changes take effect.
"Changes" to wp-config.php take place right away when edited by FTP or via the shell, because that file is accessed each time any page is generated and output by WordPress. No reboot of the server is needed; just do a load or a refresh of any front or backend page of the WordPress site.
Do something to trigger a php error, like removing a bracket from a php function in header.php of the theme and see if that gets logged in debug.log. Check for the error in debug.log in wp-content.
If the file doesn't exist, there may be permission problems and WordPress couldn't create the file. So add a plain text file (with the correct text encoding for your system; it's best to use the FTP client to create a few file) and title it debug.log. If you create the file locally and upload it, give it at least 755 permissions, but 644 is safer. Then invoke a php error again and see if it gets logged.
Related
how are you?
My website was working well and now I'm unable to create or edit pages using elementor because the 'loading' keeps spinning and nothing happens.
I see a console error where I get /wp-admin/admin-ajax.php 500
How can I fix this? I don't know what caused it.
Thanks!
there are many reason for this. But the common one is WP memory limit issue.
To handle this, first you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress to increase the PHP memory limit to 256MB.
Once you are done, you need to save your changes and upload your wp-config.php file back to your server.
I had this problem too, I just disabled plugins one by one and I found the problem!
one of my plugins caused this problem.
my wordpress site is showing offline status.
I've done changing the htaccess, changed theme and also deactivated all of my plugins, but the problem remains. any solutions?
Try enabling the WP_DEBUG mode for more information on what exactly could be the reason behind your problem. This can be performed easily via FTP or file manager like one in cPanel, as well as from SSH. Open the wp-config.php file and find the following line:
define('WP_DEBUG', false);
Change this line of code to:
define('WP_DEBUG', true);
This will output the error message in your browser when you access your website. If there is still no output of the actual error message, you can try check the "error_log" file in the root directory of your WordPress instance.
If you provide us here with the error message, I will be glad to provide more information if possible.
I have a blog that was built with word press. when I want to login into control panel it redirect me to this page:
http://tweld.com/wp-login.php?redirect_to=http%3A%2F%2Ftweld.com%2Fwp-admin%2F&reauth=1
One time I Uninstalled word press files and then uploaded again. after that it worked correctly. but this problem has arisen again.
Have a read of this codex guide: http://codex.wordpress.org/Login_Trouble
have a look in your error logs at your hosts backend.
try:
logout or logout with http://www.yourdomain.com/wp-login.php?action=logout
disable all plugins
clear cookies/cache
exit browser
just for troubleshooting purposes try:
- switching to the default theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides.
resetting the plugins folder by using FTP or whatever file management application your host provides. Sometimes, an apparently inactive plugin can still cause problems.
renaming or deleting the .htaccess file after making a backup of this file
Check your .htaccess and wp-config.php if they are correct
source
I have my wordpress blog running over openshift server. I have added my own domain instead of opensift. But when i login it will show ssl error. I want to make it false in wp-config.php. But I don't know how to edit this file in openshift. Please help me.
The wp-config.php on openshift is located at $home/app-root/repo/php/wp-config.php (ie: /var/lib/openshift/xxxxUNIQUEAPPIDxxxx/app-root/repo/php/wp-config.php).
You can confirm that you are editing the right wp-config.php file by temporarily moving it to wp-config_copy.php and reloading your blog from a browser. If you get a error that the wp-config.php is missing then you know you've got the right file. Move it back to wp-config.php.
use the FileZila for editing. may be it works. check if it shows any list of files.
My Wordpress site has run without a hitch until now. I just tried to make a an edit to a template file via Appearance -> Editor. When I tried to update the file wp-admin started to hang. It is just sitting there now. I am running a VPS, so I restarted the container and it did nothing. I removed the file I tried to update, and still nothing. Any ideas how I can get my wp-admin working again?
Thanks!
Tre
Turn on WP_DEBUG in your config file - just paste this in:
define('WP_DEBUG', true);
White screen is an error, but the message is being surpressed. If that doesn't show anything still, find display_errors in your php.ini and set it to on.
You should be able to figure it out after that.