• Resolved SusanM

    (@susanm)


    I am trying to install wp in a subdirectory and am receiving the following error:

    Parse error: syntax error, unexpected T_STRING in /home/illusive/public_html/blog/wp-config.php on line 6

    The following is my wp-config.php text:
    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘illusive_blog’);
    // The name of the database
    define(‘DB_USER’, ‘illusive_xxxxx’);
    // Your MySQL username
    define(‘DB_PASSWORD’, ‘xxxxxxxx’);
    // …and password
    define(‘DB_HOST’, ‘illusive_blog’);
    // 99% chance you won’t need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’;
    // Only numbers, letters, and underscores please!

    // 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’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    The url of the actual site I am trying to install on is:
    https://www.illusivelife.com/blog

    I’m new to WP from MT so I’m not sure what else you would need…

    Thanks for any help.
    Susan

Viewing 15 replies - 1 through 15 (of 29 total)
  • Thread Starter SusanM

    (@susanm)

    I’m still waiting to see if someone can help me with this installation.

    I currently use MT but am told WordPress is better so I would like to check it out myself but can’t get past this error and I am scratching my head bald over this.

    Can anyone help me please?

    on ‘DB_HOST’ try changing illusive_blog back to localhost

    Thread Starter SusanM

    (@susanm)

    Well that is wierd…I didn’t notice that, but looking and this is what is on the wp-config.php file:

    <?php
    // ** MySQL settings **
    //
    define(‘DB_NAME’, ‘illusive_xxxx’);
    // The name of the database
    define(‘DB_USER’, ‘illusive_xxxxx’);
    // Your MySQL username
    define(‘DB_PASSWORD’, ‘xxxxxxx’);
    // …and password
    define(‘DB_HOST’, ‘localhost’);
    // 99% chance you won’t need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’;
    // Only numbers, letters, and underscores please!

    // Change this to localize WordPress.
    A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    //

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    and the error is now:
    Parse error: syntax error, unexpected T_STRING in /home/illusive/public_html/blog/wp-config.php on line 19

    that error often relates to a missing punctuation

    I notice this is missing from what you cut and pasted

    to enable German language support.
    define (‘WPLANG’, ”);

    try adding that back in beside the double slash under
    // chosen language must be installed to wp-includes/languages.

    It would help if you could copy&paste your wp-config.php in between backticks, so it is formatted exactly as the PHP-Parser sees it.

    Thread Starter SusanM

    (@susanm)

    that doesn’t seem to be an issue – I still get the error message.

    Thread Starter SusanM

    (@susanm)

    <?php
    // ** MySQL settings **
    //
    define('DB_NAME', 'illusive_blog');
    // The name of the database
    define('DB_USER', 'illusive_xxxxx');
    // Your MySQL username
    define('DB_PASSWORD', 'xxxxxxx');
    // ...and password
    define('DB_HOST', 'localhost');
    // 99% chance you won't need to change this value
    
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix  = 'wp_';
    // Only numbers, letters, and underscores please!
    
    // 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', '');
    
    /* That's all, stop editing! Happy blogging. */
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>
    Thread Starter SusanM

    (@susanm)

    is that what you were asking for?

    Thread Starter SusanM

    (@susanm)

    anyone else care to try to jump in?

    Sorry, I was sleeping.
    Prefix the lines starting with A corresponding MO file and For example, install de.mo to with // each and your problem should be solved.

    Thread Starter SusanM

    (@susanm)

    Oh my gosh, you lost me – can you explain this to me a bit more?

    Just what he said. Change this:

    // 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.

    to this:

    // 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.

    You were missing backslashes, and PHP can’t render the file correctly with invalid code.

    make sure all the lines have a double slash in front

    from your example
    this should be moved up beside the double slash
    For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’

    and
    A corresponding MO file for the

    same thing

    Thread Starter SusanM

    (@susanm)

    Oh my goodness, this appears to be a bit more complicated than I realized. Now after changing what you suggested I get this error:

    Warning: main(ABSPATH/wp-admin/admin-functions.php) [function.main]: failed to open stream: No such file or directory in /home/illusive/public_html/blog/wp-admin/upgrade-functions.php on line 5

    Fatal error: main() [function.require]: Failed opening required ‘ABSPATH/wp-admin/admin-functions.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/illusive/public_html/blog/wp-admin/upgrade-functions.php on line 5

    and this is the actual code for the wp-config.php file:

    <?php
    // ** MySQL settings **
    //
    define('DB_NAME', 'illusive_blog');
    // The name of the database
    define('DB_USER', 'illusive_xxxxx');
    // Your MySQL username
    define('DB_PASSWORD', 'xxxxxxx');
    // ...and password
    define('DB_HOST', 'localhost');
    // 99% chance you won't need to change this value
    
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix  = 'wp_';
    // Only numbers, letters, and underscores please!
    
    // 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.
    
    //* That's all, stop editing! Happy blogging. */
    
    //define('ABSPATH', dirname(__FILE__).'/');
    //require_once(ABSPATH.'wp-settings.php');
    ?>

    is that correct, also, I notice the error states upgrade and this is a new installation.

    Thread Starter SusanM

    (@susanm)

    Okay, so I see one error and fixed it but now I have this:

    Fatal error: Call to undefined function: __() in /home/illusive/public_html/blog/wp-admin/admin-functions.php on line 1593

    and this is the actual code for the wp-config.php file:

    <?php
    // ** MySQL settings **
    //
    define('DB_NAME', 'illusive_blog');
    // The name of the database
    define('DB_USER', 'illusive_xxxxx');
    // Your MySQL username
    define('DB_PASSWORD', 'xxxxxxx');
    // ...and password
    define('DB_HOST', 'localhost');
    // 99% chance you won't need to change this value
    
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix  = 'wp_';
    // Only numbers, letters, and underscores please!
    
    // 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.
    
    //* That's all, stop editing! Happy blogging. */
    
    define('ABSPATH', dirname(__FILE__).'/');
    //require_once(ABSPATH.'wp-settings.php');
    ?>

    is that correct?

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Parse Error’ is closed to new replies.