• Resolved Music5072

    (@music5072)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try looking at the line preceding line 62.

    Thread Starter Music5072

    (@music5072)

    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.

    Thread Starter Music5072

    (@music5072)

    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

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

    Jean Ranger

    (@jean-ranger)

    My question is WHERE is this .htaccess file??

    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?

    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 ??

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Upgrade Error with wp-config’ is closed to new replies.