question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tiles Grid: Cannot read property 'replace' of undefined at UGFunctions.stripTags

See original GitHub issue

The default theme works just fine for me, but Tile Grid does not complete initialization of the gallery.

Uncaught TypeError: Cannot read property 'replace' of undefined
    at UGFunctions.stripTags (unitegallery.js:2316)
    at Object.setHtmlThumb [as funcSetCustomThumbHtml] (unitegallery.js:10798)
    at appendHtmlThumbFromItem (unitegallery.js:2555)
    at UGThumbsGeneral.setHtmlThumbs (unitegallery.js:2583)
    at UGTileDesign.setHtml (unitegallery.js:11466)
    at setHtml (unitegallery.js:7266)
    at UGThumbsGrid.setHtml (unitegallery.js:8685)
    at setHtml (ug-theme-tilesgrid.js:143)
    at runTheme (ug-theme-tilesgrid.js:234)
    at UGTheme_tilesgrid.run (ug-theme-tilesgrid.js:438)

DOM is straightforward Handlebars output…

<div id="holesGallery">
    {{#each galleryImages}}
        <img src="{{this.thumb.url}}" data-image="{{this.large.url}}" />
    {{/each}}
</div>

JS…

$('#holesGallery').unitegallery({
   gallery_theme: "tilesgrid"
});

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

14reactions
stpa81commented, Sep 7, 2017

Had the same problem and solved it by adding an “alt” attribute to the images.

0reactions
pedrofurtadocommented, Jul 10, 2018

@vvvmax Is this a bug? More than a year and this issue still happens, in version 1.7.40

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plain diff
+ * This body can be read by mail clients that do not have HTML email + * capability ... Because PHPMailer +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found