• Resolved jerrypettit

    (@jerrypettit)


    Fatal error: main(): Failed opening required ‘../wp-config.php’ (include_path=’.:/usr/local/lib/php’) in /homepages/36/d161148513/htdocs/blog/admin.php on line 5

    So what do I need to do? (One thing I noticed–after unzipping, all of the contents I uploaded were just files–no subdirectories (as I’ve seen pictured in books about WordPress)). For instance there is no wp-admin subdirectory. Is something wrong there?

    The site I’m uploading my files to (and what will eventually be the blog) is https://www.jerrypettit.com/blog

    Thanks in advance.

    Jerry

Viewing 15 replies - 1 through 15 (of 40 total)
  • The unzip went wrong.

    Download again then Unzip but preserve the folder structure – right-clicking a zip usually brings up options.

    Thread Starter jerrypettit

    (@jerrypettit)

    Just did that. Now the error message I get is:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    **I’ve checked and double-checked that I used the correct settings in my wp-config.php file.

    Jerry

    Who is your webhost?
    If you are using cpanel / ensim / plesk or vdeck then there are guides for those here:
    https://www.tamba2.org.uk/wordpress/

    If not, then knowing the host will help.

    Thread Starter jerrypettit

    (@jerrypettit)

    1and1.com

    Thanks for the quick responses!

    The info that I have received for MySQL Database Setup is that my host name is “such and such”. Should I be using that instead of “localhost”?

    Jerry

    That’s where I would start ..

    Thread Starter jerrypettit

    (@jerrypettit)

    Did that and it went back to the original error message. At least when I use “localhost” I get a screen with WordPress stuff on it and an actual “WordPress” error message.

    Do I have to contact my host now?

    Jerry

    Not sure what you mean by ‘original’.
    There are two error messages you could see at this point.
    One is the above.
    The other says basically ‘we could get in but cannot select’

    Have you seen both?

    Okay …. ‘localhost’ IS wrong.
    Put your hostname you were given there.

    The db_name is mot important right now – it’s not got there yet.

    The 2 places for error are db user and db password.

    Thread Starter jerrypettit

    (@jerrypettit)

    By “original” I mean the original error message in the first message of this thread.

    NOW, by using “localhost” I’m getting a WordPress-generated error message as follows:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    ***

    So WordPress seems to be installed correctly now–it’s just not finding the database–although I’ve now quadruple-checked that the database name, user name, and password I’ve entered into wp-config.php are correct.

    Jerry

    Thread Starter jerrypettit

    (@jerrypettit)

    Ok–I changed “localhost” to the host name that was given to me by 1and1.com.

    Reinstalled.

    Now the error message is no longer a WordPress error message referring to not finding the database. The error message I get now is:

    Fatal error: Call to undefined function: add_filter() in /homepages/36/d161148513/htdocs/blog/wp-includes/default-filters.php on line 4

    ***

    Seems like a step backwards, since at least before I was at least getting a WordPress error.

    Jerry

    Fatal error: Call to undefined function: add_filter() in /homepages/36/d161148513/htdocs/blog/wp-includes/default-filters.php on line 4 when going to blog link given above… is that the one you meant?

    That error is fine ??

    It means that a file has not uploaded correctly – it also means that config is probably correct.
    Delete the file mentioned, upload another?

    Thread Starter jerrypettit

    (@jerrypettit)

    Yes, that’s the error I am getting now–now that I have changed “localhost” to the Host name given me by 1and1.com. When I use “localhost” I get the longer WordPress error message.

    Jerry

    Thread Starter jerrypettit

    (@jerrypettit)

    Ah, ok–I’ll delete the default-filters.php file and reinstall. (I don’t need a new default-filters.php file??)

    Back in a sec.

    (VERY impressed with the speed of reply here–Thanks!!)

    Jerry

    Leave localhost out – it’s wrong at 1and1. You will never connect using it.
    ——–

    Try the file change I mentioned?

Viewing 15 replies - 1 through 15 (of 40 total)
  • The topic ‘The error message I got:’ is closed to new replies.