Wordpress dreaded white screen while creating or updating a post - wordpress

I created a wordpress theme and after uploading and activating the scheme to the server everything looks all right... but when I try to use the admin section of wordpress then I am having a problem with a 'white screen' or when creating new posts and when trying to log out... when i try to update a post or create a new page it just stays on post.php and the page is left blank.. Please suggest what should i do?
I have the same theme running on my local xampp server but it working ok.

You should enbale Debug in your wp-config file , there must be an error in the code which is causing this issue.
define('WP_DEBUG', true);

I had a similar problem where anytime I added or updated a post I got the white screen. The problem for me was also in the functions.php file. Not sure what it was specifically, but I went back and got an older version of the file. Problem solved.

Related

My Wordpress is showing a blank page in the editor, how can I fix this?

I manage a Wordpress site for a client, after trying to resolve some updates I cannot seem to edit anything inside the editor anymore. Everything is blank (see image). The site itself is still up and working fine. Has anyone ever encountered this?
There are tons of reasons, why this could be happened. Like #jiali sent you a very helpful link, I would say to try and open the debugger: inside wp-config.php file search for define('WP_DEBUG', false); and change the value to true. Then, you propably would see what causing the error and where (either plugin or custom code, or maybe plugins conflict)
Okay so in this case the problem was (when I checked the error log) that the update was not properly installed. Deactivated the plugins inside PHP MyAdmin and then reinstalled Wordpress manually onto site.

Wordpress plugin is not working after migration to a new server

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

how to solve wordpress wp-admin cookie blocked error?

I am working on wordpres site, site works good but whenever i try to login using wp-admin it shows me error called "cookies are blocked due to unexpected output" and i can see one of the text "password" return on left top area of wp-admin screen.I tried to change password from phpmyadmin but it does not works. can any one help me out for this.
Thanks in advanced
Turn on Debug info by adding following code in wp-config.php
define('WP_DEBUG', true);
It will show you what code might by causing the issue.
Also read this thread please people with same issue have solved:
https://wordpress.org/support/topic/unable-to-log-in-cookies-are-blocked-due-to-unexpected-output?replies=37
If this is happening after moving a multisite to a different domain (for dev purposes for instance) then make sure you edit the following line in your wp-config.php file and change the previous domain to the current one:
define('DOMAIN_CURRENT_SITE', 'newdomainname.com');

Wordpress blank white screen when I try to preview or visit the site?

I am new to Wordpress and I jut installed it today, I created a username and password, am able to login to wordpress and access the dashboard. I made a few changes, installed a theme, created a menu, picked out a header, etc...
When I try to preview the site however, it just shows a blank white screen, anyone know how to fix this?
thanks in advance.
I ran into a similar problem in the past... to solve it I edited the wp-config.php file and activated the debug function... that let wordpress show me what the error was, so I could fix it...
Basically in wp-config.php search for:
define('WP_DEBUG', false);
and replace it with:
define('WP_DEBUG', true);
Once your done fixing the error don't forget to change it back...
taken from: Wordpress Codex - editing wp-config.php

Wordpress Theme Compatibility Issue

I'm developing a WP theme for a client and have run into some trouble.
When my theme is activated:
I edit post or page (or several other areas), click UPDATE, PUBLISH, etc - and I get a blank white page.
When I go back, the post has been updated - so the system is working, it just isn't redirecting me back to the edit page.
Everything works fine when the default template is activated.
Thanks!!!
To trace the error set the WP_DEBUG as true
Refer : http://www.wprecipes.com/how-to-easily-enabledisable-debug-mode-in-wordpress
Change WP_DEBUG to true in wp-config.php file located in the WordPress root folder, and then you will be able to see the errors that are coming up. Fixing those errors will resolve your problem.

Resources