T_ENCAPSED_AND_WHITESPACE, expecting ‘ ERROR – How to solve?
-
Hello everyone!
First of all, I’d like to wish you a merry christmas!
I was trying to access my website but it appears this error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ‘)’
and then in …/public html/wp-includes/options.php on line 1823
So I went by the cPanel to open that file and navigatedd until line 1823:
register_setting( ‘writing’, ‘use_smilies’, array(
‘show_in_rest’ => true,
‘type’ => ‘boolean’,
‘description’ => __( ‘Convert emoticons like ?? and ?? to graphics on display.’ ),
‘default’ => true,
) );register_setting( ‘writing’, ‘default_category’, array(
‘show_in_rest’ => true,
‘type’ => ‘integer’,
‘description’ => __( ‘Default post category.’ ),
) );register_setting( ‘writing’, ‘default_post_format’, array(
‘show_in_rest’ => true,
‘type’ => ‘string’,
‘description’ => __( ‘Default post format.’ ),
) );register_setting( ‘reading’, ‘posts_per_page’, array(
‘show_in_rest’ => true,
‘type’ => ‘integer’,
‘des(which is the last line of that code)
What should I do in order to make the website work again?
Thanks!
- The topic ‘T_ENCAPSED_AND_WHITESPACE, expecting ‘ ERROR – How to solve?’ is closed to new replies.