• Hello,

    I have recently installed a new theme “Moesia” on my wordpress page; http://www.strikaholic.dk

    I tried to make some changes and EVERY UNFORTUNATELY I get this message:

    Parse error: syntax error, unexpected ‘<‘ in /home/www/strikaholic.dk/wp-content/themes/moesia-pro/functions.php on line 9

    And I can NOT even LOGIN to my site at the moment.

    What can I do to get my website back?

    Can anybody please help 🙂

    BR
    Dorte Niedziella

Viewing 8 replies - 1 through 8 (of 8 total)
  • jack randall

    (@theotherlebowski)

    if you have access to your hosting cpanel go there and navigate to the file mentioned in the error message and remove the unexpected < from that file at that location.

    Thread Starter Niedziella

    (@niedziella)

    Thank you very much! I will try that.

    Br
    Dorte

    Thread Starter Niedziella

    (@niedziella)

    I can not login and get access to the cpanel. Is there something else to do?

    Br
    Dorte

    jack randall

    (@theotherlebowski)

    you should be fine doing that. when you’re editing files like functions.php pay very close attention to your syntax and make sure you’re closing brackets etc. this is especially true if you’re copying it from a website and pasting it straight in, some font’s don’t cross over to plain text very well so you can get odd ‘ ‘ and ” ” bits.

    jack randall

    (@theotherlebowski)

    you can try doing it using an ftp program like filezilla.

    make your way to that file and download it, edit it and upload it and overwrite the version that’s currently there. you’ll need your hosting login information to do this, the same stuff to get to the cpanel.

    Thread Starter Niedziella

    (@niedziella)

    ok will try, thank you!

    Until you get the hang of writing PHP, run your edited code through a syntax checker: There are several about, such as this one:
    http://phpcodechecker.com/
    Once the code is good, paste it into functions.php.

    Thread Starter Niedziella

    (@niedziella)

    Thank you. I got help from a much more experienced web designer than me, at the problem is solved 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Parse error, syntax error’ is closed to new replies.