Automatic exception report

Date and time

10-12-2025 22:11:55

Page where error occured

http://toppharm24.codeguru.nl/_product.php?product=lijnzaadolie-500-mg-50-softgels-351-g

Details user

216.73.216.181 - Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Error

[2]

Undefined array key "HTTP_REFERER"

An error occurred on line 6000 in the file /var/www/html/toppharm24.codeguru.nl/lib/functionality/shop/Shop.php

Source code

5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
        $aContent = array();
        $sContent = NULL;
        $sProductsSelector = NULL;

        $iCategoryID = $this->oGlobal->Retrieve_GET_var('categoryID',false,false);
        $sCategory = $this->oGlobal->Retrieve_GET_var('category',false,false);
        $sSearch = $this->oGlobal->Retrieve_GET_var('term',false,false);
        $sAlfa = $this->oGlobal->Retrieve_GET_var('alfa',false,false);
        $sProductType = $this->oGlobalTranslation->TRG_MenuProducts;

        //Referer?
        if($bReferer == true)
        {
        
            //Are we matching a referer?
            $sReferrer = $_SERVER['HTTP_REFERER'];
            $sReferrer = str_replace ('http://' . $_SERVER['HTTP_HOST'], '', $sReferrer);
            
            //Do we have a referrer?
            if(!(empty($sReferrer)))
            {
                //Do we have a category?
                if((!(strpos($sReferrer, '/category/') === false)))
                {    
                    preg_match('^category/([a-z_0-9-]+)/^', $sReferrer, $aMatches, PREG_OFFSET_CAPTURE);
    
                    //Setup categoryID
                    $sCategory = $aMatches[1][0];
                    
                    $_SESSION['category'] = $sCategory;
                }            

$_GET array

Array
(
    [product] => lijnzaadolie-500-mg-50-softgels-351-g
)

$_SESSION array

Array
(
    [LAN] => 1
)