install error – wp-includes/compat.php
-
New installation – Receiving this error message:
“Parse error: syntax error, unexpected $end, expecting ‘(‘ in /mounted-storage/home6a/sub001/sc14923-UONA/yourtrusted.info/blog/wp-includes/compat.php on line 102”
Have uploaded the ‘/wp-includes/compat.php’ file many times now but it always cuts off short at 2819 bytes of its 3338 bytes full file size.There appears to be no valid reason (to me at least) for this to occur as the code does not appear corrupted or broken. Copy of code section below from line 99 to close of code at line 119:
Full Code:
Line 99=if ( !function_exists( ‘htmlspecialchars_decode’ ) ) {
// Added in PHP 5.1.0
// Error checks from PEAR::PHP_Compat
Line102= function htmlspecialchars_decode( $str, $quote_style = ENT_COMPAT )
{
if ( !is_scalar( $string ) ) {
trigger_error( ‘htmlspecialchars_decode() expects parameter 1 to be string, ‘ . gettype( $string ) . ‘ given’, E_USER_WARNING );
return;
}if ( !is_int( $quote_style ) && $quote_style !== null ) {
trigger_error( ‘htmlspecialchars_decode() expects parameter 2 to be integer, ‘ . gettype( $quote_style ) . ‘ given’, E_USER_WARNING );
return;
}Line114= return wp_specialchars_decode( $str, $quote_style );
}
}Line119= ?>
Corrupted Code:
Line99= if ( !function_exists( ‘htmlspecialchars_decode’ ) ) {
// Added in PHP 5.1.0
// Error checks from PEAR::PHP_Compat
Line102= function ht
^ End of Uploaded File
Can anyone help?
Thank you
Kevin
P.S. It is a proprietary upload ‘Expert WordPress’ although I don’t believe that matters.K
- The topic ‘install error – wp-includes/compat.php’ is closed to new replies.