Forums

[resolved] Parse error: parse error, unexpected - http://example.com/blog/wp-admin/install. (8 posts)

  1. christernyc
    Member
    Posted 3 years ago #

    When I try to run the wp-admin/install.php after uploading wordpress to the remote server I get:
    Parse error: parse error, unexpected '.' in /var/www/vhosts/duchessmarden.com/httpdocs/blog/wp-includes/user.php on line 449

    Any clue where I screwed up?

    I thank you in advance

  2. tomontoast
    Member
    Posted 3 years ago #

    Are you using WordPress 2.7.1?
    Find the file wp-includes/user.php and find ine number 449 and post it here.

  3. christernyc
    Member
    Posted 3 years ago #

    ok:

    449 'show_option_all'../../wordpress/wp-includes/ => '', 'show_option_none'../../wordpress/wp-includes/ => '',

    Hope that helps, thanks for helping out!

    Regards

    Christer

  4. tomontoast
    Member
    Posted 3 years ago #

    Ok replace that line with
    'show_option_all' => '', 'show_option_none' => '',

  5. christernyc
    Member
    Posted 3 years ago #

    Thank you for helping!!

    ok, I replaced line 449 as instructed, now I get:

    Parse error: parse error, unexpected '.' in /var/www/vhosts/duchessmarden.com/httpdocs/blog/wp-includes/user.php on line 450

    I'll give you the whole thing now:

    446 function wp_dropdown_users( $args = '' ) {
    447 global $wpdb;
    448 $defaults = array(
    449 'show_option_all' => '', 'show_option_none' => '',
    450 'orderby'../../wordpress/wp-includes/ => 'display_name', 'order'../../wordpress/wp-includes/ => 'ASC',
    451 'include'../../wordpress/wp-includes/ => '', 'exclude' => '', 'multi' => 0,
    452 'show' => 'display_name', 'echo' => 1,
    453 'selected' => 0, 'name' => 'user', 'class' => ''
    454 );

    From what you told me to do with line 449, I'm assuming I will have to do the same with line 450 and 451, take out the "../../wordpress/wp-includes/ =>" stuff.

    Having taken out those wordpress comments from lines 450 and 451, I am now getting parse errors on other pages that have the wordpress/wp-includes/ stuff. Should I keep going and take all those out?

    Thanks again!!

  6. christernyc
    Member
    Posted 3 years ago #

    so I proceded and and took out all the ../../wordpress/wp-includes/ where ever the parse error occured. Wasn't too much, maybe around 10-15 lines, and it works now!!

    yo tomontoast, you 'da man, thanks bro!

  7. christernyc
    Member
    Posted 3 years ago #

    whoops, ok. spoke to soon.

    I was able to finally access the set up page and enter the blog name and email. Later when I got the user name and password i entered the dashboard and I seem to have eliminated its link to the css, because the dashboard is completely without any styles or images.

    Obviously I must have got rid of one too many ../../wordpress/wp-includes/. Any clue where I went wrong or how I can get the dashboard to reconnect to the css? I will poke around...

    Thanks!

  8. christernyc
    Member
    Posted 3 years ago #

    Resolved:

    If you're using Dreamweaver, never, EVER let Dreamweaver update the links when you change the name of the downloaded WordPress folder to another name before uploading to your hosting.

    Took me all day to figure that one out...I'm quite ashamed...

Topic Closed

This topic has been closed to new replies.

About this Topic