Edit page – blank
-
I read the “Read BEFORE POSTING”, the issue stated is not my case! This plugin causes my edit page to be completely blank (html only contains blank head and body elements). I am talking about post.php?post=8&action=edit page. This page is working on the site as expected, only edit page is broken.
WP version 4.9.8
Theme Exoplanet version 1.7.3
-
Could you please make a screenshot for me?
Are there any JavaScript errors in the page when opening the JS console? (how to open the JS console)
There is no error in JS console, i am afraid nothing that could help you, but here is the image. I just know that disabling the plugin resolves the issue.
You can try debugging by opening the /wp-content/plugins/custom-css-js/custom-css-js.php file and start commenting out one by one the lines between 77 and 81 (the ones that start with “include_once”, as shown in this screenshot). The commenting in PHP is done by writing
//in front of the line. After commenting one line, save the file and check if the edit page is still blank, then continue to the next line until you find which line causes the issue.By commenting these lines the website’s frontend will continue to work. In the backend only the pages related to the Simple Custom CSS and JS plugin will not be available anymore.
-
This reply was modified 7 years, 8 months ago by
SilkyPress.
-
This reply was modified 7 years, 8 months ago by
SilkyPress.
Following these instructions, i found out that include_once( ‘includes/admin-screens.php’ ) is causing the issue. I have also noticed, when i comment out this line, and go to bottom of the page in edit mode, there is this error written under Revision section.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1048576 bytes) in /www/doc/www.make-up.cz/www/wp-includes/post.php on line 582
I dont know if its related to my problem but im sure it was not there before this issue came up. I tried to set
define(‘WP_MEMORY_LIMIT’, ‘256M’ )
define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’)in wp-config.php as i found in other forums, without success.
Thank you a lot for your helpIt could be an issue related to the memory, but it’s better to find out which part of the code is requiring the amount of memory that breaks the edit page.
So, let’s find out which function of the admin-screens.php file is causing the issue.
Please leave the lines uncommented on the custom-css-js.php file (the way they were originally). Now try the same with the 55-70 and 77-80 lines on the /wp-content/plugins/custom-css-js/includes/admin-screens.php file. See this screenshot. The procedure is the same: comment one line, save the file and check if the edit page is still blank, then continue to the next line until you find which line causes the issue.
As before, the website’s frontend will continue to work. In the backend only the pages related to the Simple Custom CSS and JS plugin will look a bit weird.
It is the ‘wp_loaded’ => ‘compatibility_shortcoder’ line. Commenting out function compatibility_shortcoder also works for me, however commenting out lines in compatibility_shortcoder_html or returning the parameter $html immediately does not.
The compatibility_shortcoder function was supposed to solve an issue with the Shortcoder plugin.
Do you have the Shortcoder plugin installed? What PHP version do you have on the server?
You can comment out the ‘wp_loader’ => ‘compatibility_shortcoder’ line and continue using the plugin.
The issue came with the Shortcoder plugin came up 2,5 years ago. Meanwhile a lot of code changed, both on the Simple Custom CSS and JS plugin and on the Shortcoder plugin. I’ll have to check if the issue is still valid and if the compatibility_shortcoder function helps with the issue.
I have Easy Bootstrap Shortcode installed. List of all plugins installed:
- Contact Form – v. 1.9
- Easy Bootstrap Shortcode – v. 4.5.4
- Favicon by RealFaviconGenerator – v. 1.3.13
- Maintenance Mode – v. 2.4.3
- Page scroll to id – v. 1.6.2
- Photo Gallery by Supsystic – v. 1.12.6
- Simple Custom CSS and JS – v. 3.18
- WP SVG Icons – v. 3.2.1
WordPress v. 4.9.8
PHP v. 5.6.38 -
This reply was modified 7 years, 8 months ago by
The topic ‘Edit page – blank’ is closed to new replies.