Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Parse error: syntax error, unexpected '.'

    I am trying to install Word Press and I have a syntax error that I can't work out in my php code.

    Here is the error:
    Parse error: syntax error, unexpected '.' in /home/family/public_html/blog/wp-includes/user.php on line 588

    Here is the section of code it refers to - line 588 begins with 'show_option_all'

    function wp_dropdown_users( $args = '' ) {
    global $wpdb;
    $defaults = array(
    'show_option_all'../../blog/wp-includes/ => '', 'show_option_none'../../blog/wp-includes/ => '',
    'orderby'../../blog/wp-includes/ => 'display_name', 'order'../../blog/wp-includes/ => 'ASC',
    'include'../../blog/wp-includes/ => '', 'exclude' => '', 'multi' => 0,
    'show' => 'display_name', 'echo' => 1,
    'selected' => 0, 'name' => 'user', 'class' => '', 'blog_id' => $GLOBALS['blog_id'],
    'id' => '',
    );

    Please can you help me?

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    How has all of this made it into the array?

    ../../blog/wp-includes/

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I don't know, is that the problem? Do you think it could be related to where the folder with all the files is?

    Will it help if I create a hosting account specifically for the Blog?

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by eTekhnos View Post
    I don't know, is that the problem?
    Yup. However those paths are getting into the array is what you need to sort. They shouldn't be there.

  • Users who have thanked MattF for this post:

    eTekhnos (11-19-2010)

  • #5
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OK, I think I need to start again. Thank you very much for your help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •