Support » Installing WordPress » Can Anyone Help?? – Parse error: syntax error.

  • Resolved Cormie Design

    (@cormie-design)


    Im trying to create a website using WordPress, i have done a few before and don’t think i’ve done anything different but when i try to access the wp-admin/install.php it keeps showing me this message –

    Parse error: syntax error, unexpected T_VARIABLE in /homepages/40/d333408217/htdocs/legenderry/wp-includes/option.php on line 225

    Does anyone know what the problem is???

    Thanks.

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    (@esmi)

    Forum Moderator

    Try re-uploading all files & folders from a fresh download of WordPress.

    Cormie Design

    (@cormie-design)

    Just tried that there and its still showing the same message. Would it have anything to do with the SQL database information i am adding to the wp-cinfig.php file?

    esmi

    (@esmi)

    Forum Moderator

    Try deleting the wp-config.php file and allowing WP to create it as part of the install process.

    Cormie Design

    (@cormie-design)

    Naw, still showing the error after i deleted the wp-config.php file?????

    esmi

    (@esmi)

    Forum Moderator

    Did you re-upload using a fresh download of WordPress?

    Cormie Design

    (@cormie-design)

    yea

    esmi

    (@esmi)

    Forum Moderator

    Can you try another download and re-upload? We need to rule out the possibility that you have two corrupted downloads.

    Cormie Design

    (@cormie-design)

    Just completed the fresh download and re-install and its still showing the same error message:

    Parse error: syntax error, unexpected T_VARIABLE in /homepages/40/d333408217/htdocs/legenderry/wp-includes/option.php on line 225

    ??

    esmi

    (@esmi)

    Forum Moderator

    OK – bear with me. I’m going to see if I can get some more eyes on this one.

    esmi

    (@esmi)

    Forum Moderator

    What hosting company and package are you using? Do you know what version of PHP your hosts are running?

    Cormie Design

    (@cormie-design)

    Im using 1 and 1 hosting, unfortunately i don’t know about the PHP.

    esmi

    (@esmi)

    Forum Moderator

    Haha! We have found a culprit thanks to some other gifted forum volunteers. There is indeed a bug in 3.4 that is only triggered on hosting that runs PHP 4 and PHP 5. That’s certainly the case with 1&1. The gory details are available at http://core.trac.wordpress.org/ticket/21316 if anyone is interested.

    In shirt, we think that WP is trying to use PHP 4 and then erroring out when it should – instead – be generating a message along the lines of “You need PHP 5.2.4 to run WordPress”. Since you’re using 1&1, there may be a way around this. Try adding

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    an .htaccess file on your domain’s root folder. That should force PHP5, if I remember correctly.

    Cormie Design

    (@cormie-design)

    Happy days, thats it sorted now, thank you very much for the help Esmi
    🙂

    esmi

    (@esmi)

    Forum Moderator

    Excellent! Glad we were able to find a fix for this. 🙂

    benhunt

    (@benhunt)

    Brilliant, you just fixed my problem too. Thank you so much!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can Anyone Help?? – Parse error: syntax error.’ is closed to new replies.