2012-05-14 34 views
1

我希望有人可能會遇到這個問題。我通過谷歌搜索有關這一點,我發現了幾個選項如何解決。但沒有幫助我。所以我張貼在這裏。Amphphp錯誤與新的PHP版本

在我之前的服務器中,我們使用的是PHP的fedora 5.2.5版本。但在我當前的服務器中,我們使用的是REDHAT和PHP 5.3,amfphp版本爲1.4。舊版本中我們沒有收到任何問題。我收到以下錯誤。

(mx.rpc::Fault)#0 
errorID = 0 
faultCode = "Client.Error.MessageSend" 
faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: " 
faultString = "Send failed" 
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.BadVersion: '" 
name = "Error" 
rootCause = (Object)#1 
code = "NetConnection.Call.BadVersion" 
description = "" 
details = "" 
level = "error" 

你對我this.How可以解決這個問題issue.Please讓我知道如果你對此任何想法任何想法。

參考網站我也跟着: 1)http://sourceforge.net/projects/amfphp/forums/forum/247252/topic/3941969 2)http://www.gotoandlearnforum.com/viewtopic.php?t=20525

+0

我可以確認amfphp 1.4確實可以在PHP 5.3中使用。一切都不會丟失! :)不知道什麼會導致一個sendfail,但離開蝙蝠我會比較從5.2.5插件和5.3插件的筆記,看看是否有任何模塊被遺忘。 –

+0

@ MattH.Yes.I現在也開始使用這個新版本了。很少有人認爲我在amfphp中做過,我把下面的細節作爲我的答案。所以它會幫助一些人。 – svk

+0

對我來說''NetConnection.Call.BadVersion'主要是由於某些數據庫查詢錯誤而發生的,但我強烈認爲它是由於php致命錯誤而引發的 – Junaid

回答

2

感謝大家這些被視爲我的問題answer.Now我固定的問題上發揮與查爾斯工具點點後this鏈接說明誰。

錯誤1:

請告訴我我得到的問題,是解釋this鏈接即

t is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. 

所以放線

date_default_timezone_set("America/New_York"); 

在gateway.php

另外我添加了行

error_reporting(0); below $gateway->setErrorHandling(E_ALL^E_NOTICE); 

因爲我們在live.But不知道它會有幫助與否。如果我錯了,請告訴我。

錯誤2:

第二個我的問題this link.ie

function eregi_replace is depreciated. 

所以我跟他們在上面貼的解決方案link.replaced的AMFPHP解釋/核心/共享/ util/MethodTable.php文件與上述鏈接中的建議。

希望這對一些人有幫助。 :)