ecshop驗證碼無法顯示

來源:互聯網
上載者:User

標籤:驗證碼   includes   ftp   

  1. 問題一、後台顯示,前台不顯示(會員登陸不顯示):

    解決方案:用ftp工具串連空間,找到includes/init.php檔案在第300行,屏蔽以下代碼,/* 判斷是否支援 Gzip 模式 */



    1if (!defined(‘INIT_NO_SMARTY’) && gzip_enabled()){



    2ob_start(‘ob_gzhandler’);



    3}else{



    4ob_start();



    5}



    650) this.width=650;" class="exp-image-default" alt="Ecshop幾種驗證碼不顯示的原因分析及解決方案" src="http://f.hiphotos.baidu.com/exp/w=500/sign=1631d38f6ad9f2d3201124ef99ed8a53/eaf81a4c510fd9f9baefb9072d2dd42a2934a4e0.jpg" style="border:0px;" />

  2. 問題二、由於php中的path問題,沒有./的當前路徑導致圖片不顯示解決方案:用ftp串連空間,找到根目錄下的captcha.php檔案,把以下代碼:


    1$img = new captcha(‘data/captcha/‘, $_CFG[‘captcha_width‘], $_CFG[‘captcha_height‘]);


    改成:


    1$img = new captcha(ROOT_PATH . ‘data/captcha/‘, $_CFG[‘captcha_width‘], $_CFG[‘captcha_height‘]);


    650) this.width=650;" class="exp-image-default" alt="Ecshop幾種驗證碼不顯示的原因分析及解決方案" src="http://e.hiphotos.baidu.com/exp/w=500/sign=48a3f16a3c9b033b2c88fcda25cf3620/8c1001e93901213f2487a2b25ce736d12f2e952c.jpg" style="border:0px;" />

  3. 問題三、檔案編碼格式bom頭問題解決方案:找到報錯的對應檔案,用ftp工具下載到本地,用文字編輯器(editplus)開啟,另存新檔utf-8無bom模式。發生這樣的情況多數為直接用記事本開啟,建議用專業的代碼編輯器開啟,編輯。

    650) this.width=650;" class="exp-image-default" alt="Ecshop幾種驗證碼不顯示的原因分析及解決方案" src="http://h.hiphotos.baidu.com/exp/w=500/sign=361090d4d8a20cf44690fedf46084b0c/3b292df5e0fe9925d3a37e033ca85edf8db17131.jpg" style="border:0px;" />

  4. 4

    2、找到網站根目錄開啟 /themes/default/library/comments_list.lbi 修改以下代碼:<!– 判斷是否啟用驗證碼{if $enabled_captcha} –>修改為:<!– 判斷是否啟用驗證碼{if $enabled_captcha_comments} –>

    以上就是ecshop驗證碼不顯示的幾種小編接觸到的解決方案,希望對大家有所協助。

    650) this.width=650;" class="exp-image-default" alt="Ecshop幾種驗證碼不顯示的原因分析及解決方案" src="http://e.hiphotos.baidu.com/exp/w=500/sign=48a0f16a3c9b033b2c88fcda25cf3620/8c1001e93901213f2484a2b25ce736d12f2e952d.jpg" style="border:0px;" />



ecshop驗證碼無法顯示

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.