• Resolved tdcinhawaii

    (@tdcinhawaii)


    Kind of a long story how I got to this point – and I’ll be the first to admit when it comes to this – I know just enough to be dangerous. However, here’s the situation:
    I have to rebuild the files for this blog. But since there are numerous entries, uploads etc. I don’t want to rebuild the database.

    This is the error I am now receiving

    Fatal error: Call to undefined function: get_header() in /home/mydatabase/wordpress/index.php on line 1

    Any recommendations would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    James – Thank you. I will try that. However, after playing around a bit with the files, I’ve now graduated to the “Error Connecting to Database”. I’ve confirmed that the info in the wp-config file is correct, so I am freshly stumped. Any other suggestions?

    Did you confirm it was correct by reading it or by actually connecting to the database? You should test the database/confirm the connection details by connecting using phpMyAdmin.

    Moderator James Huff

    (@macmanx)

    Contact your hosting provider and ask if the database server has gone offline.

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    First of all – THANK YOU both for your help. Every little bit helps me piece it together. You guys are awesome.

    @obscure – I only looked at the file. How do I go about testing it in phpMyAdmin?

    @james – I’ve spoken with the hosting service. All is well.

    If either of you can tell me how I should test it in phpMyAdmin, that would be awesome.

    (Reinstalling WordPress now.)

    THANKS

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    I also just adjusted my permissions to 755, as I remember last time I used this hosting company I had problems with permissions.

    Reinstalled WordPress (except wp-config and content folder as suggested above).

    Neither of those seem to be solving the problem.

    Any other suggestions?

    Thanks!

    Moderator James Huff

    (@macmanx)

    Your hosting provider my have phpMyAdmin available in their control panel. See if you can access your database via that.

    Also, you should confirm your database connection details with your hosting provider, specifically the DB_HOST value.

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    @james

    I can access the database through phpMyAdmim – my problem is that I don’t know what to do when I am there (did I mention I know enough to be dangerous)?

    Is it possible to retrieve the database password through phpMyAdmin? I’m beginning to get a sneaky suspicion that’s the source of my problem.

    Moderator James Huff

    (@macmanx)

    I can access the database through phpMyAdmim – my problem is that I don’t know what to do when I am there (did I mention I know enough to be dangerous)?

    Accessing it was all that was necessary. It confirms that the database server is indeed online.

    Is it possible to retrieve the database password through phpMyAdmin? I’m beginning to get a sneaky suspicion that’s the source of my problem.

    No, that would either be listed somewhere in your hosting provider’s control panel, or you’d have to ask them for it.

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    I’ve changed the password of the database user; and changed the wp-config.php and confirmed the DB_HOST value.

    Can you think of any other reason why I would be having trouble connecting to the database?

    Moderator James Huff

    (@macmanx)

    Try repairing the database.

    Access your WordPress database via phpMyAdmin (most hosting providers offer this in their control panel), check all of the tables, and choose “Repair tables” from the pull-down menu.

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    James – you’ve been such a huge help. I don’t know what to do next.

    I ran a test by using: https://www.webune.com/forums/how-to-test-mysql-database-connection.html

    and I was connected to the database successfully. I’ve rebooted and cleared my cache.

    I have my WordPress files in a public_html folder. Do I need to add any files to the root folder?

    Moderator James Huff

    (@macmanx)

    Did you try repairing the database?

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    Hi James –

    I did try repairing the database. Here’s where I am now: I reloaded the config file with a new username and password. With that, I am able to access the dashboard, which is as far as I have come so far.

    However, when I type in the address, I get nothing but a blank screen. I know this is a file or a setting, I just don’t know which one. Any advice?

    Thread Starter tdcinhawaii

    (@tdcinhawaii)

    James – quick update: I have a theme problem. I’m in the process of reloading the theme, which should take me to where I need to go.

    I can not thank you enough for your help. You were a light in the middle of a crazy quagmire this weekend.

    Thanks again!!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Error during installation – index.php problem’ is closed to new replies.