The MU forums have moved to WordPress.org

Unexpected '}', Line 1710, WPMU 1.2.5a (7 posts)

  1. DragonFlyEye
    Member
    Posted 18 years ago #

    I've got two systems, one setup and running WPMU and another which I've been attempting to install. In both cases, I am getting the error message:
    Parse error: syntax error, unexpected '}' in /path/to/wp/wp-includes/wpmu-functions.php on line 1710

    In the case of the standing version of WPMU, I've been able to resolve this issue by going back to a previous version of WPMU (1.2.3). I thought perhaps the problem was something like a plugin, but in the case of the new install, there are no plugins or mu-plugins at all, this is just a straight ahead install of WPMU, and I'm still getting it. Once again, replacing the file with the 1.2.3 version corrected the problem.

    I'd thought that, like many such cases with supposedly missing }'s, the problem might be that my host uses PHP4 natively and requires a directive in the .htaccess file in order to use PHP5. However, upon adding this directive, nothing has changed.

    Also, there is another problem, which is that, regardless of whether the installation is successful or not, there is a ton of code splattered out onto the install window:
    oked to the 'activate_PLUGIN' action. */ function register_deactivation_hook($file, $function) { $file = plugin_basename($file); add_action('deactivate_' . $file, $function); } function _wp_filter_build_unique_id($tag, $function, $priority = 10) { global $wp_filter; // If function then just skip all of the tests and not overwrite the following. if( is_string($function) ) return $function; // Object Class Calling else if(is_object($function[0]) ) { $obj_idx = get_class($function[0]).$function[1]; if( is_null($function[0]->wp_filter_id) ) { $count = count((array)$wp_filter[$tag][$priority]); $function[0]->wp_filter_id = $count; $obj_idx .= $count; unset($count); } else $obj_idx .= $function[0]->wp_filter_id; return $obj_idx; } // Static Calling else if( is_string($function[0]) ) return $function[0].$function[1]; } ?> ( 'shutdown', 'wp_ob_end_flush_all', 1); ?> 'rss_excerpt_length': case 'default_category': case 'default_email_category': case 'default_link_category': $value = abs((int) $value); break; case 'posts_per_page': case 'posts_per_rss': $value = (int) $value; if ( empty($value) ) $value = 1; if ( $value < -1 ) $value = abs($value); break; case 'default_ping_status': case 'default_comment_status': // Options that if not there have 0 value but need to be something like "closed" if ( $value == '0' || $value == '') $value = 'closed'; break; case 'blogdescription': case 'blogname': $value = addslashes($value); $value = wp_filter_post_kses( $value ); // calls stripslashes then addslashes $value = stripslashes($value); $value = wp_specialchars( $value ); break; case 'blog_charset': $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value); // strips slashes break; case 'date_format': case 'time_format': case 'mailserver_url': case 'mailserver_login': case 'mailserver_pass': case 'ping_sites': case 'upload_path': $value = strip_tags($value); $value = addslashes($value); $value = wp_filter_kses($value); // calls stripslashes then addslashes $value = stripslashes($value); break; case 'gmt_offset': $value = preg_replace('/[^0-9:.-]/', '', $value); // strips slashes break; case 'siteurl': case 'home': $value = stripslashes($value); $value = clean_url($value); break; default : break; } return $value; } function wp_parse_str( $string, &$array ) { parse_str( $string, $array ); if ( get_magic_quotes_gpc() ) $array = stripslashes_deep( $array ); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str $array = apply_filters( 'wp_parse_str', $array ); } ?> = $post->post_content; $multipage = 0; } return true; } ?> tructure); $this->init(); } } function set_category_base($category_base) { if ($category_base != $this->category_base) { update_option('category_base', $category_base); $this->init(); } } function WP_Rewrite() { $this->init(); } } ?> gs', $allowedtags ); kses_remove_filters(); kses_init_filters(); } add_action('init', 'kses_init'); add_action('set_current_user', 'kses_init'); ?> v') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.') !== false) { $is_NS4 = true; } $is_IE = ( $is_macIE || $is_winIE ); // Server detection $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false; $is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false; ?> : function wp_hash($data) { $salt = wp_salt(); if ( function_exists('hash_hmac') ) { return hash_hmac('md5', $data, $salt); } else { return md5($data . $salt); } } endif; ?> ets_init', 1); ?> _new_admin_email', 'update_option_new_admin_email', 10, 2); ?>

    Still more problems, the links at the bottom of the install page read like this:
    WordPress ยต | Support Forums
    wordpress.org/forums/">Support Forums

  2. SteveAtty
    Member
    Posted 18 years ago #

    anything in your php error log?

  3. DragonFlyEye
    Member
    Posted 18 years ago #

    Oodles. About 6megs-worth, in fact. However, I'll print out some of the first errors recorded:

    <errorentry>
    	<datetime>2007-09-28 10:49:27 (EDT)</datetime>
    	<errornum>8</errornum>
    	<errortype>Notice</errortype>
    	<errormsg>Undefined property:  category_parent</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/classes.php</scriptname>
    	<scriptlinenum>442</scriptlinenum>
    </errorentry>
    
    <errorentry>
    	<datetime>2007-09-28 10:49:27 (EDT)</datetime>
    	<errornum>8</errornum>
    	<errortype>Notice</errortype>
    	<errormsg>Undefined property:  cat_ID</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/classes.php</scriptname>
    	<scriptlinenum>477</scriptlinenum>
    </errorentry>
    
    . . . . LOTS of the below:
    
    <errorentry>
    	<datetime>2007-09-28 10:49:27 (EDT)</datetime>
    	<errornum>8</errornum>
    	<errortype>Notice</errortype>
    	<errormsg>unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 0 of 23 bytes</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/functions.php</scriptname>
    	<scriptlinenum>258</scriptlinenum>
    </errorentry>
    
    <errorentry>
    	<datetime>2007-09-28 10:49:27 (EDT)</datetime>
    	<errornum>8</errornum>
    	<errortype>Notice</errortype>
    	<errormsg>ob_end_flush() [<a href='ref.outcontrol'>ref.outcontrol</a>]: failed to delete and flush buffer. No buffer to delete or flush.</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/functions.php</scriptname>
    	<scriptlinenum>1531</scriptlinenum>
    </errorentry>
  4. SteveAtty
    Member
    Posted 18 years ago #

    Yes but those are notices (non fatal errors).

    Which download are you using and what (and where) are you decompressing it.

  5. DragonFlyEye
    Member
    Posted 18 years ago #

    I'm downloading directly off the mu.wordpress.org site, not SVN or anything. I'm am decompressing to the root of my domain.

  6. DragonFlyEye
    Member
    Posted 18 years ago #

    There aren't any fatal errors in my log files at all. None. Lots of warnings about making files that already exist:

    <errorentry>
    	<datetime>2007-09-28 07:50:43 (EDT)</datetime>
    	<errornum>2</errornum>
    	<errortype>Warning</errortype>
    	<errormsg>mkdir(/homepages/44/d118403290/htdocs/dfe/current/home/wp-content/blogs.dir) [<a href='function.mkdir'>function.mkdir</a>]: File exists</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/index-install.php</scriptname>
    	<scriptlinenum>220</scriptlinenum>
    </errorentry>

    A few that seem to suggest invalid returns in MySQL queries:

    <errorentry>
    	<datetime>2007-09-28 09:32:00 (EDT)</datetime>
    	<errornum>2</errornum>
    	<errortype>Warning</errortype>
    	<errormsg>mysql_num_fields(): supplied argument is not a valid MySQL result resource</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/wp-db.php</scriptname>
    	<scriptlinenum>272</scriptlinenum>
    </errorentry>

    and TONS of header warnings:

    <errorentry>
    	<datetime>2007-09-28 09:32:54 (EDT)</datetime>
    	<errornum>2</errornum>
    	<errortype>Warning</errortype>
    	<errormsg>Cannot modify header information - headers already sent by (output started at /homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/plugin.php:295)</errormsg>
    	<scriptname>/homepages/44/d118403290/htdocs/dfe/current/home/wp-includes/wpmu-functions.php</scriptname>
    	<scriptlinenum>77</scriptlinenum>
    </errorentry>

    That's it.

  7. DragonFlyEye
    Member
    Posted 18 years ago #

    There seems to have been some problem with the files I was using on the one server. I swapped files with the server that was working, and now the software installs.

    This still leaves open the question of what caused the errors on either server with 1.2.5. Replacing the wpmu-functions.php with an older version seemed the only way to cure it, though.

About this Topic

  • Started 18 years ago by DragonFlyEye
  • Latest reply from DragonFlyEye