Wordpress “preg_match no ending delimiter” error fix在WordPress “ preg_match沒有結束定界符”錯誤修復
612 views - 612的意見-作Posted in: 張貼在:
612 views 612的意見
Please note: This page was originally written in English.請注意:此頁中,原本以英文書寫。
The original post can be viewed原來的文章可以看 here這裡 . 。
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
I was receiving the following error on one of my Wordpress sites for the last 6 months:我是收到以下錯誤之一,我在WordPress地點,以供最近6個月內:
Warning: preg_match(): No ending delimiter ‘!’ found in /home/jtpratt/site/wp-includes/classes.php on line 99警告: preg_match ( ) :沒有結束定界符' ! '發現在/ home / jtpratt /網站/可濕性粉劑-包括/ classes.php上線99
I decided to write this quick post because I haven’t been able to find a fix for it for at least 6 months on one of my Wordpress blogs, and it just started happenning on another last week.我決定寫這個快速職位,因為我仍未能找到一個修復它在至少6個月對我的一個WordPress Blogs的,它剛剛開始happenning對另一個上星期。 This is what happens:這是發生什麼事:

As you can see in the picture above the same 8 lines are added to the top of your blog (homepage only).你可以在圖片中看到的上述相同的8線都被添加到頂部的您的博客(網頁只) 。 This has to be the craziest error I’ve ever had to debug because I tried updating Wordpress, going to the default theme, disabling all plugins - and not one of those things made the error go away.這必須是最瘋狂的錯誤,我已經過調試,因為我曾嘗試更新的WordPress ,去預設主題,停用所有插件-而不是之一,這些事情作出錯誤消失。 I even posted in multiple forums and nobody had a clue….until today.我什至張貼在多個論壇中,沒有人了線索… … 。直到今天。
I我 found this post發現這個職位 which pointed me in the right direction, and for that person the “Photopress” plugin was the issue (or so he thought).其中指出,我在正確的方向,並讓該人“ photopress ”插件是問題(或使他以為) 。 He fixed the issue with some code, but I think his problem was他固定的問題,與一些代碼,但我認為他的問題是, moving web hosts and permalinks移動網絡的主機和永久性 . 。 I moved my smorgasbord.net site last week from goDaddy to Hostgator, and a few days back I noticed the error.我提出我的smorgasbord.net網站上週從godaddy ,以hostgator ,幾天回我注意到這個錯誤。 Going with the first forum link I gave you - I disabled Photopress (it was already the current version).去與第一次論壇的鏈接我給你-我殘疾人p hotopress(它已經是目前的版本) 。 That didn’t help at all.認為沒有幫助。 Then I just “updated” permalinks (just clicked the button, made no changes), and the error instantly went away.然後,我只是“更新”永久(剛才點擊的按鈕,沒有變化) ,錯誤即刻前往距離。
So, figuring I could do the same on my site that has had this problem for at least 6 months - I updated the permalinks there too.因此,估算我可以做同樣的在我的網站上,已為這個問題,至少6個月-我更新的永久性也有。 Guess what - it didn’t work!猜是什麼-它沒有工作! Doh!衛生署! So I disabled Photopress, and STILL it didn’t go away!所以我殘疾人photopress ,仍然沒有消失! Then I went into the options of the Photopress plugin and this is what I saw:然後我走進選項的photopress插件,這是我所看到的:

I couldn’t believe it, for some reason the photopress options had been corrupted.我簡直無法相信它,因為某種原因photopress選項已被損壞。 And then it hit me…I moved THIS site from another host about 6 months ago!然後,它打我… …我提出的這個網站從另一個東道國約6個月前! The path to photopress and other options had changed.路徑photopress和其他選項已經發生了變化。 Somehow all the fields changed the weird question mark symbol you see in this pic.或多或少的所有領域,改變了怪異的問號的象徵,您會看到在這方面的事先知情同意。 So I updated all the options, saved, and then updated permalinks again - and the ERROR WENT AWAY!!所以我更新的所有選項,保存,然後再次更新永久性-和錯誤到遠離! Yayyy! yayyy !
I hopes this gets indexed well in google, for all the people in the future who have this Wordpress error - I hope you find this post to answer your question sooner than I did! i希望這個索引,以及在Google ,所有的人在未來的誰有這樣的WordPress錯誤-我希望你找到這個職位來回答你的問題遲早比我! And to all of you reading this that have had a hard time finding answers to something - please, when you find a fix, BLOG about it so it’s easier to find for the next person!和所有你讀這一點,已很難找到答案的東西-請您,當您找到修復,博客約,它因此它更容易找到為下一人!
Tags:標籤: error錯誤 , , fix固定 , , wordpress-hacks在WordPress -駭客



























April 26th, 2008 at 10:19 am 2008年4月26日在上午10時19分
Very interesting.很有趣。
I’m curious JT,我很好奇,日本煙草公司,
Would you advise WordPress useres who are going to move host to export all data with WordPress export and then do a clean install at the new host, setup permalinks and all the plugins etc. .你會提供意見的WordPress useres誰是即將提出的東道國出口的所有數據與在WordPress出口,然後做了清潔安裝在新的主機,安裝永久性和所有插件等。 . 。 then do an import?然後做一進口?
Do you think following those steps would keep this issue from happening?你認為以下這些步驟將繼續在這個問題發生?
I guess I’ma little curious about how you moved your site that ended up with this whole problem in the first place我猜我一點好奇,您如何提出您的網站上結束了與這整個問題擺在首位
Thx thx
C c
Acupunctures last blog post.. acupunctures最後的博客帖子.. Acupuncture in Colorado - Politics針灸在科羅拉多州-政治
April 28th, 2008 at 12:22 pm 2008年4月28日在下午12時22分
My method to moving to a new web host is a little different.我的方法,以移動到一個新的Web主機是一個有點不同。 Since you and another mentioned it, of course I’ll write up another article describing exactly how to get ‘er done!既然你和另一提到它,我當然會寫了另一篇文章描述,正是如何讓'呃做!