المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : حل مشكلة الشاشة البيضاء فى whmcs - و تفعيل دالة enable ini_set()



Rise Company
01-04-2017, 14:36
حل مشكلة الشاشة البيضاء فى whmcs - وكيفية اظهار الخطا لاصلاحة

اثناء حجز سيرفر جديد او ترقية الاباتشى

قد تجد ظهور صفحة بيضاء فى client area رغم عمل admin area بشكل جيد تماما

اذن اين المشكلة ؟ وخاصة ان الصفحة البيضاء لا تظهر خطا رغم تفعيله من لوحة الادارة

--------------------------------------------------------------------
1- اظهار الخطا من whmcs :

If at any time you encounter a blank or partially formatted page in the WHMCS system that means a fatal error is occurring in WHMCS and error reporting is disabled by default. So to identify exactly what is causing that, ensure display_errors is enabled in the server's PHP configuration and enable the Setup > General Settings > Other tab > Display Errors option


https://www.rise.company/forum/images/imported/2017/04/1.jpg

اذا كنت لا تستطيع الدخول على لوحة التحكم

If you are unable to access the admin area to enable this option, or you are running version 4 and earlier add the following line to your WHMCS configuration.php file instead and then reproduce the blank page problem. Once testing is complete, be sure to untick the option or remove the $display_errors line again from that file so that clients aren’t getting warnings or errors.



$display_errors = true;
$display_errors = E_ALL;




--------------------------------------------------------------------
2- اظهار الخطا من ملفات الموقع :

رقم تفعيل ظهور الاخطاء كما فى الاعلى الا انه قد لا يظهر لك الا صفحة بيضاء فارغة من الاخطاء , فالحل اذن هو انك
ستجد داخل ملفات الموقع الخاص بwhmcs ملف باسم error_log داخله ستجد الخطا و بالتالى سنعرف كيفية حل المشكلة به

--------------------------------------------------------------------
3- حل مشكلة enable ini_set() :

فى الغالب ستجد خطا داخل الملف وهو
ini_set() has been disabled for security reasons in /hosting link to whmcs/init.php

وهو يعنى ان هناك دالة مغلقة ويجب فتحها لكى يظهر معك الموقع

ولتفعيله

Go to the PHP Configuration Editor then click on "Advanced Mode." This will let you view and edit all php.ini settings including disable_functions.


وقد يظهر بعدها خطا اخر فى مساحة الرام

والحل هو زيادة memory_limit

من نفس الصفحة اجعلها من 32 الى 64

--------------------------------------------------------------------
4- الحد الادنى من مواصفات السيرفر المناسبة للwhmcs :

https://upload.rise.company/uploads/1491050842991.png

اهم المواصفات هنا :

الphp يكون 5.6

الioncube يكون 5.0

و الحد الادنى للmemory يكون 64