Issue Bug Rejected

#83877False Error code (200)

Tim Jonas Pflaum 02/13/18, 11:50 updated 07/14/24, 07:52

Description

False error code in Backend when tca userFunc calls the render function with a DebuggerUtility::var_dump($this->pageRenderer->getCompressJavascript());
This happened when we had a content element inside of another contentelement, which we do for our accordion.

/**
* Renders the Google map.
* @param array $parentArray
* @param UserElement $pObj
* @return string
* @throws \InvalidArgumentException
* @throws \BadFunctionCallException
*/
    public function render(array $parentArray, UserElement $pObj):string
    {
        $this->init();
        $this->pageRenderer->addJsFile('EXT:extension_key/Resources/Public/Js/Maps.js', 'text/javascript', true, true);
        $this->pageRenderer->addJsFile('https://maps.googleapis.com/maps/api/js?key=' . $this->apiKey . '&callback=myMapTCA', 'text/javascript', false, false, '', true);
        DebuggerUtility::var_dump($this->pageRenderer->getCompressJavascript());
        return $this->getMapHtml($this->getConfiguration($parentArray));
    }

Error-200-OK.png

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.