Support » Fixing WordPress » Parse Error

  • Resolved partnerwithus


    Too of the day to you, excellent people.
    I tried logging in via wp-admin but found this feedback below:

    Parse error: syntax error, unexpected ‘[‘ in /home/www/ on line 1277

    The last I remember was I updated some plugins.
    Please I need help urgently.Please come to my rescue.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The line causing the error says
    return ["Spacing","HTMLCustomized","HTMLH","HTMLP","HTML","RichText"];

    This short array syntax was introduced in PHP 5.4, so my guess is that your are using a version prior to that. Contact your host, and ask them to upgrade you to PHP 5.6 or even PHP 7.0

    Thread Starter partnerwithus


    Thanks Peterspliid for your prompt response. By host, did you mean WordPress or the hosting partner?

    If it is WordPress, I can’t even login to my WordPress back office ; I mean wp-admin.

    Any way out you know?

    I mean your ‘hosting parnter’. The people who own the server you are using. If you are using the company LiquidNet Hosting, you should contact them.

    Thread Starter partnerwithus


    Thanks, Peterspliid. You are life saver.It worked! I did the upgrade to php 7.1.

    Please I need your contact.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse Error’ is closed to new replies.