Problem with config.php file
-
Parse error: syntax error, unexpected $end home/******/public_html/wp-config.php on line 2
I recently moved a client’s site to a new hosting provider because the previous provider did not support php version 5
This morning I was updating his plugins and received this message-
define(‘WP_CACHE’, true); //Added by WP-Cache Manager
at the top of my screen. Further messages suggested that I move this line of code to a position above the following line of code
*/require_once(ABSPATH . ‘wp-settings.php’);
When I downloaded the config.php file I saw that the intial line of code was indeed above the second line anyway.
This is what the opening lines of the file look like
“
define(‘WP_CACHE’, true); //Added by WP-Cache Manager
<?php/** * The base configurations of the WordPress. * * This file has the following configurations: MySQL settings, Table Prefix …”Apart from the first line all the other code is on the same line. I now only have the above error report when trying to view the client’s site- I only have access via ftp.
I’m not trained in using code so learn by trial and error and the goodwill of friends and people on these forums-
Please help me to rectify the issue with the config.php file,
thanks,
Phil
The topic ‘Problem with config.php file’ is closed to new replies.