PHP Error preventing login, but site loads (partially)
-
When trying to access /wp-admin/ in the browser, I’m getting:
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in /***/wp-admin/includes/media.php on line 1244The site loads ok, but the sidebars are missing.
See: https://www.hiddeninthesand.com/blogs/Now, I haven’t done much recently to this site, so it must have happened during an upgrade of WP version or plugin. The theme files haven’t been touched, although I will say this is an old theme and most likely it’s age is the culprit somewhere.
Here is the last 13 lines of media.php where the error is supposedly happening:
$extra_rows = array(); if ( !empty( $field['errors'] ) ) foreach ( array_unique( (array) $field['errors'] ) as $error ) $extra_rows['error'][] = $error; if ( !empty( $field['extra_rows'] ) ) foreach ( $field['extra_rows'] as $class => $rows ) foreach ( (array) $rows as $html ) $extra_rows[$class][] = $html; foreach ( $extra_rows as $class => $rows ) foreach ( $rows as $html ) $item .= "\
I’ve already tried changing the directory name of the theme via FTP hoping the site would switch to using twenty-eleven. But all that did was cause the site to not load at all.
Kinda wondering what else I could do… Any ideas?
- The topic ‘PHP Error preventing login, but site loads (partially)’ is closed to new replies.