• 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Hmmm…. looks like the file is corrupt.

    Go to www.ads-software.com and download a clean copy of wordpress. Unzip it locally and upload *all* files and directories to your site, replacing what’s there.

    Once that’s done, it’s time to look for evidence of hacking.

    Thread Starter Halliwell

    (@halliwell)

    Ok so I downloaded what you suggested and I tried to upload it inside public_html but I guess I couldn’t since I have disk space usage full.
    So I went to see where I could delete something and I accessed softaculus backups and tried to delete one of the 4 that were occupying space and it appeared the following error while deleting:

    FileOp Failure: exist level [die] pid=463415 delfile file disk: quota exceeded

    I accessed with my own and only login the cPanel… I don’t know why this appears…

    What should I do?

    Thanks in advance

    PS: I’m kind of a noob in Informatic and HMTL language

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please contact your host regarding your disk space issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘T_ENCAPSED_AND_WHITESPACE, expecting ‘ ERROR – How to solve?’ is closed to new replies.