WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Upgrade Error with wp-config (8 posts)

  1. Music5072
    Member
    Posted 2 years ago #

    I was moving smoothly through the manual upgrade steps but got stuck with the following error on my site:

    Parse error: syntax error, unexpected T_VARIABLE in /homepages/24/d150311993/htdocs/wp-config.php on line 62

    Line 62 correlates to:

    $table_prefix = 'wp_';

    My table prefix as seen in myphpadmin are indeed wp_ so I'm not sure of the problem. I also triple checked the db information within wp-config and it matches. As well as deleting and updating files again per the manual upgrade instructions.

    I did have to create a new DB to get to the required MySQL 5.0. I'm hosting at 1and1 and had a MySQL 4.0 DB. Not sure what version of php they have or how to tell this with 1and1.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try looking at the line preceding line 62.

  3. Music5072
    Member
    Posted 2 years ago #

    I was missing a semicolon at the end of:

    define('NONCE_SALT', 'put your unique phrase here');

    So now I get the message:

    Your server is running PHP version 4.4.9 but WordPress 3.3.1 requires at least 5.2.4.

    Hosting with 1and1 on a MySQL 5.0 db.

  4. Music5072
    Member
    Posted 2 years ago #

    The issue with the message:

    Your server is running PHP version 4.4.9 but WordPress 3.3.1 requires at least 5.2.4.

    can be solved by adding two lines of code to .htaccess file:

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

    per this post

    http://gabediaz.com/blog/running-php-5-for-wordpress-with-11-hosting/

  5. Jean Ranger
    Member
    Posted 2 years ago #

    My question is WHERE is this .htaccess file??

  6. rxl123
    Member
    Posted 2 years ago #

    Hi,

    I too have the same error from 1and1. I also have no idea what / where the .htaccess file is. I've scanned the file list and can't see anything called that. Where is?

  7. rxl123
    Member
    Posted 2 years ago #

    Actually there is a mch easier way I've just discovered. In the 1and1 control panel there is a "global PHP Version" link.

    Choose this and there is a drop down that chooses php4, php5 or php dev. Change it to php5. Simple as that.

    Couldn't see for looking :-(

  8. harryleit
    Member
    Posted 2 years ago #

    THANK YOU rxl123, I DID AS YOU SAY AND IT WORKS. DEAD SIMPLE. FOR THOSE THAT ARE TRYING, YOU MUST GIVE IT A COUPLE OF MINUTES TO TAKE EFFECT FROM PHP4 TO PHP5

Topic Closed

This topic has been closed to new replies.

About this Topic