لمزيد من المعلومات حول كيفية كتابة تقرير خطأ جيد
عند تثبيت osticket جديد:
Strict Standards: Non-static method Misc::currentURL() should not be called statically in /opt/osticket/public/bootstrap.php on line 345
Notice: Undefined index: HTTPS in /opt/osticket/public/include/class.misc.php on line 148
Strict Standards: Non-static method Bootstrap::loadConfig() should not be called statically in /opt/osticket/public/main.inc.php on line 24
Notice: Constant ROOT_PATH already defined in /opt/osticket/public/include/ost-config.php on line 39
Strict Standards: Non-static method Bootstrap::i18n_prep() should not be called statically in /opt/osticket/public/main.inc.php on line 26
Deprecated: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /opt/osticket/public/bootstrap.php on line 289
Strict Standards: Non-static method Bootstrap::loadCode() should not be called statically in /opt/osticket/public/main.inc.php on line 27
Strict Standards: Non-static method Bootstrap::connect() should not be called statically in /opt/osticket/public/main.inc.php on line 28
Strict Standards: Non-static method Bootstrap::croak() should not be called statically in /opt/osticket/public/bootstrap.php on line 190
Strict Standards: Non-static method Mailer::sendmail() should not be called statically in /opt/osticket/public/bootstrap.php on line 295
Deprecated: Non-static method Misc::randCode() should not be called statically, assuming $this from incompatible context in /opt/osticket/public/include/class.mailer.php on line 144
Deprecated: Non-static method Crypto::random() should not be called statically, assuming $this from incompatible context in /opt/osticket/public/include/class.misc.php on line 30
Notice: Undefined index: reply-tag in /opt/osticket/public/include/class.mailer.php on line 441
Deprecated: Non-static method Format::html2text() should not be called statically, assuming $this from incompatible context in /opt/osticket/public/include/class.mailer.php on line 449
Strict Standards: Only variables should be passed by reference in /opt/osticket/public/include/html2text.php on line 64
Deprecated: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in /opt/osticket/public/include/class.mailer.php on line 566
Fatal error: Call to undefined function _S() in /opt/osticket/public/include/class.mailer.php on line 573
السلوك المتوقع: [ما توقعت حدوثه]
السلوك الفعلي: [ما حدث بالفعل]
تحديث: يبدو أن هذا يحدث عندما يتعذر على osTicket الاتصال بـ mysql ، ويبدو أنه سيحاول إرسال بريد إلكتروني وأن هذه الوظيفة تستخدم _S () ، ولكن يتم استدعاء Internationlization :: bootstrap فقط أثناء / setup /؟
فقط في حالة مواجهة أي شخص آخر لهذه المشكلة ... واجهتني هذه المشكلة على CentOS 7 الذي يشغل Apache - مع SELinux ، لكن قاعدة البيانات كانت على نظام منفصل.
لاختبار ما إذا كانت مشكلتك مع SELinux: setenforce 0
وقم بتحديث المتصفح. يجب أن تعمل osTicket الآن بشكل جيد. إذا كان هذا هو الحال بالنسبة لك ، فإليك الحل.
SELinux لا يسمح لـ apache بإنشاء اتصالات الشبكة ، لذا ببساطة اسمح لهم بذلك.
setenforce 1 # We want SELinux to remain on!
setsebool -P httpd_can_network_connect_db 1
سهل
في حالتي ، حدث الخطأ بسبب تعطل محرك قاعدة البيانات.
على الرغم من أن قاعدة البيانات معطلة ، فإن المشكلة هنا هي أن إشعار البريد الإلكتروني بأن db معطل فشل بسبب خطأ التجميع هذا.
يبدو أن الوظيفة _S
تأتي من الوحدة النمطية il8n ، ولكن من الصعب بعض الشيء تتبع ما إذا / كيف يتم تحميل هذه الوظيفة بالفعل.
https://github.com/osTicket/osTicket/blob/master/include/cli/modules/i18n.php#L628
قد تكون هناك مشكلة في اتصال قاعدة البيانات! تأكد من أن المستخدم لديه كلمة المرور. يمكن أن يتسبب الجذر بدون كلمة مرور في حدوث هذا الخطأ أيضًا.
التعليق الأكثر فائدة
في حالتي ، حدث الخطأ بسبب تعطل محرك قاعدة البيانات.