I have a problem with WordPress website,, the customer added a link to the home page then the website crashed and the WordPress dashboard appear in html only.
I tried to edit the load style CSS file and edit the configuration file but nothing worked with me,, I can't post an image because I am new here,, please I need help as fast as possible,, thank you.
I tried this code
error_reporting(0);
...and change it to this...
error_reporting( E_ALL | E_STRICT );
in the load style css file.
I have the same problem showed in this article but the solution didn't work with me.
https://manovotny.com/fix-wordpress-admin-styles-not-loading
In your wordpress wp-config.php before require_once add below code into file
define('CONCATENATE_SCRIPTS', false);
In wp-config.php before require_once add below code into file
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );
Add Below line in wp-config.php you can show the error also.
define(‘WP_DEBUG’, true);
================================================================
Also, Try below instruction.
Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
Related
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.
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 used remove_action directly in my function.php child theme, and my site shutdown, How can I restore my site?
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
Please edit your wp-config.php file and change define('WP_DEBUG', false) to define('WP_DEBUG', true);
The wp-config.php file should present in the Wordpress root directory.
This will display the exact error and then you can fix the PHP error.
I had to go slowly with the last changes and found that something with a plugin was also causing the error. Maybe with the function that I put in the functions.php file in my child theme caused the plugin to break.
I developed my WP WooCommerce shop locally with XAMPP and finally got around to upload my site.
1) How do you make edits to your CSS when the site is live and online?
Do you use Appearance > Theme Editor to make changes to your style.css file that is saved in your child theme or is there a plugin that is "better" than the default one?
Is there a shortcut for commenting lines out?
Or do you have an identical version locally that is synced to the uploaded version and do the edits locallly and upload the final edited style.css file?
I'm not sure what the best workflow is.
2) I find myself making changes and nothing happens on the live site. Do I have to clear the cache and than login again to get into my WP dashboard? Seems very tedious... I searched the forum and found that you can do something with this line
wp_enqueue_style( '_s-style', get_stylesheet_uri(), array(), time() );
can someone elaborate how and where to use it? does it go into the functions file?
Use this line your functions.php
function yourthemename_style_nscripts(){
wp_enqueue_style( '_s-style', get_stylesheet_uri(), array(), time() );
}
add_action('wp_enqueue_scripts', 'yourthemename_style_nscripts');
otherwise,
open your functions.php then find your yourthemename_style_nscripts function then paste it.
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