• I’ve never had any trouble changing the URL in the functions.php file before, but there’s a first for everything!

    A domain name expired for an old website which I need. Upon changing the root URL in functions.php, I get the following error: Fatal error: Call to undefined function update_option() in /home/traceyjumpstart/public_html/wp-includes/functions.php on line 2

    At first I thought it was a child theme issue (where I changed the wrong file). But after I corrected and changed the proper file, it still gave me the error (incognito mode).

    THanks so much in advance for any help I can get with it!

Viewing 1 replies (of 1 total)
  • Please add the following to the bottom of your .htaccess file to rule out permilink problems.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # End WordPress

    Now add this to your primary themes functions.php file.

    update_option('siteurl','http://example.com');
    update_option('home','http://example.com');

    Let me know where you get.

Viewing 1 replies (of 1 total)
  • The topic ‘Change Site URL – Fatal Error’ is closed to new replies.