@pablopol24
You can fix that error with this:
diff --git a/include/class.error.php b/include/class.error.php
index c083437..e342595 100644
--- a/include/class.error.php
+++ b/include/class.error.php
@@ -25,12 +25,15 @@ class BaseError extends Exception {
global $ost;
parent::__construct(__($message));
- $message = str_replace(ROOT_DIR, '(root)/', _S($message));
- if ($ost && $ost->getConfig()->getLogLevel() == 3)
- $message .= "\n\n" . $this->getBacktrace();
+ if ($ost) {
+ $message = str_replace(ROOT_DIR, '(root)/', _S($message));
- $ost->logError($this->getTitle(), $message, static::$sendAlert);
+ if ($ost->getConfig()->getLogLevel() == 3)
+ $message .= "\n\n" . $this->getBacktrace();
+
+ $ost->logError($this->getTitle(), $message, static::$sendAlert);
+ }
}
function getTitle() {
We need to merge the pull request for this but this will do in the meantime.
Cheers.