You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the following command from a snippet, it executes just fine: $res = $this->modx->runProcessor('resource/create', $resource);
However when that command is run from GPM as part of adding a package, with the same options in $resource, it breaks. Unfortunately no errors are logged anywhere other than the Manager UI displaying "Access denied" error, but through a manual stack trace I've traced it down to:
GitPackageManagementCreateProcessor->createResource: 727 "runProcessor" never returns
modX->runProcessor:1764 "run" never returns
modProcessor->run: 177 "process" never returns
modObjectCreateProcessor->process: 680 "cleanup" never returns
modResourceCreateProcessor->cleanup: 206 "success" never returns
modProcessor->success: 105 "success" never returns
modError->success: 272 "process" never returns
modError->process: 142 "resetLogging" never returns
modRegistry->resetLogging: 192 "setLogTarget" never returns
xPDO->setLogTarget: 1988 setting "$this->logTarget" fails
The value trying to be set is: Array => {"target":"FILE","options":{"filename":"error.log"}}
Based on the Manager popup error, I’m guessing the file path is not set correctly when the processor is called from GPM, but I don’t know how to see what it is set to or how to make sure it’s set correctly.
The text was updated successfully, but these errors were encountered:
Note this occurs when following the instructions at http://theboxer.github.io/Git-Package-Management/config/package/#resources ... when the resources array is included as part of the package JSON object in config.json, GitPackageManagementCreateProcessor->createResource calls runProcessor as noted above.
To further clarify, the first resource is created, before the failure documented above, which halts the install script and prevents any additional resources from being created.
If I run the following command from a snippet, it executes just fine:
$res = $this->modx->runProcessor('resource/create', $resource);
However when that command is run from GPM as part of adding a package, with the same options in
$resource
, it breaks. Unfortunately no errors are logged anywhere other than the Manager UI displaying "Access denied" error, but through a manual stack trace I've traced it down to:The value trying to be set is:
Array => {"target":"FILE","options":{"filename":"error.log"}}
Based on the Manager popup error, I’m guessing the file path is not set correctly when the processor is called from GPM, but I don’t know how to see what it is set to or how to make sure it’s set correctly.
The text was updated successfully, but these errors were encountered: