WordPress.org

Forums

fatal error (22 posts)

  1. rjmille10
    Member
    Posted 3 years ago #

    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

  2. Christi
    Member
    Posted 3 years ago #

    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!

  3. rjmille10
    Member
    Posted 3 years ago #

    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.

  4. govpatel
    Member
    Posted 3 years ago #

    Make sure you uploaded all wp- files

  5. rjmille10
    Member
    Posted 3 years ago #

    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

  6. Christi
    Member
    Posted 3 years ago #

    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!

  7. rjmille10
    Member
    Posted 3 years ago #

    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.

  8. Christi
    Member
    Posted 3 years ago #

    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!

  9. govpatel
    Member
    Posted 3 years ago #

    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

  10. rjmille10
    Member
    Posted 3 years ago #

    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.

  11. rjmille10
    Member
    Posted 3 years ago #

    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???

  12. govpatel
    Member
    Posted 3 years ago #

    Most likely is the file permissions change them all to 644

  13. rjmille10
    Member
    Posted 3 years ago #

    changed all the permissions and it still didn't help

  14. govpatel
    Member
    Posted 3 years ago #

    Try and replace that file from fresh download.

  15. rjmille10
    Member
    Posted 3 years ago #

    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.

  16. rjmille10
    Member
    Posted 3 years ago #

    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

  17. govpatel
    Member
    Posted 3 years ago #

    Lets try and install fresh copy in a folder and see if you have problems so download fresh copy upload in a folder and create a new database and run install program let install program create the wp-config.php file

  18. rjmille10
    Member
    Posted 3 years ago #

    I don't know exactly how to do what you are suggesting. I can create a new database but I don't know where you want me to upload the fresh copy to, where to create this fold and last, how to run install program. Also, what exactly do you mean by a fresh copy, a fresh copy of wordpress or a fresh copy of this website I am trying to recreate?

  19. govpatel
    Member
    Posted 3 years ago #

    I was checking back on your url
    http://designerhandbags.net-discounts.info/

    Why do you have .net and .info

    and looking at error /home/content/51/7243451/html/designerhandbags I see html that must be your root and then you have designerhandbags looks like domain name is not set properly did you check with your host.

  20. rjmille10
    Member
    Posted 3 years ago #

    the root domain is net-discounts.info and I have a subdomain that I created and that is what wordpress is installed on. designerhandbags.net-discounts.info

  21. govpatel
    Member
    Posted 3 years ago #

    Is this designerhandbags folder in html folder and do you have wordpress files and folders in designerhandbags folder

  22. Christi
    Member
    Posted 3 years ago #

    Hello rjmille10,

    As govpatel suggested, installing a fresh copy of WordPress may be the way to go.

    I thought you might want to see these instructions for moving WordPress:

    http://codex.wordpress.org/Moving_WordPress

    I'm not sure which situation applies to you (for example: moving to a completely different server, moving within the same server, etc.). Make sure you review the instructions that apply to your situation. Keep in mind too that your files you originally copied could be corrupted. It might be worth starting over with a fresh download of the original site files.

    You could also try a fresh install on your new domain/subdomain. If you're able to do a fresh install, you could then follow the instructions for Moving WordPress to a New Server with Fantastico from the Moving WordPress instructions above. The steps for moving over your old files to your new install would be the same.

    Here are the instructions for installing WordPress, either manually or through several popular account management tools:

    http://codex.wordpress.org/Installing_WordPress

    Let us know how this goes for you.

Topic Closed

This topic has been closed to new replies.

About this Topic