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

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/feed-rss2.php on line 8
allowed memory size of – unethost無限空間虛擬主機 技術分享部落格 https://blog.unethost.com unethost 專注於提供優質的虛擬主機服務及相關問題解答 Thu, 15 Oct 2015 06:17:01 +0000 zh-TW hourly 1 https://wordpress.org/?v=6.0.8 如何解決網站出現 allowed memory size of …..的錯誤狀況 https://blog.unethost.com/how_to_fix_allowed_memory_size_issue_at_unethost/ Thu, 15 Oct 2015 06:15:11 +0000 http://blog.unethost.com/?p=1783 閱讀全文 如何解決網站出現 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完成)

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

]]>