...

View Full Version : Parse error: syntax error, unexpected '.'



eTekhnos
11-18-2010, 08:15 PM
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?

MattF
11-18-2010, 08:22 PM
How has all of this made it into the array?

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

eTekhnos
11-19-2010, 04:24 PM
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?

MattF
11-19-2010, 04:27 PM
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.

eTekhnos
11-19-2010, 04:29 PM
OK, I think I need to start again. Thank you very much for your help :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum