https://dev.shop.bak2.com/fr/shop/14/switch

ShopController :: changeShop

Request

GET Parameters

No GET parameters

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\ShopController::changeShop"
_firewall_context
"security.firewall.map.context.main"
_locale
"fr"
_remove_csp_headers
true
_route
"app_shop_switch"
_route_params
[
  "_locale" => "fr"
  "id" => "14"
]
_security_firewall_run
"_security_main"
_stopwatch_token
"2dcd48"
id
"14"
shop
App\Entity\Shop {#884
  -id: 14
  -name: "ComiteEntrepriseGeneric"
  -country: "fr"
  -wttId: 20
  -users: Doctrine\ORM\PersistentCollection {#947 …}
  -orders: Doctrine\ORM\PersistentCollection {#1024 …}
  -wttName: "ComiteEntreprise"
  -logo: null
  -stocks: Doctrine\ORM\PersistentCollection {#1068 …}
  -config: [
    [
      "params2marketplace" => "20"
      "marketplace" => "ComiteEntreprise"
      "type" => "b2c"
      "logo" => ""
      "url" => ""
      "buyerId" => "0"
      "vbox" => "0"
      "internalCost" => "2.00"
      "laborCost" => "7.00"
      "logisticCost" => "10.00"
      "accessoryCost" => "10.00"
      "warranty_perentage" => "4"
      "warranty_fixe" => "4.00"
      "warranty_duration" => "0"
      "commision_perentage" => "0"
      "tva_percentage" => "0"
      "margin_tablet_percentage" => "20"
      "margin_other_percentage" => "20"
      "minResalePrice_percentage" => "0"
      "minMargin" => "20.00"
      "priceCalculation" => "0"
      "categories" => ""
      "manufacturers" => "11223, 11127,378"
      "models" => "31603,31604,31519,31520,31521,31522,31523,31524,31525,31526,31527,31528,31529,31530,31531,31532,31533,31534,30926,31462,31463,30927,31464,31465,31466,31467,31468,31469,31470,31471,31472,31473,31474,31475,30925,31476,31477,31478,31479,31605,31608,31609,31610,31611,31553,31554,31555,31556,31557,31558,31559,31560,31561,31562,31563,31564,31565,31566,31567,31568,31569,31570,31581,31582,31583,31584,31606,31607,31613,31614,31480,31481,31617,31618,31544,31546,31545,31547,31548,31550,31551,31552,31588,31589,31590,31591,31615,31616,31571,31592,31593,31594,31596,31597,31598,31580,31619,31620,31621,31599,31600,31601,31572,31573,31574,31575,31576,31577,31578,31579,31602,31622,31623,31624,31625,31535,30917,30918,30919,30920,31626,31627,31628,31482,31483,30928,31484,31485,31487,31488,31489,31490,31491,31492,31493,31494,31496,31497,31498,30929,31499,31500,31501,31502,31503,31504,31505,31506,31507,31508,31509,31510,31511,31512,31513,31514,31538, 30924,31537,31541,31536,31539,31540,31542,31543,31549,31486,31495,31630,33163,30923"
      "grades" => [
        "M" => "M"
      ]
      "sourceable" => "1"
      "quality" => [
        [
          "outGradeId" => "17"
          "outGrade" => "M"
          "quality" => "GOOD CONDITION"
        ]
      ]
    ]
  ]
  -companies: Doctrine\ORM\PersistentCollection {#1101 …}
  -settings: Doctrine\ORM\PersistentCollection {#1124 …}
  -imeis: Doctrine\ORM\PersistentCollection {#1154 …}
  -apikey: "na"
  -loginHash: "croix"
  -channel: "b2c"
  -mailCopy: "eric.grivilers@bak2.com"
  -coupons: Doctrine\ORM\PersistentCollection {#1174 …}
  -categories: Doctrine\ORM\PersistentCollection {#1199 …}
  -options: Doctrine\ORM\PersistentCollection {#1234 …}
  -statuses: Doctrine\ORM\PersistentCollection {#1259 …}
  -active: true
  -vat: null
}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
from
"gptbot(at)openai.com"
host
"dev.shop.bak2.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-openai-host-hash
"711751724"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Sun, 12 Oct 2025 22:13:11 GMT"
vary
"Accept"
x-debug-exception
"Call%20to%20a%20member%20function%20setShop%28%29%20on%20null"
x-debug-exception-file
"%2Fvar%2Fwww%2Fclients%2Fclient0%2Fweb26%2Fsrc%2FController%2FShopController.php:274"
x-debug-token
"23904a"
x-debug-token-link
"https://dev.shop.bak2.com/_profiler/097372"
x-previous-debug-token
"097372"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"afe2c2795ed88f6ee309f903eca08a1e"
BAK2LIFE_API_URL
"https://dev.b2b17.bak2life.fr/module/bak2marketplaces/api"
BAK2_API_URL
"http://isd.bak2group.com/routine/report/api"
BAK2_DOMAIN_ES
"dev.shop.bak2.es"
BAK2_DOMAIN_FR
"dev.shop.bak2.fr"
BAK2_MP_BUYER_ID
"289"
CONTACT_EMAIL_ES
"sales@bak2.com"
CONTACT_EMAIL_FR
"sales@bak2.com"
CONTACT_PHONE_ES
"+34 (0)955 133 291"
CONTACT_PHONE_FR
"+33 (0)9 72 41 86 89"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://bak2shop:AbscO8645@127.0.0.1:3306/bak2shop"
MAILER_DSN
"native://default"
MAILER_RECIPIENT
"eric@caravanemedia.com"
MAILER_SENDER
"sales@bak2.com"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
STRIPE_PUBLIC_KEY
"pk_test_51PMVXqJAW7Xh2PSQKbPdMs0VOaV3WBUU3bkDgvGVptANzlJ5RSWfkZ4Mo44Ve9ymydCkLLEfDm5Pp6iwh3O3Vxu3001s39AvVz"
STRIPE_PUBLIC_KEY_ES
"pk_test_51PvwLmHsfgo4QaE4n412x3Nz9tZVbUQFYTshNWXwbrKAxOwzorG00Gbk4KAg86nHTmVvy2NxK5mIMRjwCnNFiyC800d90qIY6v"
STRIPE_SECRET_KEY
"sk_test_51PMVXqJAW7Xh2PSQvfeGxV6856lPfeY0EOaiaDazgwci6EFLFfrnOgGg2pR1yQg8NvgP3k3h9q1R7cNDzr35VjUm00V0UVticE"
STRIPE_SECRET_KEY_ES
"sk_test_51PvwLmHsfgo4QaE4itBZBS3ivBWWrBEmcsHuwkeEEv9Y21PA74Pvu1eLFLeoliISpdN5Seqqyy4NdJHCPZIAd83K00LPxExXWk"
WKHTMLTOIMAGE_PATH
"/usr/local/bin/wkhtmltopdf"
WKHTMLTOPDF_PATH
"/usr/local/bin/wkhtmltopdf"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/var/www/clients/client0/web26/web"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/clients/client0/web26/web"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/clients/client0/web26"
HOSTNAME
""
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"dev.shop.bak2.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
HTTP_X_OPENAI_HOST_HASH
"711751724"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://dev.shop.bak2.com/fr/shop/14/switch"
REDIRECT_SCRIPT_URL
"/fr/shop/14/switch"
REDIRECT_SSL_TLS_SNI
"dev.shop.bak2.com"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/fr/shop/14/switch"
REMOTE_ADDR
"20.171.207.145"
REMOTE_PORT
"46540"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1760307191
REQUEST_TIME_FLOAT
1760307191.7383
REQUEST_URI
"/fr/shop/14/switch"
SCRIPT_FILENAME
"/var/www/clients/client0/web26/web/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://dev.shop.bak2.com/fr/shop/14/switch"
SCRIPT_URL
"/fr/shop/14/switch"
SERVER_ADDR
"94.23.249.11"
SERVER_ADMIN
"webmaster@dev.shop.bak2.com"
SERVER_NAME
"dev.shop.bak2.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"dev.shop.bak2.com"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,MESSENGER_TRANSPORT_DSN,DATABASE_URL,MAILER_DSN,MAILER_RECIPIENT,BAK2_API_URL,BAK2LIFE_API_URL,BAK2_MP_BUYER_ID,MAILER_SENDER,CONTACT_EMAIL_FR,CONTACT_EMAIL_ES,CONTACT_PHONE_FR,CONTACT_PHONE_ES,CORS_ALLOW_ORIGIN,STRIPE_PUBLIC_KEY,STRIPE_SECRET_KEY,STRIPE_PUBLIC_KEY_ES,STRIPE_SECRET_KEY_ES,BAK2_DOMAIN_FR,BAK2_DOMAIN_ES,WKHTMLTOPDF_PATH,WKHTMLTOIMAGE_PATH"
TEMP
"/var/www/clients/client0/web26/tmp"
TMP
"/var/www/clients/client0/web26/tmp"
TMPDIR
"/var/www/clients/client0/web26/tmp"
USER
"web26"
proxy-nokeepalive
"1"

Sub Requests 1

ErrorController (token = 097372)

Key Value
_controller
"error_controller"
_stopwatch_token
"651f19"
exception
Error {#360
  #message: "Call to a member function setShop() on null"
  #code: 0
  #file: "/var/www/clients/client0/web26/src/Controller/ShopController.php"
  #line: 274
  trace: {
    /var/www/clients/client0/web26/src/Controller/ShopController.php:274 {
      App\Controller\ShopController->changeShop(Request $request, Shop $shop, ShopRepository $shopRepository, UserRepository $userRepository): Response …
      › $user=$this->getUser();$user->setShop($shop);$userRepository->add($user);
    }
    /var/www/clients/client0/web26/vendor/symfony/http-kernel/HttpKernel.php:163 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/clients/client0/web26/vendor/symfony/http-kernel/HttpKernel.php:75 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
    }
    /var/www/clients/client0/web26/vendor/symfony/http-kernel/Kernel.php:202 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/clients/client0/web26/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
    }
    /var/www/clients/client0/web26/vendor/autoload_runtime.php:35 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/clients/client0/web26/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/clients/client0/web26/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#152 …9}