# ERROR V9 Touch\_gallery / Call to a member function getFileSetName() on null

**URL:** <https://forums.concretecms.org/t/error-v9-touch-gallery-call-to-a-member-function-getfilesetname-on-null/1463>\
**Category:** Developing with Concrete\
**Created:** [November 3, 2021, 2:48am UTC](https://forums.concretecms.org/t/error-v9-touch-gallery-call-to-a-member-function-getfilesetname-on-null/1463 "2021-11-03T02:48:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buschmann](https://forums.concretecms.org/user_avatar/forums.concretecms.org/buschmann/32/753_2.png) [@Buschmann](https://forums.concretecms.org/u/Buschmann)\
**Post date:** [November 3, 2021, 2:48am UTC](https://forums.concretecms.org/t/error-v9-touch-gallery-call-to-a-member-function-getfilesetname-on-null/1463/1 "2021-11-03T02:48:59Z")

</div>

… too late for today…

 ![image](https://forums.concretecms.org/uploads/default/original/1X/6c1e8d7b62ecd1a136deecd0c44ddf099b9fb426.png)

**var/www/vhosts/osweed.io/httpdocs/market/packages/touch\_gallery/blocks/touch\_gallery/controller.php**

```auto
        $style .= "#tg-galleryOverlay" . $this->buID . "{";
        $style .= "background-color:" . $this->overlayBgColor . ";}";
        if ($this->controlsBgColorRest) {
            $style .= "#tg-galleryOverlay" . $this->buID . " .tg-has-icons{";
            $style .= "background-color:" . $this->controlsBgColorRest . ";}";
        }
        if ($this->controlsBgColor) {
            $style .= "#tg-galleryOverlay" . $this->buID . " .tg-has-icons:hover{";
            $style .= "background-color:" . $this->controlsBgColor . ";}";
        }

        $style .= "</style>";

        return $style;
    }

    public function addInlineJs()
    {
        if (empty($this->fileSetName)) {
            $this->fileSetName = htmlentities($fs->getFileSetName(), ENT_QUOTES, APP_CHARSET);
            $this->set('fileSetName', $this->fileSetName);
        }

        $this->showDesc = empty($this->showDesc) ? 0 : 1;
        $this->showClose = empty($this->showClose) ? 0 : 1;
        $this->hideControls = empty($this->hideControls) ? 0 : 1;
        $this->hideDelay = empty($this->hideDelay) ? '' : $this->hideDelay;
        $this->loopSlides = empty($this->loopSlides) ? 0 : 1;
        $this->hideArrowsEdge = empty($this->hideArrowsEdge) ? 0 : 1;

        $js = "<script type='text/javascript'>";
        $js .= "$(document).ready(function() {";
        $js .= "$('#touchgallery-thumbs" . $this->buID . " a').touchGallery({";
        $js .= "bid: " . $this->buID . ",";
        $js .= "picClick: '" . $this->picClick . "',";
        $js .= "showCaptions: " . $this->showDesc . ",";
        $js .= "hideControls: " . $this->hideControls . ",";
        $js .= "showClose: " . $this->showClose . ",";
        $js .= "loopSlides: " . $this->loopSlides . ",";
        $js .= "hideArrowsEdge: " . $this->hideArrowsEdge . ",";

```

Arguments

1. “Call to a member function getFileSetName() on null”

---

<div class="post-metadata">

**Author:** ![Myq](https://forums.concretecms.org/user_avatar/forums.concretecms.org/myq/32/4281_2.png) [@Myq](https://forums.concretecms.org/u/Myq)\
**Post date:** [January 7, 2022, 12:14am UTC](https://forums.concretecms.org/t/error-v9-touch-gallery-call-to-a-member-function-getfilesetname-on-null/1463/2 "2022-01-07T00:14:37Z")

</div>

I took the liberty of removing all that environment info from your post. It wasn’t particularly helpful and also contained some information which really should stay private.

Did you have a particular question? It looks like you might be using a commercial package. In that case, you may want to contact the developer for support: [Support - concrete5](https://marketplace.concretecms.com/marketplace/addons/touch-gallery1/support)
