From 38383c2f261b1afdf243bbd1f2396883ef5026ac Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Fri, 10 Feb 2023 20:41:30 +0000 Subject: [PATCH] standalone: temporary error_log --- CRM/Utils/System/Standalone.php | 4 +++- setup/plugins/init/Standalone.civi-setup.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/System/Standalone.php b/CRM/Utils/System/Standalone.php index 419f27bb91..9a97704fb7 100644 --- a/CRM/Utils/System/Standalone.php +++ b/CRM/Utils/System/Standalone.php @@ -20,7 +20,6 @@ */ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { - /** * @inheritdoc */ @@ -329,6 +328,8 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { */ public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) { static $runOnce; + + error_log("artfulrobot: " . __FILE__ . " " . __METHOD__); if (!isset($runOnce)) { $runOnce = TRUE; return TRUE; @@ -382,6 +383,7 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { if (!empty($civicrm_paths['cms.root']['path'])) { return $civicrm_paths['cms.root']['path']; } + error_log("artfulrobot: " . __FILE__ . " " . __METHOD__); throw new \RuntimeException("Standalone requires the path is set for now. Set \$civicrm_paths['cms.root']['path'] in civicrm.settings.php to the webroot."); } diff --git a/setup/plugins/init/Standalone.civi-setup.php b/setup/plugins/init/Standalone.civi-setup.php index 4d5c5ee625..af6469a47f 100644 --- a/setup/plugins/init/Standalone.civi-setup.php +++ b/setup/plugins/init/Standalone.civi-setup.php @@ -30,6 +30,7 @@ if (!defined('CIVI_SETUP')) { \Civi\Setup::log()->info(sprintf('[%s] Handle %s', basename(__FILE__), 'init')); + error_log('artfulrobot: ' . __FILE__ . ' listener for civi.setup.init'); // Compute settingsPath. // We use this structure: /var/www/standalone/data/{civicrm.settings.php,templates_c} // to reduce the number of directories that admins have to chmod -- 2.25.1