I created a site using local wp and created a new theme using VSCode. When I tried to open the edit beta page to edit my site I got a white blank page and I got no errors.
When I use the devtools to inspect, I find all the HTML elements and no network errors. I tried every solution I could find on internet but I couldn't resolve it.
Here is the editor page I got :
Can you please give me a solution?
You'll want to navigate to the root of your project and open the wp-config.php file. There you'll find the following:
define( 'WP_DEBUG', false );
If it is set to "false" you'll want to change it to "true" to allow WordPress to show error output on the page you are getting the white screen.
If you did not find the above script in the wp-config.php file you'll want to add the following.
define( 'WP_DEBUG', true );
When you do you'll likely see a "Fatal" error that is causing the site to crash and information on the file and line in the code where you can find the offending script.
Related
my wordpress site is running ok but in some section this warning is shown
Warning: Parameter 2 to gdlr_core_page_builder::search_page_builder() expected to be a reference, value given in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 287
wordpress ver:5.4.1
i deactive all plugin and active one by one and found when i deactive one of the plugin (Goodlayers Core
) not showning error anymore but all element of site is disappear because it's core of theme it seems.
The error describe itself.
From somewhere the 2nd parameter of the function gdlr_core_page_builder::search_page_builder() is passed as value which should be a reference.
The error showing in file class-wp-hook.php on line 287 because of there is some hook is added into the above function.
You can contact that plugin author who will fix this issue if it is exist and release that plugin update.
This is a plugin issue. However, you can simply disable the displayed warning by adding the below lines of code in wp-config.php file.
Locate your file under cPanel FileManager:
/home1/yoursitename/public_html/wp-config.php
Add the below lines of code to hide the displayed warning:
ini_set('display_errors', 'Off');
ini_set('error_reporting',E_ALL);
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
Had the same issue, fixed by removing vars passed by reference (&$) on the file /wp-content/plugins/goodlayers-core/framework/function/page-builder.php:
open the file
search for &$, replace by $
save, refresh website (clear cache if needed), error is gone
I have a WordPress eCommerce website in this website all working but admin menu page not working and the page showing blank, and I was trying to add a new image that image does not upload and not showing the old image in media library only loading process see attachment
In order to solve this issue, you need to see what error is causing this blank page. By default, PHP suppresses errors display for security reasons, but Wordpress has a setting to show the errors.
In order to turn on error display, open your wp-config.php in the root folder
And add these two lines:
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG', true );
NOTE: You must insert this BEFORE /* That's all, stop editing! Happy blogging. */ in the wp-config.php file.
You can read more here: https://wordpress.org/support/article/debugging-in-wordpress/
Only after you do that you will be able to see the error instead of a blank page, and then share it here to help us solve it or google for solution yourself.
I tried to deactivate all the plugin but still problem is occure.
Please help me to solve it.
finally got the solution..add below line in wp-config.php
define( 'CONCATENATE_SCRIPTS', false );
now dashboard display properly.
Take a look at console of browser. Maybe you can see what is causing error there
I was working in my functions.php file, and i was trying to comment something out and when i refreshed the page it was all blank. Not only my website but also my /wp-admin page.
I have tried re-downloading my themes function.php and replacing it but this hasn't worked.
Please help!
open your wp-config.php and find
define( 'WP_DEBUG', false );
set it to
define( 'WP_DEBUG', true );
it will show which file is causing problem, Its a starting level to check white screen problem in wordpress otherwise you can follow Ahmad's answer
Uninstall your all plugins by renaming the plugins folder , ie plugins1.
And also change the theme and try. If not work then Go to following link.
https://code.tutsplus.com/tutorials/fixing-the-wordpress-white-screen-of-death--cms-21008
So out of no where after clicking the publish button the page just goes blank...
The url at the top is:
http://www.brightboxstudios.com/sociabulls/wp-admin/post.php
What's good news is it still posts the content :)
Not great at coding so details rock :)
I was getting same error, when I update the site content and press update it goes to /wp-admin/post.php and this appears as blank page.
It is solved by:
I removed all the spaces at the end of functions.php file, I had included a widget and there were some spaces in between older content and new widget function, when I removed the spaces everything is working fine.
if that don't work then
- go into wp-config.php and find this "define('WP_DEBUG', false);"
change its value, if it is flase, make it true or if it is true change it to false.
And everything must work Good.
Thanks
A blank page usually means Apache failed. Check your error logs. You'll probably find a line that starts with:
PHP Fatal error:
You can also display your errors on the screen instead of looking at the log.
There will be many reasons for blank page, you have not mention version for wp, php etc.
To solve wordpress blank page issue follow the steps
disable all plugin and try (if there is an error in plugins then enable 1 by 1)
switch to default theme and try (if there is an error in theme)
rename .htaccess and param-link to default (page/post id)