解決amfphp出現Fatal error: Uncaught VerboseException錯誤

amfphp是flash和php兩種語言相互連結溝通的橋梁,但是他已經好幾年沒有在更新了,可是現在還有有許多人在使用著他。

但是最近使用發現如果伺服器PHP使用的版本高於5.3.0版本,開啟gateway.php時將會出現以下的錯誤訊息,導致AMFPHP網站程式無法正常使用。

錯誤訊息如下:

Fatal error: Uncaught VerboseException: Non-static method CharsetHandler::setMethod() should not be called statically in /www/amfphp/core/amf/app/Gateway.php:134 Stack trace: #0 /www/amfphp/core/amf/app/Gateway.php(134): amfErrorHandler(8192, ‘Non-static meth…’, ‘/www/…’, 134, Array) #1 /www/amfphp/gateway.php(152): Gateway->service() #2 {main} thrown in /www/amfphp/core/amf/app/Gateway.php on line 134

解決方法:

1.

開啟 amfphp 目錄下的 gateway.php

2.

搜尋以下程式碼

3.

將搜尋到的程式碼修改為以下程式碼

4.

之後儲存,再次開啟 gateway.php ,你將會看到以下訊息,就代表出現 Fatal error: Uncaught VerboseException: Non-static method CharsetHandler::setMethod() 這段錯誤訊息解決了!

amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash.

Note: If you’re reading an old tutorial, it will tell you that you should see a download window instead of this message. This confused people so this is the new behaviour starting from amfphp 1.2.

View the amfphp documentation

Load the service browser

最後,amfphp的官網已經關站了,這邊提供另一個可以下載amfphp的網站

點我立即前往

相關文章
  • 解決PHP探針無法顯示即時數據問題
  • PHP 8 undefined function finfo_open()錯誤修正
  • WordPress啟用Redis快取無法登入問題解決方法
  • Nginx Location設定測試工具
  • WordPress部落格網站PHP代碼調用資訊
  • PHP-FPM設定參數最佳化
  •  文章詳細資訊 

     發表留言 

    發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

    *


     分享 


     版權所有 © 2015 - 2024 KJ資訊站,All Rights Reserved.