Home › Toolset Professional Support › [Resolved] White screen when i want edit a page
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 8 replies, has 3 voices.
Last updated by avansisI-2 3 years, 3 months ago.
Assisted by: Waqar.
Hello, i'm trying to edit a page but wordpress give me a white screen when i click on Edit button in Dashboard (not front).
I found that if i deactivate Toolset Blocks and Toolset Views, i can edit the page but i lost toolset structure.
I updated wordpress and all toolset plugins to last version. I have to say that toolset (and edit page) had been working until a little bit time ago.
Can you help me to know what is the reason for block and show me white screen?
Thank you
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
If you see a white screen it means a fatal PHP error, and you should be able to see details of the error in your debug.log. Knowing the details should help us identify the cause and hopefully a solution.
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); define('WP_DISABLE_FATAL_ERROR_HANDLER',true);
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try repeating the steps responsible for the error and then inspect the log.
By the way, you say deactivate Toolset Blocks and Toolset Views, but it should only ever be possible to have either Blocks or Views active, not both.
Hello Nigel,
I inserted your code and activated debug mode but wordpress didnt generate any log file.
If i deactivate Blocks, and activate Views, then i can edit a page, but if i activate Blocks and deactivate Views i cant edit page
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
That's odd, because it clearly means there is a fatal PHP error occurring.
Could you please share a copy of your site which we can use to test the problem locally to try and trace the source of the error?
You can use Duplicator, as described here: hidden link
Or you may find All in One WP Migration easier to use, just be sure to exclude the media library when creating the package to reduce its size.
You can share a link to the archive on dropbox or similar here, the link will be hidden from other users.
Ticket status is updated and the next reply is set as private.
Thank you for sharing the admin access.
I've downloaded the duplicator package from your website, but, the few pages that I tried to edit are showing the edit screen correctly. The few pages, that I've tested are:
- Formulario Bonos
- Area usuario comercios
- Restaurantes de Las Rozas
- Comercios de Las Rozas
- Inicio de sesión
- Política de Privacidad
Can you please share some example pages where this issue can be seen?
Hello Waqar,
The page I was referring to is the homepage (ID:1931).
I cant edit because i get a white screen instead of wordpress editor.
Thank you for waiting, while I investigated this issue, on your website's clone.
It turns out that the 3 "Image" blocks used in the homepage, have incomplete/corrupt code saved in the database, which is why the whole edit screen is getting affected.
You can programmatically remove the 3 image block from the homepage's content using the following code snippet. But, please make a complete backup copy first.
In your active child theme's "functions.php" file, you can include the following code:
function temp_function_fix_home() { ob_start(); ?> <!-- wp:html --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><p><span class="tb-shortcode-placeholder"> </span><span id="tb-shortcode-mce-placement-fix7" class="tb-shortcode-placeholder"> </span></p></div> <!-- /wp:html --> <!-- wp:spacer {"height":20} --> <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer --> <!-- wp:html --> <h6 class="tb-heading has-text-color" data-toolset-blocks-heading="1" data-last-update="1.4">Smartturism</h6> <!-- /wp:html --> <!-- wp:toolset-blocks/fields-and-text {"style":{"fontSize":30,"display":true}} --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><p style="text-align: center">CONECTA / COMPRA / COMPARTE</p></div> <!-- /wp:toolset-blocks/fields-and-text --> <!-- wp:toolset-blocks/container {"style":{"padding":{"enabled":true,"paddingTop":"25px","paddingLeft":"25px","paddingRight":"25px","paddingBottom":"25px"},"margin":{"enabled":true},"display":true,"phone":{"padding":{"enabled":true},"margin":{"enabled":true},"display":true,"blockAlign":"wide"}}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset-blocks/container {"style":{"padding":{"enabled":true,"paddingTop":"25px","paddingLeft":"25px","paddingRight":"25px","paddingBottom":"0px"},"display":true,"phone":{"display":true,"blockAlign":"full","padding":{"enabled":true},"margin":{"enabled":true,"marginLeft":"0px","marginTop":"0px","marginRight":"0px","marginBottom":"0px"}}}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset-blocks/container {"style":{"margin":{"enabled":true,"marginTop":"-50px"},"phone":{"padding":{"enabled":true,"paddingTop":"0px","paddingRight":"0px","paddingLeft":"0px","paddingBottom":"0px"},"margin":{"enabled":true},"display":true},"display":true}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset-blocks/grid {"style":{"phone":{"blockAlign":"full"}},"columnsTablet":[0.5,0.5],"columnsDesktop":[0.3333,0.3333,0.3333],"wizardDone":true} --> <div class="wp-block-toolset-blocks-grid tb-grid" data-toolset-blocks-grid="1"> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"> <!-- wp:toolset-blocks/fields-and-text {"style":{"margin":{"enabled":true},"padding":{"enabled":true,"paddingLeft":"30px","paddingRight":"30px","paddingBottom":"30px","paddingTop":"30px"},"border":{"top":{"style":"solid","width":null,"widthUnit":"px","color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":1}}},"right":{"style":"solid","width":0,"widthUnit":"px","color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":1}}},"bottom":{"style":"solid","width":0,"widthUnit":"px","color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":1}}},"left":{"style":"solid","width":0,"widthUnit":"px","color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":1}}}},"borderRadius":{"topLeft":0,"topRight":0,"bottomRight":43,"bottomLeft":43},"boxShadow":{"enabled":true,"color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":0.5}},"horizontal":2,"vertical":4,"blur":10,"spread":-5},"display":true}} --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><h2><img class="wp-image-5348 aligncenter" src="<em><u>hidden link</u></em>" alt="Restaurantes" width="48" height="48"></h2> <h2 style="text-align: center"><a href="<em><u>hidden link</u></em>">Restaurantes</a></h2> <p class="p1" style="text-align: center">Conoce la oferta gastronómica.</p></div> <!-- /wp:toolset-blocks/fields-and-text --> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> </div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"> <!-- wp:toolset-blocks/fields-and-text {"style":{"margin":{"enabled":true},"padding":{"enabled":true,"paddingTop":"30px","paddingRight":"30px","paddingLeft":"30px","paddingBottom":"30px"},"borderRadius":{"topLeft":null,"topRight":null,"bottomRight":43,"bottomLeft":43},"boxShadow":{"enabled":true,"color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":0.5}},"horizontal":2,"vertical":4,"blur":10,"spread":-5},"display":true}} --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><h2><img class="wp-image-5316 aligncenter" src="<em><u>hidden link</u></em>" alt="Comercios" width="48" height="48"></h2> <h2 style="text-align: center"><a href="<em><u>hidden link</u></em>">Comercios</a></h2> <p class="p1" style="text-align: center">Apoya al comercio local.</p></div> <!-- /wp:toolset-blocks/fields-and-text --> </div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"> <!-- wp:toolset-blocks/fields-and-text {"style":{"margin":{"enabled":true},"padding":{"enabled":true,"paddingTop":"30px","paddingRight":"30px","paddingBottom":"30px","paddingLeft":"30px"},"borderRadius":{"topLeft":null,"topRight":null,"bottomRight":43,"bottomLeft":43},"boxShadow":{"enabled":true,"color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":0.5}},"horizontal":2,"vertical":4,"blur":10,"spread":-4},"display":true,"phone":{"padding":{"enabled":true,"paddingTop":"20px","paddingRight":"0px","paddingBottom":"20px","paddingLeft":"0px"},"margin":{"enabled":true},"display":true}}} --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><h2><img class="alignnone wp-image-5332 aligncenter" src="<em><u>hidden link</u></em>" alt="Servicios" width="48" height="48"></h2> <h2 style="text-align: center"><a href="<em><u>hidden link</u></em>">Servicios</a></h2> <p class="p1" style="text-align: center">Servicios del día a día cerca de ti.</p></div> <!-- /wp:toolset-blocks/fields-and-text --> </div> <!-- /wp:toolset-blocks/grid-column --> </div> <!-- /wp:toolset-blocks/grid --> </div> <!-- /wp:toolset-blocks/container --> </div> <!-- /wp:toolset-blocks/container --> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> </div> <!-- /wp:toolset-blocks/container --> <!-- wp:toolset-blocks/fields-and-text {"style":{"fontSize":30,"backgroundColor":{"r":255,"g":255,"b":255,"a":1},"margin":{"enabled":true,"marginLeft":"-60px","marginRight":"-60px"},"padding":{"enabled":true,"paddingLeft":"40px","paddingTop":"40px","paddingRight":"30px","paddingBottom":"30px"},"phone":{"padding":{"enabled":true,"paddingTop":"20px","paddingRight":"20px","paddingBottom":"20px","paddingLeft":"20px"},"margin":{"enabled":true},"display":true},"display":true},"editorMode":"html"} --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><h1 class="tb-heading has-text-color has-background" style="text-align: center" data-toolset-blocks-heading="1">Encuentra el establecimiento<br> perfecto para ti.</h1></div> <!-- /wp:toolset-blocks/fields-and-text --> <!-- wp:toolset-blocks/container {"style":{"padding":{"enabled":true,"paddingTop":"25px","paddingLeft":"25px","paddingRight":"25px","paddingBottom":"25px"},"margin":{"enabled":true},"display":true,"phone":{"blockAlign":"full","display":true}}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset/map {"mapId":"map-28","mapHeight":"450px","mapMarkerClusteringMinimalNumber":20,"mapMarkerClusteringMinimalDistance":10,"mapStyle":"//localhost:8888/avansisI2/wp-content/plugins/toolset-maps/resources/json/Silver.json","mapMarkerIcon":"//localhost:8888/avansisI2/wp-content/uploads/2021/04/lrm_flags.png","markerId":"[\u0022marker-28\u0022]","markerSource":"[\u0022view\u0022]","popupContent":"[\u0022\u003ch4\u003e{{types field='nombre_del_comercio'}}{{/types}}\u003c/h4\u003e\\nDirección:{{types field='direccion_comercio'}}{{/types}}\\n\u003ch6\u003e{{wpv-post-read-more label='VER FICHA' style='border:1px'}}\u003c/h6\u003e\u0022]","markerView":"[\u002212879\u0022]","markerPreviewView":"[12880]","markerViewField":"[\u0022wpcf-direccion_comercio\u0022]"} /--> <!-- wp:toolset-blocks/container --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset-blocks/container --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:toolset-blocks/fields-and-text --> <div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"><p><i>Proyecto cofinanciado por el </i><i>Fondo Europeo de Desarrollo Regional (FEDER) a través de la Dirección General de Política Comercial, dentro del "</i><i>Programa de Apoyo a la Competitividad del Comercio Minorista" de la Secretaria de Estado de Comercio del Ministerio de Industria, Comercio y Turismo del Gobierno de España, en colaboración con la Cámara de España.</i></p> <p><img class="wp-image-10228 alignleft" src="<em><u>hidden link</u></em>" alt="" width="172" height="92"> <img class="wp-image-10229 alignleft" src="<em><u>hidden link</u></em>" alt="" width="91" height="74"> <img class="wp-image-10227 alignleft" src="<em><u>hidden link</u></em>" alt="" width="247" height="122"></p></div> <!-- /wp:toolset-blocks/fields-and-text --> </div> <!-- /wp:toolset-blocks/container --> <!-- wp:toolset-views/view-editor {"style":{"id":"comerciosinicio"},"reduxStoreId":"views-editor-1620830676786","viewId":12879,"viewSlug":"todos-los-comercios","previewId":12880,"focused":false,"insertExisting":"0","wizardDone":true,"wizardStep":3} --> <div class="wp-block-toolset-views-view-editor wpv-gutenberg-view-wrapper-12879"> <!-- wp:toolset-views/view-layout-block --> <!-- wp:toolset-views/view-template-block {"storeId":"views-editor-1619770403763","style":{"cssClasses":[]}} --> <div class="wp-block-toolset-views-view-template-block wpv-block-loop-item php-to-be-replaced-with-shortcode" data-toolset-views-view-template-block="1"></div> <!-- /wp:toolset-views/view-template-block --> <!-- wp:toolset-views/view-pagination-block /--> <!-- /wp:toolset-views/view-layout-block --> </div> <!-- /wp:toolset-views/view-editor --> </div> <!-- /wp:toolset-blocks/container --> </div> <!-- /wp:toolset-blocks/container --> <!-- wp:spacer {"height":32} --> <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer --> <!-- wp:toolset-blocks/container {"style":{"margin":{"enabled":true,"marginTop":"100px"},"display":true}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> <!-- wp:toolset-blocks/grid {"columnsTablet":[1],"columnsDesktop":[0.08000000000000006,0.8450000000000003,0.07500000000000004],"rowsDesktop":2,"wizardDone":true} --> <div class="wp-block-toolset-blocks-grid tb-grid" data-toolset-blocks-grid="1"> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"></div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"> <!-- wp:toolset-blocks/container {"style":{"background":{"type":"solid","solid":{"color":{"rgb":{"r":28,"g":25,"b":29,"a":1}}},"gradient":{"colors":[{"rgb":{"r":0,"g":0,"b":0,"a":1}},{"rgb":{"r":255,"g":255,"b":255,"a":1}}],"type":"linear"},"image":{"horizontal":[],"vertical":[]}},"margin":{"enabled":true,"marginTop":"-150px","marginLeft":"-50px","marginRight":"-50px","marginBottom":"-30px"},"padding":{"enabled":true,"paddingTop":"40px","paddingLeft":"50px","paddingRight":"50px","paddingBottom":"40px"},"borderRadius":{"topLeft":43,"topRight":43,"bottomLeft":43,"bottomRight":43},"boxShadow":{"enabled":true,"color":{"hex":"#000000","rgb":{"r":0,"g":0,"b":0,"a":0.5}},"horizontal":5,"vertical":5,"blur":10,"spread":-3},"display":true,"phone":{"blockAlign":"full","display":true}}} --> <div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="1"> <!-- wp:paragraph {"align":"center","textColor":"white","style":{"typography":{"fontSize":30}}} --> <p class="has-text-align-center has-white-color has-text-color" style="font-size:30px"><strong>Conoce toda la actividad comercial de Las Rozas</strong></p> <!-- /wp:paragraph --> <!-- wp:paragraph {"align":"center","textColor":"white","style":{"typography":{"fontSize":22}}} --> <p class="has-text-align-center has-white-color has-text-color" style="font-size:22px">Descubre todos los comercios, restaurantes y servicios que ofrecemos en un solo clic y al alcance de tu mano.</p> <!-- /wp:paragraph --> </div> <!-- /wp:toolset-blocks/container --> </div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"margin":{"enabled":false},"padding":{"enabled":false},"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"></div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"></div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"></div> <!-- /wp:toolset-blocks/grid-column --> <!-- wp:toolset-blocks/grid-column {"style":{"cssClasses":[]}} --> <div class="wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top" data-toolset-blocks-grid-column="1"></div> <!-- /wp:toolset-blocks/grid-column --> </div> <!-- /wp:toolset-blocks/grid --> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> </div> <!-- /wp:toolset-blocks/container --> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> <?php $content = ob_get_clean(); $my_post = array( 'ID' => 1931, 'post_content' => $content, ); // Update the post into the database wp_update_post( $my_post ); } add_action( 'init', 'temp_function_fix_home' );
After adding the code, visit the homepage on the front-end once and then check its edit screen. Once, the edit screen works, you can remove the code from the file and then add the image blocks again.
My issue is resolved now. Thank you!