PHP Fatal error: Uncaught Error: Call to undefined function get_home_path()
-
Importing website gets stuck on “restoring database” phase 0% nothing happens, the error below repeats.
Then the website throws the “There has been a critical error in this wordpress site”.File is 480MB, no cloudflare etc.
AIO works on other websites on the same server, but not this site. any ideas? hope its something easy.
error
[Wed Mar 16 22:37:40.416944 2022] [php7:error] [pid 3674165] [client xxxxxxxxx:24234] PHP Fatal error: Uncaught Error: Call to undefined function get_home_path() in /var/www/xxx.xxxxxxxx.com/wp-content/themes/hello-elementor-child/functions.php:46\nStack trace:\n#0 /var/www/prod.xxxxxxxx.com/wp-settings.php(555): include()\n#1 /var/www/prod.xxxxxxxx.com/wp-config.php(90): require_once('/var/www/prod.e...')\n#2 /var/www/prod.xxxxxxxx.com/wp-load.php(50): require_once('/var/www/.htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/?wp\-content/+debug\.log$ RewriteRule .* - [F,L,NC] </IfModule> <IfModule !mod_rewrite.c> <Files "debug.log"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> </IfModule> # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Header always set Strict-Transport-Security "max-age=63072000; includeSubDomain$ php_value upload_max_filesize 512M php_value post_max_size 512M php_value memory_limit 256M php_value max_execution_time 300 php_value max_input_time 300 # BEGIN ShortPixelWebp # The directives (lines) between "BEGIN ShortPixelWebp" and "END ShortPixelWebp" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. # END ShortPixelWebp # Wordfence WAF <IfModule mod_php5.c> php_value auto_prepend_file '/var/www/prod.xxxxxx.com/wordfence-waf.php' </IfModule> <IfModule mod_php7.c> php_value auto_prepend_file '/var/www/prod.xxxxxx.com/wordfence-waf.php' </IfModule> <IfModule mod_php.c> php_value auto_prepend_file '/var/www/prod.xxxxxx.com/wordfence-waf.php' </IfModule> <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function get_home_path()’ is closed to new replies.