Skip Navigation

[Resolved] Cannot add grid to WordPress Archive area on top of Toolset Archive pages.

This thread is resolved. Here is a description of the problem and solution.

Problem:
Styling my search fields in Gutenberg editing using all Toolset by adding a grid and positioning data fields.

To do this I click the 'Add other blocks' button at the top of an Archive page. When I add a (all Toolset blocks) a Container block (or, not), then a Grid, then try to add a Single Field, it always crashes and returns this error: 'This block has encountered an error and cannot be previewed.'

When creating these fields outside the Grid, e.g. using the field selector buttons at the top of the archive 'Add Search Field', 'Add Search Button', 'Add Reset Button' I am successful.

I could manually style the fields for the time being, e.g. placing search fields inside a grid but, I can't make those moves using the List editor, nor find a way to view the html in the Archive editor. If there is a solution that would be helpful.
Solution:
For the time being I simply created single fields outside of the grid, then opened the list and dragged the elements into the grid cells. The grid cells are locked by default (maybe that's why they won't receive fields?) so, I manually unlock them and drag the fields into each.

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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 2 replies, has 2 voices.

Last updated by jerryH-3 1 year, 9 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2574423
2023-03-16--screen--249.png

Tell us what you are trying to do?
Styling my search fields in Gutenberg editing using all Toolset by adding a grid and positioning data fields.

To do this I click the 'Add other blocks' button at the top of an Archive page. When I add a (all Toolset blocks) a Container block (or, not), then a Grid, then try to add a Single Field, it always crashes and returns this error: 'This block has encountered an error and cannot be previewed.'

When creating these fields outside the Grid, e.g. using the field selector buttons at the top of the archive 'Add Search Field', 'Add Search Button', 'Add Reset Button' I am successful.

I could manually style the fields for the time being, e.g. placing search fields inside a grid but, I can't make those moves using the List editor, nor find a way to view the html in the Archive editor. If there is a solution that would be helpful.

I have seen other (resolved) tickets about this issue and have downgraded WordPress to 6.0.3. Incidentally, I also have also downgraded my PHP to 8.0 because I was having a bunch of challenges with 8.1 and 8.2. The 6.0 reference from 12/2022: https://toolset.com/errata/fields-and-text-block-broken-with-wordpress-6-1-update/

Is there any documentation that you are following?
Toolset tutorials, Astra Pro theme documentation

Active Plugins: I only have minimal plugins active including: Astra Pro, Folders Pro, Spectra, Toolset Blocks, Types, Forms, WP Downgrade | Specific Core Version, and WP Ultimate CSV Importer - Custom Fields Import. (I've tried above with all non-Astra/Toolset plugins deactivated with same result).

What is the link to your site?
hidden link
Ubuntu / Apache 2.4.56 / PHP 8.0

#2574637

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact, and welcome to the Toolset support forum!

Does it happen only to the archive pages? We had a similar issue in the last months, but that should be already solved in the latest Toolset Blocks version. Please check if you have the most recent Blocks version (you can do it by going to Plugins -> Add New -> Commercial tab and clicking on the 'Check updates' button).

Moreover, can you please enable the debug mode? Just add the following code in your wp-config.php file:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
  
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
  
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

Please check the following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder. If you locate it there, kindly send us the last lines here in the ticket.

Regards,
Mateus.

#2575465

Thanks Mateus. For the time being I simply created single fields outside of the grid, then opened the list and dragged the elements into the grid cells. The grid cells are locked by default (maybe that's why they won't receive fields?) so, I manually unlock them and drag the fields into each.