From 1f003d21703b4c2e2f0cc876e55b5dac7b0ea4af Mon Sep 17 00:00:00 2001 From: amit sharma Date: Mon, 28 Sep 2026 19:15:44 +0530 Subject: [PATCH] Fixed: fatal error when accessing Front Office core files Co-authored-by: Name --- footer.php | 4 ++++ header.php | 4 ++++ init.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/footer.php b/footer.php index bed167bc6..91799dc4d 100644 --- a/footer.php +++ b/footer.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else { diff --git a/header.php b/header.php index 7e8a2ee81..74710f478 100644 --- a/header.php +++ b/header.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else { diff --git a/init.php b/init.php index aa572eff3..1c9c1c37c 100644 --- a/init.php +++ b/init.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else {