Music5072
Member
Posted 4 months 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.
Try looking at the line preceding line 62.
Music5072
Member
Posted 4 months 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.
Music5072
Member
Posted 4 months 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/
Jean Ranger
Member
Posted 3 months ago #
My question is WHERE is this .htaccess file??
rxl123
Member
Posted 2 months 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?
rxl123
Member
Posted 2 months 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 :-(
harryleit
Member
Posted 2 months 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