Fatal error: public_html / wp-includes / option.php on line 126

0

I migrated my Wordpress site to another hosting, I did everything right, but this error is occurring:

  

Fatal error: Uncaught Error: Call to undefined function untrailingslashit () in /storage/ssd3/451/2091451/public_html/wp-includes/option.php:126 Stack trace: # 0 / storage / ssd3 / 451/2091451 /public_html/wp-includes/default-constants.php(138): get_option ('siteurl') # 1 /storage/ssd3/451/2091451/public_html/wp-settings.php(255): wp_plugin_directory_constants () # 2 / storage / ssd3 / 451/2091451 / public_html / wp-config.php (102): require_once ('/ storage / ssd3 / 4 ...') # 3 / storage / ssd3 / 451/2091451 / public_html / wp-load. php (37): require_once ('/ storage / ssd3 / 4 ...') # 4 /storage/ssd3/451/2091451/public_html/wp-blog-header.php(13): require_once ('/ storage / ssd3 / 4 ... ') # 6 / main / throttle in / storage /ssd3/451/2091451/public_html/wp-includes/option.php on line 126

    
asked by anonymous 28.06.2017 / 23:55

1 answer

1

untrailingslashit is a default WordPress function so it means that some file is missing or corrupted.

One thing that may have happened is that some files failed to upload to the new server. This is very common when transfers are made via FTP.

  • Make a new backup of the files of the current installation.
  • Download a new copy of WordPress here
  • Replace the files on your except server:

    3.1 the wp-content folder

    3.2 the wp-config.php file

    3.3 other files that are not native to WordPress.

  • 30.06.2017 / 14:33