Different install error. Parse error: parse error, unexpected T_STRING in /home/
-
I get this error when trying to view my INSTALL.PHP file through the address bar. It is different to the error messages I’ve received before:
Parse error: parse error, unexpected T_STRING in /home/jessmina/public_html/words/wp-config.php on line 4
The text of my WP-CONFIG file is as follows (jessmina_ due to server default prefixing):
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘jessmina_wordpress); // The name of the database
define(‘DB_USER’, ‘jessmina_jess’); // Your MySQL username
define(‘DB_PASSWORD’, ‘mypassword’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);/* Stop editing */
define(‘ABSPATH’, dirname(__FILE__).’/’);
require_once(ABSPATH.’wp-settings.php’);
?>I’m also continuing to get the same error messages when viewing INSTALL.PHP through my FTP program:
install.php
File Type: PHP script textwp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.”);
require_once(‘../wp-config.php’);
require_once(‘./upgrade-functions.php’);$guessurl = str_replace(‘/wp-admin/install.php?step=2’, ”, ‘https://’ . $_SERVER[‘HTTP_HOST’] . dirname($_SERVER[‘PHP_SELF’]) );
if (isset($_GET[‘step’]))
$step = $_GET[‘step’];
else
$step = 0;
header( ‘Content-Type: text/html; charset=utf-8’ );
?>…plus more garble. I tried deleting my database, my username and all the wordpress folders/files from the server, then recreating a database with a different name and then changing WP-CONFIG to match it, then uploading the WordPress files all over again.
But this made no difference, except it changed the error message I received when viewing INSTALL.PHP through the address bar.
I also re-read the instructions. I placed UPGRADE-FUNCTIONS.PHP in the folder above INSTALL.PHP (because it seemed to want it there, according to the code) and WP-CONFIG.PHP in the WORDS folder. I seem to have done everything correctly, so I don’t know what’s going on.
Any suggestions? I’m at my wit’s end. I even tried emptying temporary files, the cache and history, to no avail!
- The topic ‘Different install error. Parse error: parse error, unexpected T_STRING in /home/’ is closed to new replies.