查看完整版本: 已解決 在 PHP 中得到錯誤
PHP 致命錯誤: 'vB_Template_Runtime' /home/site/public_html/includes/vbenterprisetranslator_functions.php 行 338 中找不到類
PHP 致命錯誤: 行 933 /home/site/public_html/includes/vbenterprisetranslator_functions_hooks.php 中未定義的函數 vbet_doRedirect() 來調用
任何的想法為何?這是最新版本 4.4.4
r.dziadusz
08-11-11, 21:05
第一個 PHP 錯誤
你能請給我們正確的 url,引發這些錯誤或出現時,如果你不能想出我將不得不檢查它的地方
關於第二個錯誤將不得不將其簽入我的測試論壇
我不能完全確定這些來自什麼 URL。他們似乎有什麼事發生幾次一天。
r.dziadusz
09-11-11, 12:06
我需要知道它,所以你可以請寄我您訪問詳細介紹我要檢查它嗎?
編輯
有關此錯誤:
PHP 致命錯誤: 'vB_Template_Runtime' /home/site/public_html/includes/vbenterprisetranslator_functions.php 行 338 中找不到類
我得以重現,和這裡有你的快速修復
注意: 這不被測試:
請打開檔
includes/vbenterprisetranslator_functions_vbseo.php
而發現這一行:
$encoded = urlencode(vbet_getReEncoded($title)); -如果您不進行任何更改,它應該是 121 線在此檔中
和之前這是一行把這段代碼:
require_once(DIR. '/includes/class_core.php');
關於第二個錯誤我無法重現,所以我需要訪問您的 ftp 對之進行調查
r.dziadusz
11-11-11, 15:38
還有一件事:
請注意這不測試 !
PHP 致命錯誤: /home/site/public_html/includes/vbenterprisetranslator_functions_hooks.php 中未定義的函數 vbet_doRedirect() 來呼籲 933 行
在 includes/vbenterprisetranslator_functions_hooks.php 中找到這行:
vbet_doRedirect(vbet_createURL($redirectLanguage), false, false);
並提出:
require_once(DIR. '/includes/vbenterprisetranslator_functions_redirect_utils.php');
請告訴我們是此解決方案説明您
應用所做的更改。這些錯誤現在似乎消失了,但我現在有一個新:
PHP 致命錯誤: /home/cellphon/public_html/includes/vbenterprisetranslator_functions_hooks.php 中未定義的函數 vbet_createURL() 來呼籲線 934
我們需要的代碼 (目錄 ' / includes/vbenterprisetranslator_functions_url.php) ;在此之前,嗎?
r.dziadusz
11-11-11, 17:08
是的對不起,你已經面臨的所有問題
實際上,當我添加以上我獲取:
PHP 解析錯誤: 語法錯誤,在 /home/cellphon/public_html/includes/vbenterprisetranslator_functions_hooks.php 線 937 意外的 $結束
我很確信所有適當的} 和 ;有嗎。它現在看起來像這樣:
if ($redirectLanguage) {
require_once(DIR. '/includes/vbenterprisetranslator_functions_redirect_utils.php');
require_once(DIR. '/includes/vbenterprisetranslator_functions_url.php');
vbet_doRedirect(vbet_createURL($redirectLanguage), false, false);
}
r.dziadusz
12-11-11, 10:36
請您我行 937 的表演,還請注意這種 PHP 解析錯誤通常出現在論壇期間更改檔時上。
如果錯誤仍然存在,或者顯示只有幾次中更改檔的時間,請記住該伺服器的時間可比你不同,那麼請檢查
r.dziadusz
26-11-11, 11:44
沒有答案,考慮解決它,如果你仍要我將標記此執行緒打開再次,其他任何有關此問題問的任何問題,請打開新的執行緒
Automatic Translations (Powered by Google, Microsoft®,
Yandex, SDL Language Cloud, IBM Watson and Apertium):
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.