Jump to content

Edit History

gouna

gouna

Bonjour,

Effectivement j'ai désactivé le module "PS Social with Facebook & Instagram v1.31.0" et le problème n'est plus présent.

Voici la portion de code du fichier PixelHandler.php 

    public function handleEvent($params, $hookName)
    {
        $pixel_id = $this->configurationAdapter->get(Config::PS_PIXEL_ID);
        if (empty($pixel_id)) {
            return '';
        }
        $track = 'track';

        $eventType = false;
        if (isset($params['event_type'])) {
            $eventType = $params['event_type'];
        }
        if (isset($params['user'])) {
            $userData = $params['user'];
        }

        $content = $eventData = [];
        if (isset($params['eventID'])) {
            $eventData = ['eventID' => $params['eventID']];
        }
        if (isset($params['custom_data'])) {
            $content = $params['custom_data'];
        }

        $smartyVariables = [
            'pixel_fc' => $this->module->front_controller,
            'id_pixel' => $pixel_id,
            'type' => $eventType,
            'content' => $this->formatPixel($content),
            'track' => $track,
            'eventData' => $this->formatPixel($eventData),
        ];

        if (isset($userData)) {
            $smartyVariables['userInfos'] = $this->getCustomerInformation($userData);
        }

        $content = '';

        if ($hookName === 'hookDisplayHeader') {
            $this->context->smarty->assign($smartyVariables);

            $content .= $this->module->display($this->module->getfilePath(), 'views/templates/hook/header.tpl');
        }

        $this->context->smarty->assign($smartyVariables);
        $this->templateBuffer->add($this->module->display($this->module->getfilePath(), 'views/templates/hook/fbTrack.tpl'));

        // Return the existing content in case we have a display hook
        if (strpos($hookName, 'Display') === 4 && !$this->isCurrentRequestAnAjax()) {
            $content .= $this->templateBuffer->flush();
        }

        return $content;
    }

 

gouna

gouna

Bonjour,

Effectivement j'ai désactivé le module "PS Social with Facebook & Instagram v1.31.0" et le problème n'est plus présent.

×
×
  • Create New...