• Hi team,

    Trouble Site: https://www.cleanup.co.nz

    I transferred this site from one hosting account to another, but I’m having trouble getting the site to show properly.
    The home page is showing ok, but none of the other pages are, nor is wp admin.

    This was done along side another site transfer which is working fine.

    Nameservers were updated yesterday, and I think they have propagated properly because the home page is showing, and the 2nd site which was updated at the same time, is working fine.

    Steps I took:
    -Updated nameservers with domain registrar
    -Downloaded all files for site from old server
    -Exported the mysql database from phpmyadmin
    -Uploaded files to new root directory
    -Created mysql database
    -Imported old mysql database into new database
    -Updated wp-config.php with new username, database name and password
    -Checked site – only home page showing – no success
    -Cleared browser cache – only home page – no success
    -Out of ideas…

    I understand that nameserver propagation can take a while, but figured if the home page was showing and the other site was working, then maybe I just mucked up somewhere along the way.

    Any thoughts?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Check your wp-config to make sure that all of the paths and database info are correct. Chances are something needs to be changed there. You may also need to go into your admin and reinitialize permalinks.

    Thread Starter joshnz

    (@joshnz)

    Unfortunately I can’t access wp-admin. Just getting a blank page with the url as the page title.

    Can you please elaborate a little more on the paths in wp-config. Do they need to be something specific? I’ve never touched or changed paths in there before… so not sure.

    Thanks for ya help.

    Have you looked at your url structure within phpMyAdmin? Could be some conflicts?

    Thread Starter joshnz

    (@joshnz)

    Hi soundmanjd,
    How do I check the url structure in phpmyadmin?

    what i would do is log into the database, click search, type in “www.cleanup.co.nz” click “select all” tables, and this will show you a list of tables containing this phrase.

    Look for a table called wp-options. Make sure your “siteurl” and “home” are the same.

    If you find searching doesn’t bring anything up in the wp-options tab that might be your problem! easy fix though you just have to insert the correct URL into both these tables.

    Keep us posted!

    Thread Starter joshnz

    (@joshnz)

    Cool thanks, I gave that a shot.

    Both “siteurl” and “home” match as https://www.cleanup.co.nz

    I also tried deleting the .htaccess file, and now the home page shows a complete blank as well.

    can you check your wp-config.php file to make sure that when you uploaded it it didn’t add any extra characters.

    make sure there is nothing after ?>
    e.g.

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>
    .

    the “dot” at the bottom will kill your site!

    let us know!

    Thread Starter joshnz

    (@joshnz)

    Interesting, I checked the file and the ?> wasn’t even there…

    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I added it to wp-config.php but still no luck. There are also no spaces below ?>

    I checked the other sites wp-config, the site which I moved at the same time, and that doesn’t show a ?> either, yet the site works?
    Is it maybe the editor I’m using “Notepad++”, although that said I also checked the file in the File Manager in cPanel and the ?> didn’t show there either.

    Hmmm.. this is quite strange, another thing you can do is rename the plugins folder to plugins2 then try refresh your site, if this doesn’t work then just rename it back to “plugins”.

    what I would do is remove the ?> from the wp-config file at the bottom as this has not fixed the issue.

    Error Reporting:
    If you make a new file using notepad++ and name it tester.php then add the following code

    <?
    ini_set('display_errors','1');
    ini_set('display_startup_errors','1');
    error_reporting (E_ALL);include('index.php');
    ?>

    then upload to your root directory. this should tell you what is wrong with the configuration… Fingers Crossed!

    Thread Starter joshnz

    (@joshnz)

    Problem solved:)

    Thanks you so much for your help soundmanjd!

    Problem was in the wp-config.php file.
    There was a code of line in there which I’ve just deleted
    define('WP_CACHE', true); //Added by WP-Cache Manager

    As soon as I deleted it, the home page showed.

    Then I reset permalinks and we are away laughing:)

    Thanks again for the help. Really made me look at wp-config more closely.

    Thread Starter joshnz

    (@joshnz)

    *line of code – over excited

    Glad to hear your site is back up and running. I find its usually plugins or wp-config that make the WordPress white screen of death! Lut us know if there is anything else.

    Cheers.

    Thread Starter joshnz

    (@joshnz)

    Well it happened again…

    I went to the wp-super cache plugin then to another page and all of a sudden I was staring at the white screen of death.

    I disabled the plugins folder like you said, then removed the line of code from the config file again – which seems to be added by super-cache plugin.

    define('WP_CACHE', true); //Added by WP-Cache Manager

    Now the site is fine again. Must be a problem with the super-cache plugin. All other plugins are activated and working fine, other than super-cache.

    Do Cache plugins normally add this line of code to the config file?
    If so, I wander what else I’m doing wrong if its not working for me…

    Will delete the plugin and download a fresh version and see if that makes a difference.

    Thread Starter joshnz

    (@joshnz)

    Deleted the wp-super-cache plugin and re-installed a fresh version, and it still caused the same problem – white screen of death.

    Happened as soon as I went to the “Easy” tap in the super-cache settings to enable it.

    Deleted the plugin again and now I’m working fine.

    Thanks for the help again

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Problems moving a wordpress site to another host’ is closed to new replies.