durf
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Parse Error?Oog . . . I ended up zapping everything, setting up a new database and user, reinstalling 1.5 completely fresh, and now I’ve run into this one:
Parse error: parse error, unexpected $ in /home/durf/public_html/news/wp-includes/wp-db.php on line 347
Line 347 of this file (and all the surrounding lines) is right in the middle of the HTML code. No $ in sight.
Forum: Installing WordPress
In reply to: Parse Error?The problem is that I know nothing of PHP syntax . . . I could post the whole section of code here, I guess:
function validate_option($option, $name, $val) {
global $wpdb, $tableoptionvalues;
$msg = ”;
switch ($option->option_type) {
case 6: // range
// get range
$range = $wpdb->get_row(“SELECT optionvalue_max, optionvalue_min FROM $tableoptionvalues WHERE option_id = $option->option_id”);
if ($range) {
if (($val < $range->optionvalue_min) || ($val > $range->optionvalue_max)) {
$msg = “$name is outside the valid range ($range->optionvalue_min – $range->optionvalue_max). “;
}
}
} // end switch
return $msg;
} // end validate_optionForum: Installing WordPress
In reply to: Parse Error?Yeah, I might have to go that route . . . Hey, it’s only my free time, right? ??
Here’s hoping it works better the second time.
Forum: Installing WordPress
In reply to: Parse Error?Thanks for your reply!
I’ve made no changes whatsoever. This was a fresh, clean install, and I was going in there for the first time to make some changes to the settings (the title of the weblog and so forth). Hitting the “Update Options” button gets me that parse error. I’d try uploading that .php file again, but the unpacked one on my local disk is the same as the one that’s up there now.
Forum: Installing WordPress
In reply to: Parse Error?No ideas? If this is what the files do “out of the box” I can’t really use WordPress.
Forum: Installing WordPress
In reply to: Parse Error?I’m getting the exact same parse error. Line 108, optionhandler.php . . . But I can’t view as source, since the only source visible when I go to that page in the browser is the error message.
Line 108 looks like this in my install (which is brand new and not altered a bit–I was trying to make some changes in the settings when it started doing this):
$range = $wpdb->get_row(“SELECT optionvalue_max, optionvalue_min FROM $tableoptionvalues WHERE option_id = $option->option_id”);
The optionhandler.php on my local HD (where I unzipped the install files) looks exactly the same. Do I need to delete a character here?