开发者

wordpress (301 redirect plugin)/ php question

I am setting up a website in wordpress. the site was done by someone else. After setting up the site / database I get the following error:

Parse error: syntax error, unexpected $end in C:\Documents and Settings\user101\
Desktop\wordpress\wp-content\plugins\wp-301redirect\wp-301redirect.php on 
line 320

line 320 is the very last line of wp-301redirect.php page. I looked up what 301redirect is and it is apparently a开发者_如何学运维 plugin. The wp-301redirect.php page I have is exactly what the plugin provides (zip download). line by line.

Does anyone know what might be causing this.?


In the default file for this plugin. line 220 has <? it should be changed to <?php to fix this error


Try removing the last line after ?>. And generally it's advisable to not close your PHP with ?> as it's not required and prevents this from happening in the first place.


Most likely, a function or control block is missing its matching end-brace, such as:

function foo() {
  //stuff
  ...

// EOF

OR

if (true) {
  ...

// EOF
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜