Title: Single Column Section &#8220;Encounters Error&#8221;
Last modified: February 9, 2019

---

# Single Column Section “Encounters Error”

 *  Resolved [John Antonacci](https://wordpress.org/support/users/johnnya23/)
 * (@johnnya23)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/)
 * The full width section shows “encounterd an error – can’t be previewed”
    Chrome
   Console (on the edit screen) shows: TypeError: Cannot read property ‘length’ 
   of undefined at Object.responsiveLayoutPicker [as render] (blocks.js:formatted:
   2304) at t.value (caxton.js:2) at t.value (caxton.js:2) at t.value (caxton.js:
   2) at t.value (caxton.js:2) at t.value (caxton.js:2) at p (caxton.js:2) at Ed(
   react-dom.min.js:86) at ph (react-dom.min.js:98) at eg (react-dom.min.js:125)
 * this line of code is highlighted in console > sources (caxton/assets/block.js
   line 2340):
    for (var r = [], l = _altLayouts.default[JSON.parse(e.attrs.tpl).
   length + “-sections”], n = 0; n < l.length; n++)
 * thx,
    john

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

 *  [Jamie Marsland](https://wordpress.org/support/users/jamesmarsland/)
 * (@jamesmarsland)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/#post-11187592)
 * Thanks for the report John,
 * We’ll get fixed up asap 🙂
 * jamie
 *  Thread Starter [John Antonacci](https://wordpress.org/support/users/johnnya23/)
 * (@johnnya23)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/#post-11188396)
 * replaced:
    `for (var r = [], l = _altLayouts.default[JSON.parse(e.attrs.tpl).
   length + “-sections”], n = 0; n < l.length; n++)`
 * with:
 *     ```
       var l = 1;
                   if (typeof _altLayouts.default[JSON.parse(e.attrs.tpl).length + "-sections"] !== 'undefined')
                       l = _altLayouts.default[JSON.parse(e.attrs.tpl).length + "-sections"];
                   for (var r = [], n = 0; n < l.length; n++) r.push(responsiveLayoutElement(l[n], n, t));
       ```
   
 * seems to be working, but not sure if there are unintended consequences?
 *  Thread Starter [John Antonacci](https://wordpress.org/support/users/johnnya23/)
 * (@johnnya23)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/#post-11188489)
 * perfect, thanks!
 *  [Jamie Marsland](https://wordpress.org/support/users/jamesmarsland/)
 * (@jamesmarsland)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/#post-11188497)
 * Actually it looks like we got a problem with the latest master – we’ll fix up
   🙂

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

The topic ‘Single Column Section “Encounters Error”’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caxton_fefefe.svg)
 * [Caxton - Create Pro page layouts in Gutenberg](https://wordpress.org/plugins/caxton/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caxton/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caxton/)
 * [Active Topics](https://wordpress.org/support/plugin/caxton/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caxton/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caxton/reviews/)

 * 4 replies
 * 0 participants
 * Last reply from: [Jamie Marsland](https://wordpress.org/support/users/jamesmarsland/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/single-column-section-encounters-error/#post-11188497)
 * Status: resolved