• Hi

    I update my WP site to 6.1.1 version
    Server with PHP 7.3.33
    No plugins

    When I try to update my PHP version to 7.4
    I getting HTTP ERROR 500

    server log error
    PHP Fatal error: Uncaught Error: Call to undefined function trailingslashit() in /home/raco/public_html/staging/wp-includes/class-wp-textdomain-registry.php:103

    I make copy of a fresh clean wp-includes (6.1.1) Dir into my site .
    no help, same problem
    I change wp language to en_US
    no help, same problem

    My wp site loading only with PHP 7.3.33

    class WP_Textdomain_Registry {}

    line 103…

    102 public function set( $domain, $locale, $path ) {
    103 $this->all[ $domain ][ $locale ] = $path ? trailingslashit( $path ) : false;
    104 $this->current[ $domain ] = $this->all[ $domain ][ $locale ];
    105 }

    any idea ?

    • This topic was modified 1 year, 11 months ago by serverara.
    • This topic was modified 1 year, 11 months ago by serverara.
    • This topic was modified 1 year, 11 months ago by serverara.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Try the usual troubleshooting process:

    Disable all plugins, switch theme and test.

    Thread Starter serverara

    (@serverara)

    Hi

    I wrote “No plugins”

    Default WP theme

    Thanks

    Hi, please do not only replace the wp-includes folder with a fresh installation.

    Please replace those folders/files as well:
    the whole folder wp-admin
    the whole folder wp-includes
    every .php file in root directory (except wp-config.php, you have to keep that one!)

    Make sure to keep
    the whole folder wp-content
    the file wp-config.php in the root directory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 6.1.1 php7.4 Uncaught Error: Call to undefined function trailingslashit()’ is closed to new replies.