• Resolved MegWi

    (@megwi)


    Hello,

    I am trying to get wordpress up and running for the first time, and I’ve followed the instructions sent to me by 1and1, my hosting company, and when I get to the point that I should be able to “create a configuration file”, I get this error message:

    Parse error: syntax error, unexpected T_VARIABLE in /homepages/10/d333407482/htdocs/blog Meg Wilson Photography/wp-includes/option.php on line 225

    Thanks for help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sama error:
    Parse error: syntax error, unexpected T_VARIABLE in /home/content/t/e/m/temima/html/wordpress/wp-includes/option.php on line 225

    I followed the directions exactly from WordPress’s Installation guide. I also tried the setup config option and got this one:
    Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /home/content/t/e/m/temima/html/wordpress/wp-admin/setup-config.php on line 220

    I tried installing it through godaddy (that’s my host server) and it says I can’t because I’m currently using PHP 4.x and WordPress requires PHP 5.1 or 5.3
    it takes a while to update it would seem, so I will get back to you if that helps me. You could try it in the meantime too.

    Thread Starter MegWi

    (@megwi)

    Richard- thank you for the link. I don’t think that my issue was addressed, because I am not trying a new plugin, I am just trying to upload for the first time.

    Any pointers? Or am I reading it wrong and assuming it means a new plugin?

    Thread Starter MegWi

    (@megwi)

    Thank you eschwartz, I tried first installing it through my host. I am now going to try following WordPress’ installation guide. 😉

    [ Please do not bump, it’s not permitted here. ]

    Thread Starter MegWi

    (@megwi)

    Resolved thanks to esmi. Here is the answer from another thread, in case anyone runs across this:

    “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.”

    Just curious. I have never worked with the .htaccess file. Does it go in the root of the word press files? (i.e. for me www\blog\.htaccess or at www\.htaccess)

    I have tried both locations but to no avail. I am still getting the error. I have a ticket in to my provider to confirm the PHP version, but I know they use 5.x.

    Should I open a new thread?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘first time uploading- Parse error: syntax error, unexpected T_VARIABLE’ is closed to new replies.