From 853eaea5f9be1c4da38343e0a18e5f617b78a3c2 Mon Sep 17 00:00:00 2001 From: seansan Date: Wed, 8 Feb 2017 10:44:43 +0100 Subject: [PATCH 1/2] Simple improve of Not valid template file debugging Simple improve of Not valid template file debugging --- app/code/core/Mage/Core/Block/Template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/core/Mage/Core/Block/Template.php b/app/code/core/Mage/Core/Block/Template.php index 5c10556930a..7f7980be092 100644 --- a/app/code/core/Mage/Core/Block/Template.php +++ b/app/code/core/Mage/Core/Block/Template.php @@ -240,7 +240,8 @@ public function fetchView($fileName) if ($includeFilePath != '' && (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks())) { include $includeFilePath; } else { - Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, true); + $thisClass = get_class($this); + Mage::log('Not valid template file:'.$fileName." class:{$thisClass}", Zend_Log::CRIT, null, true); } } catch (Exception $e) { From 1ca14c194f1f504843c5abcc72e7d21eb86ddf6c Mon Sep 17 00:00:00 2001 From: Tymoteusz Motylewski Date: Wed, 8 Feb 2017 13:43:49 +0100 Subject: [PATCH 2/2] Unify string concatenation --- app/code/core/Mage/Core/Block/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Core/Block/Template.php b/app/code/core/Mage/Core/Block/Template.php index 7f7980be092..e58a13dd1f0 100644 --- a/app/code/core/Mage/Core/Block/Template.php +++ b/app/code/core/Mage/Core/Block/Template.php @@ -241,7 +241,7 @@ public function fetchView($fileName) include $includeFilePath; } else { $thisClass = get_class($this); - Mage::log('Not valid template file:'.$fileName." class:{$thisClass}", Zend_Log::CRIT, null, true); + Mage::log('Not valid template file:' . $fileName . ' class: ' . $thisClass, Zend_Log::CRIT, null, true); } } catch (Exception $e) {