• Hello, If i post this where it doesn’t belong I am sorry, but I rely need help. So yesterday I added a few products on my website and after a bit I got into a problem. the site didn’t seem to work. I can enter the main page but on wp-admin or anything else it is blank and I get the error below:
    Parse error: syntax error, unexpected ‘endif’ (T_ENDIF), expecting end of file in /var/www/vhosts/spera.ro/public_html/wp-includes/functions.php on line 3541

    Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /var/www/vhosts/spera.ro/public_html/wp-includes/formatting.php:4333 Stack trace: #0 /var/www/vhosts/spera.ro/public_html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url(‘https://wordpre…’) #1 /var/www/vhosts/spera.ro/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #2 /var/www/vhosts/spera.ro/public_html/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false) #3 [internal function]: WP_Fatal_Error_Handler->handle() #4 {main} thrown in /var/www/vhosts/spera.ro/public_html/wp-includes/formatting.php on line 4333

    I tried to change htaacess, rename the plugins but it dosen’t seem to do the trick, I would like to do this without a back-up since it is a little old and I would lose some data that i don’t want ( I know I am stupid for not backing up every week) Can anyone help me ? Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • did you run an update just before this happened? Sometimes if a WordPress update is interrupted you get this type of error.

    wp_kses_normalize_entities() is a part of the main WP code base so should be present.

    Are you able to upload a zipped version of WordPress onto your server then upzip it and install it at the file level?
    The file missing is wp-includes/kses.php

    Also your functions.php looks broken. Do you have a backup? Restore your functions.php
    wp-includes/functions.php

    @horatium

    It would seem that somehow your copy of the file at wp-includes/functions.php is corrupt. You need to reinstall WordPress.

    Download a fresh copy of WordPress from here:
    https://wordpress.org/download/

    Then access your site server via FTP and delete the wp-includes folder, then upload the same folder from the downloaded zip.

    Thread Starter horatium

    (@horatium)

    @mattyrob Won’t that remove everything i have on the website ? I would realy like to keep the content and the products. I don’t have a recent back-up sadly

    @horatium

    No, the content on your site is stored in a database, not files.

    If you cannot access admin at the moment then you can’t create a backup via a plugin, but your hosting provider may have or be able to create a back up of the database first, or perhaps you can if you can access PHPMyAdmin on your server.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Errors’ is closed to new replies.