• I loaded an existing wordpress site from a file onto a new domain name and have done the necessary edits. When I try to load the site I am getting a fatal error message – Fatal error: Call to undefined function wp() in /home/content/51/7243451/html/designerhandbags/wp-blog-header.php on line 14
    I don’t seem to be able to fix it. It is located on a wordpress site http://designerhandbags.net-discounts.info/
    If anyone could help me find the error or at least tell me where I should be looking, I would greatly appreciate it.
    Thank you

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hi rjmille10,

    Double check that wp-blog-header.php file. You may want to re-upload that to make sure it uploaded correctly. Make sure you have set your SITE URL to http://designerhandbags.net-discounts.info.

    I also noticed that trying to navigate to the TLD (net-discounts.info) gave a 403 error, so double check your permissions on your document root folder (usually public_html). Here’s some more help on resolving 403 errors:

    http://www.webhostinghub.com/support/website/website-troubleshooting/403-forbidden-error-message

    Hope this helps!

    Thread Starter rjmille10

    (@rjmille10)

    here is the contents of the wp-blog-header.php file

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I don’t exactly know where to make the changes that you are talking about.

    Make sure you uploaded all wp- files

    Thread Starter rjmille10

    (@rjmille10)

    I have checked and double checked the files. I deleted and reuploaded them one by one. If there is a file missing than it was not included. Here is a list of all of them
    file wp-admin
    file wp-content
    file wp-includes

    all the php files
    index
    wp-app
    wp-atom
    wp-blog-header
    wp-comments-post
    wp-comentsrss2
    wp-config
    wp-cron
    wp-feed
    wp-links-opml
    wp-load
    wp-login
    wp-mail
    wp-pass
    wp-rdf
    wp-register
    wp-rss
    wp-rss2
    wp-settings
    wp-trackback
    wp-xmlrpc

    Hello again rjmille10,

    Did you check your permissions on your document root folder (usually public_html)?

    These should be folders, not files:

    • wp-admin
    • wp-content
    • wp-includes

    Is the functions.php file in the wp-includes folder?

    Thanks!

    Thread Starter rjmille10

    (@rjmille10)

    Hi Christi, yes the functions.php file is in the wp-includes folder. I also changed the file permissions on admin,content, and includes folders to 755 and I changed the file permissions on net-discounts folder to 755. Still no change though, I cannot access the website or log into my wordpress admin panel. Thank you for trying to help me.

    Hello again rjmille10,

    What are your permissions on your document root (usually public_html)? I found this thread that might have some more ideas to try:

    http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp-in-wp-blog-headerphp-on-line-18-19?replies=7

    Note: Depending on your host, setting folders to 777 may not be allowed and may cause additional errors.

    Hope this helps!

    worth a try check your wp-config.php file and see if you do not have any space at top before <?php

    what are permissions on files they should be 644

    Thread Starter rjmille10

    (@rjmille10)

    Hi govpatel, I have already checked for the spaces because of another post I saw from you. All the .php files have the same permission of 604 on them. I am going to change them all to 644 and see what happens.

    Thread Starter rjmille10

    (@rjmille10)

    Hi folks, I have another question about the fatal error message – Fatal error: Call to undefined function wp() in /home/content/51/7243451/html/designerhandbags/wp-blog-header.php on line 14

    Is there suppose to be something between the () after function wp in the error message and if so what is suppose to go there???

    Most likely is the file permissions change them all to 644

    Thread Starter rjmille10

    (@rjmille10)

    changed all the permissions and it still didn’t help

    Try and replace that file from fresh download.

    Thread Starter rjmille10

    (@rjmille10)

    I downloaded a brand new config file and I also got an authentication key and imputed that so here is what the new config file looks like.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    After going through all that I now get a new fatal error
    Warning: require(/home/content/51/7243451/html/designerhandbags/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/content/51/7243451/html/designerhandbags/wp-settings.php on line 21

    Fatal error: require() [function.require]: Failed opening required ‘/home/content/51/7243451/html/designerhandbags/wp-includes/load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/51/7243451/html/designerhandbags/wp-settings.php on line 21

    I am going back to square one and reload everything from scratch, file by file and see what happens.

    Thread Starter rjmille10

    (@rjmille10)

    We are back to square one. Deleted everything and uploaded one file at a time and the fatal error is still there.
    Fatal error: Call to undefined function wp() in /home/content/51/7243451/html/designerhandbags/wp-blog-header.php on line 14

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘fatal error’ is closed to new replies.