WordPress.org

Forums

[resolved] Can Anyone Help?? - Parse error: syntax error. (18 posts)

  1. Cormie Design
    Member
    Posted 3 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

  3. Cormie Design
    Member
    Posted 3 years ago #

    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?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

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

  5. Cormie Design
    Member
    Posted 3 years ago #

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

  6. esmi
    Forum Moderator
    Posted 3 years ago #

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

  7. Cormie Design
    Member
    Posted 3 years ago #

    yea

  8. esmi
    Forum Moderator
    Posted 3 years ago #

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

  9. Cormie Design
    Member
    Posted 3 years ago #

    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

    ??

  10. esmi
    Forum Moderator
    Posted 3 years ago #

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

  11. esmi
    Forum Moderator
    Posted 3 years ago #

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

  12. Cormie Design
    Member
    Posted 3 years ago #

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

  13. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  14. Cormie Design
    Member
    Posted 3 years ago #

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

  15. esmi
    Forum Moderator
    Posted 3 years ago #

    Excellent! Glad we were able to find a fix for this. :-)

  16. benhunt
    Member
    Posted 3 years ago #

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

  17. MegWi
    Member
    Posted 3 years ago #

    I am having this same problem! I am a beginner at this, so if I could ask for clarification:

    do you mean create a file in a text program with the contents 'AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php', title it ".htaccess", and upload it via FTP into the root directory of my webspace?

    I tried that... and it's not working yet. I also have 1and1, and am trying to create a WP blog for the first time.

  18. MegWi
    Member
    Posted 3 years ago #

    Oh! Got help and got it figured out- my text program had saved it as a rtf.

    You solved my problem! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags