diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index eea9090ba0..8b1e40cdbb 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -108,6 +108,11 @@ jobs: FORCE_COLOR: 1 run: yarn ${PATTERN} e2e-tests/${GROUP} + - name: Print error log + if: always() + continue-on-error: true + run: docker compose exec ec-cube tail -n 100 data/logs/error.log + - name: Upload evidence if: failure() uses: actions/upload-artifact@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 09a8bcea83..ce77157935 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -80,6 +80,11 @@ jobs: - name: Run to PHPUnit SessionFactory run: docker compose exec -T ec-cube php data/vendor/bin/phpunit tests/class/SC_SessionFactoryTest.php + - name: Print error log + if: always() + continue-on-error: true + run: docker compose exec ec-cube tail -n 100 data/logs/error.log + - name: Upload logs if: failure() uses: actions/upload-artifact@v4 diff --git a/data/class/SC_View.php b/data/class/SC_View.php index bab1244bc6..27cc188dd6 100644 --- a/data/class/SC_View.php +++ b/data/class/SC_View.php @@ -40,7 +40,6 @@ public function __construct() public function init() { - // include_phpの利用のためSmartyBCを呼び出す、ホントはinclude_phpをなくしたいそうすれば、blank.tplもなくせる $this->_smarty = new \Smarty\Smarty(); $this->_smarty->setLeftDelimiter(''); @@ -74,6 +73,7 @@ public function init() $this->_smarty->registerPlugin('function', 'sfIsHTTPS', ['SC_Utils_Ex', 'sfIsHTTPS']); $this->_smarty->registerPlugin('function', 'sfSetErrorStyle', ['SC_Utils_Ex', 'sfSetErrorStyle']); $this->_smarty->registerPlugin('function', 'printXMLDeclaration', ['GC_Utils_Ex', 'printXMLDeclaration']); + $this->_smarty->muteUndefinedOrNullWarnings(); $this->_smarty->default_modifiers = ['script_escape']; if (ADMIN_MODE == '1') {