• I was trying to manually upgrade to the latest version of WordPress and now I can’t get in to my blog at all (located here). All I get is this message:

    Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in D:\Hosting\5230522\html\blog\wp-config.php</strong on line 77

    Help! I’m on a Mac and I can open up the wp-config.php file in Dashcode, and I guess line 77 is the problem; but I’m not sure what I’m supposed to fix. Someone please tell me what to do!

Viewing 2 replies - 1 through 2 (of 2 total)
  • please backup your wordpress install and database before doing any of this
    go download the latest version of wordpress and copy the wp-config-sample.php onto your website via ftp or how you usually do it, then open your wp-config.php in some notepad like program and copy all of your database info onto the new wp-config-sample.php database info and save it then delete wp-config.php and rename wp-config-sample.php to wp-config.php. I can do this for you if you’d like.

    Thread Starter TiffanyNeill

    (@tiffanyneill)

    Hi Alex and Anthony,

    I backed up the original version of my blog prior to the upgrade. And did the wp-config.php update. I was able to get my blog to show up again by restoring the original version, and now it’s showing a bunch of code at the top. The code looks like this:

    users’) ) return true; } return false; } ?> or closed * @param int $post_id Post ID * @return bool $open */ function _close_comments_for_old_post( $open, $post_id ) { if ( ! $open ) return $open; if ( !get_option(‘close_comments_for_old_posts’) ) return $open; $days_old = (int) get_option(‘close_comments_days_old’); if ( !$days_old ) return $open; $post = get_post($post_id); if ( time() – strtotime( $post->post_date_gmt ) > ( $days_old * 24 * 60 * 60 ) ) return false; return $open; } ?> “; } add_action(‘admin_head’, ‘dolly_css’); ?>

    How do I make that code up top go away?

    PS Thanks for responding and offering to fix the code for me!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error’ is closed to new replies.