• Resolved Kashif456

    (@kashif456)


    I just tried installing WP with my own hosting and I am getting this error:

    Parse error: syntax error, unexpected T_VARIABLE in /homepages/44/d175365316/htdocs/KashIndustries/wp-includes/option.php on line 225

    First time with the install, any help is appreciated.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Try re-uploading all files & folders from a fresh download of WordPress.

    Thread Starter Kashif456

    (@kashif456)

    I tried again but same error. I am not exactly sure what’s going on. I even tried with another version 3.4.1 to 3.4.0 and I am seeing the same issue.

    Any thoughts?

    Please try another re-upload.

    Thread Starter Kashif456

    (@kashif456)

    I tried again and here’s the error: Parse error: syntax error, unexpected T_VARIABLE in /homepages/44/d175365316/htdocs/KashIndustries/wp-includes/option.php on line 225

    Can you please explain what’s going on?

    I’m sorry but it looks like you aren’t uploading all of the necessary files.

    Thread Starter Kashif456

    (@kashif456)

    I have checked all the files and it does look like all the files are there.

    Try re-downloading a copy of WordPress, extracting the wp-includes/option.php file and uploading that to the wp-includes folder.

    Thread Starter Kashif456

    (@kashif456)

    This is really frustrating. I have tried doing this again and also tried uploading the file independently and it failed.

    Let’s try another approach – try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – running the upgrade manually via wp-admin/upgrade.php

    I’m having the exact same problem/error with the option.php. I’ve tried several fresh uploads.

    OK, maybe this will help. I went all the way back to version 3.1 and did a manual install. It worked. When I tried to upgrade, I got this message:

    You cannot update because WordPress 3.4.1 requires PHP version 5.2.4 or higher. You are running version 4.4.9.

    So it looks like because the hosting provider is not up to date, it was causing this error.
    Kashif456, you might want to check if you have a similar situation.

    Hope this was helpful.

    Thread Starter Kashif456

    (@kashif456)

    Thanks for looking into this for me and commenting. I talked to my hosting company and they helped me figure this out. My hosting company does support php 5.2.4 with the linux package however it required me to do the following:

    Please create a .htaccess file or edit if you already have one by adding the following code:

    AddHandler x-mapp-php5 .php

    A .htaccess with only this inside :
    SetEnv PHP_VER 5
    And it solved the problem

    Mettre un fichier .htaccess à la racine, avec seulement ceci à l’intérieur :
    SetEnv PHP_VER 5
    Et hop, problème résolu !

    I had the exact same problem with 1&1 and by just making sure php version was set to 5, it solves the problem immediatly!

    I also use 1&1 ( 1and1 ) and had to set the “global php version” to 5 in the control panel. It worked like a charm after that.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Getting Parse error: syntax error, unexpected T_VARIABLE’ is closed to new replies.