新聞中心
WordPress網(wǎng)站搬家后前臺(tái)報(bào)警告: No such file or directory in···
之前小編收到一個(gè)客戶的售后工單,是幫客戶做一個(gè)網(wǎng)站的遷移搬家。小編進(jìn)入空間,原來(lái)是用wordpress做的一個(gè)網(wǎng)站。在無(wú)憂主機(jī)php空間的控制面板中有個(gè)站點(diǎn)備份,可以對(duì)網(wǎng)站進(jìn)行一鍵備份,包括了網(wǎng)站文件和數(shù)據(jù)庫(kù)數(shù)據(jù),非常簡(jiǎn)單實(shí)用的功能,省去了很多操作上的麻煩,比傳統(tǒng)的導(dǎo)文件和再導(dǎo)入數(shù)據(jù)庫(kù)簡(jiǎn)單多了。 搬完站點(diǎn)之后小編對(duì)網(wǎng)站進(jìn)行訪問(wèn),結(jié)果出現(xiàn)四個(gè)警告。如下: Warning: include(/home/uh5ejwnuhj/domains/linkhearts.com/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/qk182w5z2a/domains/linkhearts.com/public/wp-content/plugins/wp-super-cache/wp-cache-base.php in line 11 Warning: include(/home/uh5ejwnuhj/domains/linkhearts.com/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/qk182w5z2a/domains/linkhearts.com/public/wp-content/plugins/wp-super-cache/wp-cache-base.php in line 55 Warning: include(/home/uh5ejwnuhj/domains/linkhearts.com/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/qk182w5z2a/domains/linkhearts.com/public/wp-content/plugins/wp-super-cache/wp-cache-base.php in line 120 大概的格式是: Warning: include(文件路徑)[function.include]: failed to open stream: No such file or directory in 文件路徑 in line X。 意思是說(shuō):警告:打開某個(gè)文件失敗,沒有這個(gè)文件。 仔細(xì)查看了警告內(nèi)容,小編發(fā)現(xiàn)是一個(gè)插件的緩存文件導(dǎo)致發(fā)生這樣的問(wèn)題。 那要如果解決呢? 緩存問(wèn)題其實(shí)很多網(wǎng)站都會(huì)遇到呢。登錄空間,把wp-super-cache刪除就可以了,然后刷新下,網(wǎng)站就能正常訪問(wèn)了。當(dāng)然小編不是很建議這樣直接刪除文件,在很多新站長(zhǎng)不了的情況下很容易刪錯(cuò)文件,所以大家可以對(duì)文件重命名,在確定網(wǎng)站沒有問(wèn)題后在刪除,問(wèn)題看起來(lái)很復(fù)雜,其實(shí)很簡(jiǎn)單的方法就可以解決了。 無(wú)憂主機(jī)相關(guān)文章推薦閱讀: WORDPRESS 3.5如何快速添加友情鏈接 WORDPRESS文章發(fā)布提示用戶選擇分類 WORDPRESS程序如何快捷去除后臺(tái)標(biāo)題的-WORDPRESS字樣
本文地址:http://www.gle-technology.com/wordpress/19859.html