• Hi,

    I am running WordPress on WAMP 2.4.

    I had to move my WordPress installation to my workstation after my server needed maintenance.

    I copied across the files to the Wamp/www folder on my C:\ and that was fine. But noticed upon loading the site that parts of it, such as menus, were out of date.

    Upon reading I realised I had to also update the tables on PHPMyAdmin – makes sense!

    However, after doing this, the site is effectively broken. The format and layout o the site is gone, images aren’t loading and I can’t access the backend – /wp-login.php is a blank page.

    Please see attached a screenshot showing it’s current state.

    I have also completely deleted the WordPress database and re-imported the .sql backup file.

    Any help is greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this:

    Live Site:

    – export the database
    – ZIP the contents of the site and download (or if the live site does not support ZIP ((archiving, compression, etc.)) then use FTP to download)

    Local Site:
    – use phpMyAdmin to create a new, empty database
    – import the exported database .sql file
    – edit the siteurl and home fields in the wp-options table with the new location URL:

    https://localhost – if it will be in the root of the local server
    https://localhost/folder_name – if in a folder in the local server web root

    – unZIP or move the downloaded site files to the desired location
    – edit the wp-config.php file there with the local database connection credentials (use Notepad or equivalent to do so)
    – log into the local site Dashboard and install and run this plugin:

    https://www.ads-software.com/plugins/velvet-blues-update-urls/

    — select all options EXCEPT the last one (GUID)

    – go to Settings > Permalinks and just re-save

    Done ??

    Thread Starter markmck

    (@markmck)

    Mate you’re a life saver. I totally forgot about the ‘home’ and ‘siteurl’ settings! I had them set specifically to the old server name. Can I just keep it as this when it comes to moving it back again? It’ll be relative to whatever location it’s in that way?

    What do I need to do to ensure that this can be fully accessed by other users on the LAN?

    Thanks!

    Can I just keep it as this when it comes to moving it back again?

    Only if the path is exactly the same; sounds as though it isn’t as you had to change them to get it to work.

    It’ll be relative to whatever location it’s in that way?

    WordPress uses absolute paths by default so this is why the URLs need to be updated.

    The LAN issue is out of my realm of being able to offer anything specific.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page formatting broken – no access to wp-login’ is closed to new replies.