1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress theme showing syntax error

Discussion in 'Blogging' started by Asgard, Aug 7, 2010.

  1. Asgard

    Asgard Newbie

    Joined:
    Nov 20, 2007
    Messages:
    28
    Likes Received:
    24
    Location:
    England
    Any of you guys good at PHP?

    I've just installed a free blog theme and it's giving me an error in the functions.php

    This is what it says when I try to activate or even preview the theme:

    Parse error: syntax error, unexpected '{' in xxxxxx/functions.php on line 247

    So I took the curly bracket out, but then it said there was a T-STRING error.

    It's really ticking me off as after all the premium ones I downloaded I found a free one I really liked and the code seems crocked. :rolleyes:

    Here's the code on 247:

    PHP:
    vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));?>
    Can anyone spot the problem? I took out one of the other curly brackets (from the double pair near the end) but that made no difference either.

    Thanx for any help.
     
  2. Asgard

    Asgard Newbie

    Joined:
    Nov 20, 2007
    Messages:
    28
    Likes Received:
    24
    Location:
    England
    Never mind, I got it working. No idea how though!

    Mods can you delete this thread please?