Error – Won’t Allow Login to Admin Dashboard
-
I am now getting an error that does not allow me to login to my wordpress dashboard. Here is the error:
“Parse error: syntax error, unexpected ‘*’ in D:\HostingSpaces\myUserName\myDomainName\wwwroot\zwp\wp-content\plugins\search-and-replace\inc\Page\SqlImport.php on line 218″I have used the generic myUserName and myDomainName for the actual names.
Here are the lines 210-223 from the file SqlImport.php:
210 private function parse_size( $size ) {
212 // Remove the non-unit characters from the size.
$unit = preg_replace( ‘/[^bkmgtpezy]/i’, ”, $size );
214 // Remove the non-numeric characters from the size.
$size = preg_replace( ‘/[^0-9\.]/’, ”, $size );
216 if ( $unit ) {
// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.
218 return round( $size * ( 1024 ** stripos( ‘bkmgtpezy’, $unit[0] ) ) );
}
return round( $size );
}}
I never edited this file before the error. I am just a newbie with regard to this stuff so I am in the dark as to why this has occurred. Any help would be appreciated. Thank you.
- The topic ‘Error – Won’t Allow Login to Admin Dashboard’ is closed to new replies.