Theo văn bản trong các ý kiến, chỉnh sửa tập tin LocalSettings.php
của bạn và thêm dòng này tại rất cuối:
$wgShowExceptionDetails = true;
Thử tải lại trang cung cấp cho bạn lỗi đó. Bạn có thể thấy những gì được gọi là backtrace ... đây là ví dụ của tôi:
#0 /Users/user/www/extensions/LocalisationUpdate/LocalisationUpdate.class.php(553): LocalisationUpdate::filename('it')
#1 /Users/user/www/extensions/LocalisationUpdate/LocalisationUpdate.class.php(36): LocalisationUpdate::readFile('it')
#2 [internal function]: LocalisationUpdate::onRecache(Object(LocalisationCache), 'it', Array)
#3 /Users/user/www/includes/Hooks.php(255): call_user_func_array('LocalisationUpd...', Array)
#4 /Users/user/www/includes/GlobalFunctions.php(3883): Hooks::run('LocalisationCac...', Array)
#5 /Users/user/www/includes/cache/LocalisationCache.php(796): wfRunHooks('LocalisationCac...', Array)
#6 /Users/user/www/includes/cache/LocalisationCache.php(426): LocalisationCache->recache('it')
#7 /Users/user/www/includes/cache/LocalisationCache.php(310): LocalisationCache->initLanguage('it')
#8 /Users/user/www/includes/cache/LocalisationCache.php(245): LocalisationCache->loadItem('it', 'fallback')
#9 /Users/user/www/languages/Language.php(3978): LocalisationCache->getItem('it', 'fallback')
#10 /Users/user/www/languages/Language.php(230): Language::getFallbacksFor('it')
#11 /Users/user/www/languages/Language.php(189): Language::newFromCode('it')
#12 /Users/user/www/includes/Setup.php(497): Language::factory('it')
#13 /Users/user/www/includes/WebStart.php(161): require_once('/Users/user/3d...')
#14 /Users/user/www/index.php(55): require('/Users/user/3d...')
#15 {main}
Dòng đầu tiên là người dừng thực hiện, gây ra ngoại lệ. Nếu bạn có thể xác định được vấn đề (trong trường hợp của tôi là phần mở rộng LocalisationUpdate), nó có thể rất dễ sửa chữa. Một lần nữa, trong trường hợp của tôi nó là đủ để mở một lần nữa LocalSettings.php
và nhận xét ra hoặc xoá dòng:
require_once("$IP/extensions/LocalisationUpdate/LocalisationUpdate.php");
https: //www.mediawiki .org/wiki/Manual: How_to_debug – PleaseStand
Cảm ơn ... Nhưng tôi đã thực hiện các bước này ... Và các issiues vẫn tồn tại ... – omixam
"' $ wgShowExceptionDetails' Cho phép thêm chi tiết (như dấu vết ngăn xếp) được hiển thị trên " Lỗi nghiêm trọng "trang". Chúng ta sẽ cần phải biết nhiều hơn chỉ là "ngoại lệ nghiêm trọng của loại MWException". – PleaseStand