• We updated to WordPress 4 and the database seems to be causing a loop or one of the settings in there. A new installation has worked fine though. Does anyone have any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey there,

    What do you mean by it’s causing a loop is this the whole site? When logging in? Something else?

    You could check your htaccess to make sure it matches the relevant version:

    http://codex.wordpress.org/htaccess

    And also your wp-config, you can find a cool tool here:

    http://generatewp.com/wp-config/

    I’d start there before messing with the database, after that I’d check the site and home url in the DB.

    Take care.

    Thread Starter liamsorsby

    (@liamsorsby)

    Hi Timothy,

    I’ve already posted this on stack overflow and got no response. Nothing on https://www.astralgameservers.com/blog works (I am currently using the old database which we tried to updgrade) I’ve since then installed a new version with a new database which works fine. However, when I switch back to the old database I get a redirection loop on the blog, and the admin panel. Also, the only thing I touch is the database table that it is drawing from which causes the redirection loop.

    I’ve already checked that the htaccess file is correct and I assume it sort of rules this out when it works correctly with the new installation database.

    Hope this explains things a little more clearly.

    Hey again.

    If you’re sure the htaccess and wp-config are fine then a couple more things to check:

    1. Rename your plugins folder and try loading the front of your site. This tests for any conflicts/influences from plugins.
    2. You could check the database to ensure the correct url is used, you can add these to your themes functions.php:

    update_option('siteurl','http://example.com');
    update_option('home','http://example.com');

    As per the instructions here:

    http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php

    You need to ensure they point to your site/files.

    Take care.

    Thread Starter liamsorsby

    (@liamsorsby)

    Hi Timothy,

    Firstly, thank you for your help with this. Secondly, I’ve already disabled/removed all the plugins, this is a new site with an old database. When I switch to the new one everything works fine. Hence why I beleive it to be the DB. Thirdly, I’ve tried what you suggested with the functions file. but this hasn’t done anything unfortunately.

    Hey there,

    I just wanted to double check here, home is where the WordPress files are, and siteurl is where the WordPress site is.

    You have these correct and you’re not just using the base domain.com?

    Just wanted to be sure.

    Take care.

    Thread Starter liamsorsby

    (@liamsorsby)

    Hi Timothy,

    The domain is for example: example.com/blog/ which is where it has always resided and always worked before the update. Do you know of any tool that would port our posts over to our new database excluding our settings as I beleive this is what is causing the issue.

    Thread Starter liamsorsby

    (@liamsorsby)

    Hi Timothy,

    We downgraded the the 3.9.2 version and our blog now works again! A little odd don’t you think?

    Hey Liamsorsby,

    That is a little odd. There must be a conflict somewhere in your DB with the new version. Did you also try temporarily switching to the default 2014 theme with 4.0? Perhaps your theme is the conflict.

    Or maybe you have already got it resolved now 🙂 just wanted to check in.

    All the best,
    Tyler

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is there a way to repair a database?’ is closed to new replies.