Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
如何解決網站出現 allowed memory size of …..的錯誤狀況 – unethost無限空間虛擬主機 技術分享部落格

如何解決網站出現 allowed memory size of …..的錯誤狀況

memory_wp

安裝的套裝程式,比方說 wordpress ,drupal , joomla ……等等,
偶爾都會出現 allowed memory size of …… 這個錯誤訊息;查看網路上的教學,
不外是得要修改程式去增加 memory limit 的上限,但經我們實測,只修改程式,
不見得能解決這個問題,得要透過直接修改 php.ini 。

但是一般的虛擬主機,並不允許去修改 php.ini,就算連絡主機商,他們也不一定同意協助去改,但這個部份在使用無限網頁虛擬主機,可以快速的解決這個問題,還能夠自己隨意修改增設大小,請詳見我們下列解說:

  1. 登入cpanel -> 操作調整 php版本功能(這部份的教學,請點我)。
    切到 Switch To PHP Settings。memory01
  2. 找到 memory_limit 。
    memory02 
  3. 並增設其大小。
    memory03
  4. 存檔後就生效了。
    memory04

這樣就可以跟討人厭的 allowed memory size 分手了。
隨著大家插件裝的越多,或是版模太肥的網站,更需要將memory調高些,
才不會一直發生瀏覽撞牆的狀況。

 

(本篇文章由unethost.com客服人員-Michael完成)

註冊網域請點我。我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。