Title: mapmaker1's Replies | WordPress.org

---

# mapmaker1

  [  ](https://wordpress.org/support/users/mapmaker1/)

 *   [Profile](https://wordpress.org/support/users/mapmaker1/)
 *   [Topics Started](https://wordpress.org/support/users/mapmaker1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mapmaker1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mapmaker1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mapmaker1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mapmaker1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mapmaker1/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Gutenberg Blocks – Website Builder for the Block Editor] WordPress 6.4 blocks issue – Fatal error](https://wordpress.org/support/topic/wordpress-6-4-blocks-issue-fatal-error/)
 *  [mapmaker1](https://wordpress.org/support/users/mapmaker1/)
 * (@mapmaker1)
 * [10 months ago](https://wordpress.org/support/topic/wordpress-6-4-blocks-issue-fatal-error/#post-18595183)
 * This error occurred again for me on a WordPress update. This time the error was
   logged in woocommerce plugin, but this is probably because of timing when the
   page is loaded. As devksec has said, it seems to be related to the Spectra block
   editor, and occurs on my pages where I have used the Spectra tab block. I resolved
   the issue in the same way as devksec, but I don’t know the root cause which is
   likely to do with the plugin.
 * I had to edit `function wp_render_layout_support_flag( $block_content, $block)`
   in public_html/wp-includes/block-supports/layout.php at line 570. The error was
   $parentLayout being passed as a string instead of an array causing a fatal error.
   In my modified code the cases where $layout and $parentLayout are not arrays 
   is covered. My modified version is:
 *     ```wp-block-code
       $layout_0       = $block['attrs']['style']['layout'] ?? array();$parentLayout_0 = $block['parentLayout'] ?? array();$layout = is_array( $layout_0 ) ? $layout_0 : array();if ( ! is_array( $layout_0 ) ) {	error_log( 'Expected $layout to be an array, got: ' . gettype( $layout_0 ) );}$parent_layout = is_array( $parentLayout_0 ) ? $parentLayout_0 : array();if ( ! is_array( $parentLayout_0 ) ) {	error_log( 'Expected $parentLayout to be an array, got: ' . gettype( $parentLayout_0 ) );}$container_content_class = wp_unique_id_from_values(	array(		'layout'       => array_intersect_key(			$layout,			array_flip( array( 'selfStretch', 'flexSize', 'columnStart', 'columnSpan', 'rowStart', 'rowSpan' ) )		),		'parentLayout' => array_intersect_key(			$parent_layout,			array_flip( array( 'minimumColumnWidth', 'columnCount' ) )		),	),	'wp-container-content-');
       ```
   
 * The original version was:
 *     ```wp-block-code
       $container_content_class = wp_unique_id_from_values(    array(        'layout'       => array_intersect_key(            $block['attrs']['style']['layout'] ?? array(),            array_flip(                array( 'selfStretch', 'flexSize', 'columnStart', 'columnSpan', 'rowStart', 'rowSpan' )            )        ),        'parentLayout' => array_intersect_key(            $block['parentLayout'] ?? array(),            array_flip(                array( 'minimumColumnWidth', 'columnCount' )            )        ),    ),    'wp-container-content-');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Extensions for Leaflet Map] Track styling and short code issues](https://wordpress.org/support/topic/track-styling-and-short-code-issues/)
 *  Thread Starter [mapmaker1](https://wordpress.org/support/users/mapmaker1/)
 * (@mapmaker1)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/#post-16402607)
 * Many thanks for the reply. There are errors on the shortcode helper page about
   not loading pngs from the opentopology map – “Failed to load resource:…”. I think
   this is for the first example at the top of the page. I’m not concerned about
   this problem, I just thought I should let you know.
 * “You can’t influence the color of a track in `multielevation`, this is a fixed
   function.” If one was to go in search of changing these fixed settings, is there
   a natural place one should start?

Viewing 2 replies - 1 through 2 (of 2 total)