WordPress.org

Ready to get started?Download WordPress

Forums

Fatal Error doesnt make sense (27 posts)

  1. Chelsea
    Member
    Posted 9 years ago #

    OK.. I recently attempted to upgrade from WordPress 1.2 (or so I do believe) to 1.5 and am having a lot of issues. This is one of them:

    I unzipped the .zip Strayhorn file and extracted all. I proceeded to upload, and then it brought up several of those:


    <code> Warning: main(/home/unchaine/public_html/wp-includes/template-functions.php): failed to open stream: No such file or directory in /home/unchaine/public_html/wp-settings.php on line 41

    Warning: main(/home/unchaine/public_html/wp-includes/template-functions.php): failed to open stream: No such file or directory in /home/unchaine/public_html/wp-settings.php on line 41

    Fatal error: main(): Failed opening required '/home/unchaine/public_html/wp-includes/template-functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/unchaine/public_html/wp-settings.php on line 41

    Now, I looked in the extracted files and they do not include a template-functions.php..... I'm kind of lost here. Help, anyone?

  2. oriecat
    Member
    Posted 9 years ago #

    Maybe your wp-settings.php file didn't get replaced with the new one?

  3. Chelsea
    Member
    Posted 9 years ago #

    I uploaded the new wp-settings.php.. no change for the better. :(

  4. Chelsea
    Member
    Posted 9 years ago #

    Oh, now I'm getting a whole new error here.

    Warning: Invalid argument supplied for foreach() in /home/unchaine/public_html/wp-settings.php on line 113

  5. oriecat
    Member
    Posted 9 years ago #

    Did you delete the old one first or just overwrite it? I just looked at my wp-settings.php file and it doesn't call for template-functions anywhere, so if yours still is then there is something wrong with it.

  6. oriecat
    Member
    Posted 9 years ago #

    Did you remember to deactivate all of your plugins before upgrading?

  7. Chelsea
    Member
    Posted 9 years ago #

    I didn't deactivate anything, I simply deleted everything except for my modified files and uploaded the new WP files.

    My wp-settings file still calls for template-functions for some reason, though.. I just deleted it and uploaded another one.. still calls for it, and it's the one from Strayhorn.. odd...

  8. vkaryl
    Member
    Posted 9 years ago #

    What did you do about your database? Some info will be stored there, I think I remember reading somewhere. And the database for 1.2.* doesn't have the same number of tables that 1.5's db does....

    You were following the procedure for upgrading in the README, right? Just checking to be sure....

  9. Chelsea
    Member
    Posted 9 years ago #

    The error changed. ( Big whoop. )

    Warning: main(/home/unchaine/public_html/wp-settings.php): failed to open stream: No such file or directory in /home/unchaine/public_html/wp-config.php on line 31

    Fatal error: main(): Failed opening required '/home/unchaine/public_html/wp-settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/unchaine/public_html/wp-config.php on line 31

  10. Chelsea
    Member
    Posted 9 years ago #

    and yes, I did backup my database.

  11. vkaryl
    Member
    Posted 9 years ago #

    Ummmm - hmm. Would seem to me that your wp installation should be in something like "public_html/wordpress/" - your first error listed there seems to be looking for the wp-config.php file in your root folder.

  12. Chelsea
    Member
    Posted 9 years ago #

    When I upgraded, I moved all of the files to the root folder instead of in a sub-directory. Is that why I'm having so much problems?

  13. vkaryl
    Member
    Posted 9 years ago #

    Well, I don't know for sure, but I would (if this were me), delete everything and start over, putting wp in its own folder....

  14. Chelsea
    Member
    Posted 9 years ago #

    Well, I want the main page to be WordPress powered. Previously I had it in a sub-directory, and linked to the index.php through a i-frame. I now want the whole page to be WordPress - I don't know of any other way of doing this without having WP installed in the main directory.. Sorry.. I'm a little new.

  15. vkaryl
    Member
    Posted 9 years ago #

    You should be able to do that with the Pages function in 1.5, without having it resident in the root folder. I don't know that root folder residency is the problem with your install though. It was simply a thought, since your error message was looking for the file in a place I wouldn't have expected it to be living.

  16. Chelsea
    Member
    Posted 9 years ago #

    I want my blog to be on the front page, not a WP page. . . . Can I have the index.php file in the main directory and still have the WP install in a sub-directory? Is this possible?

  17. vkaryl
    Member
    Posted 9 years ago #

    Yes. What you do is put The_Loop in your main index page. There's a whole buncha posts around about that - and this is the Codex page of info on The_Loop.

  18. Chelsea
    Member
    Posted 9 years ago #

    OK. Thank you!! :)

  19. vkaryl
    Member
    Posted 9 years ago #

    Good luck with it, report back, okay?

  20. oriecat
    Member
    Posted 9 years ago #

    I don't think there's any reason moving the blog to the root would have caused any errors.

    Did you move everything now? It looks like you need to change line 4.

  21. moshu
    Member
    Posted 9 years ago #

    Well, if before the upgrade the WP files (and the blog) were in a subfolder and then you delet the files and upload the new ones in the root - without changing the home_url and site_url in the DB and try to upgrade... then you'll run into troubles.
    BTW, I am not even sure the upgrade.php has ever been run, never was mentioned :) just read the OP's first post.

  22. Chelsea
    Member
    Posted 9 years ago #

    I tried to run the upgrade.php - denied me access because of all the errors I was getting.

    I talked to a WP guru friend of mine this morning and she suggested replacing the wp-config.php file and configuring it all over again still using the same database. I just did that a few minutes ago, and it now works fine :D Thank you guys for all the help though! It's very much apperciated.

  23. moshu
    Member
    Posted 9 years ago #

    Well, the wp-config.php file will not "configure it all over" - it's just the file containing your MySQL connection data.
    I'd say: install the new version where the old one was, run the upgrade and if it works, come back and ask how to move it up.

  24. Chelsea
    Member
    Posted 9 years ago #

    I installed it in a sub-directory (http://unchained-melody.net/wp/) and tried to upload the index.php to public_html. It comes up as a total blank, and when I deleted the index.php from the subdirectory, it didn't do anything.

    I have the WordPress address set to (http://unchained-melody.net/wp/) and the blog address to (http://unchained-melody.net) I don't see why it shouldn't work.

  25. moshu
    Member
    Posted 9 years ago #

    Open the index file in the wp directory - not in a theme!
    It should look like:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    That's all :)

    Now change this line as follows:
    require('./wp/wp-blog-header.php');

    You are good to go!

  26. Chelsea
    Member
    Posted 9 years ago #

    Sorry I didn't reply back sooner - but it does indeed work now. Thank you guys so much! I apperciate the help and support here a lot and wouldnt know what to do without it.

  27. vkaryl
    Member
    Posted 9 years ago #

    That's great, Chelsea! Glad to hear it's working now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.