Skip to content

The Geek Worker

Random Computer Issues And Things That Fixed Them For Me

  • About this Website
  • Helpful Links

WordPress Redirect Loop

November 18, 2018 by geekworker2 min read

I’m currently in the process of migrating WordPress to a new server, and I made a somewhat silly mistake.

Basically, after setting up my virtualhost, wordpress, etc I ran into a redirect loop, where the site would always redirect from the actual name of my blog (“example.com”) to a signup page, and the signup page would then redirect to itself.

I was at my wits’ end, so I enabled debugging by adding:

define('WP_DEBUG_LOG', true);

and changing this line to “true”:

define('WP_DEBUG', true);

This creates a logfile called “debug.log” in your wp-content subdirectory.And lo and behold, it turns out I had forgotten to actually import my MySQL data.

18-Nov-2018 10:07:46 UTC] WordPress database error Table 'wordpress.wp_blogs' doesn't exist for query SELECT blog_id FROM wp_blogs WHERE domain IN ( 'blog.example.net' ) AND path IN ( '/wp-signup.php/', '/' ) ORDER BY CHAR_LENGTH(path) DESC LIMIT 1 made by require('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), require('wp-includes/ms-settings.php'), ms_load_current_site_and_network, get_site_by_path, get_sites, WP_Site_Query->query, WP_Site_Query->get_sites, WP_Site_Query->;get_site_ids

I know how it happened – I redid my migration from scratch and took a break of a few days just before that step – and it’s unlikely someone else might run into this exact problem.

However, the steps to debug it are still valuable – had I done that in the first place, I might have saved myself quite a bit of time.

Posted in ArticleTagged Wordpress, Wordpress Multisite, WP Multisite

Related Stories

  • February 8, 2025 · Article

    Inkscape: “Document Properties” Window Not Showing Up

    Inkscape sometimes opens the “Documents Properties” window outside the visible area of the desktop. This is how you get it back.

  • December 30, 2023 · Article

    Synology Drive Client does not connect on Apple MacOS

    Synology Drive Client on MacOS refused to connect. Deleting the appropriate logfiles helped.

  • September 13, 2023 · Article

    “The iTunes Store is temporarily unavailable. Please try again later” when trying to subscribe to Podcast

    Currently (September 2023), Apple’s iTunes store seems to have a bug where it’s impossible to subscribe to new podcasts. However, there is a workaround. Find your desired podcast on the iTunes store. Click the “get” button, on the right side of the episode list, for any episode of the podcast. Switch to your library. The […]

Previous story YouTube: Playback Stops with Spinning Loading Circle Next story WordPress Images Not Showing

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Inkscape: “Document Properties” Window Not Showing Up
  • Synology Drive Client does not connect on Apple MacOS
  • “The iTunes Store is temporarily unavailable. Please try again later” when trying to subscribe to Podcast
  • “Access Denied” Errors with TortoiseSVN on Samba
  • Keyboard and Mouse Microstutters with a Dell Latitude Notebook

Recent Comments

  1. Bart on Gigabyte OSD_Sidekick: “Please check if your USB cable is connected”
  2. Jason on Sony Vegas and Sony Movie Studio: No Audio Tracks In mp4 video filefound
  3. DaReclama on OpenVPN: IP packet with unknown IP version seen
  4. vilva on Excel Formula to get Number of Days in a Month
  5. Michael (Micky) Avidan on Excel Formula to get Number of Days in a Month

Archives

  • February 2025
  • December 2023
  • September 2023
  • July 2022
  • June 2022
  • April 2022
  • November 2021
  • March 2021
  • January 2021
  • August 2020
  • July 2020
  • May 2020
  • January 2020
  • May 2019
  • November 2018
  • July 2018
  • January 2018
  • August 2017
  • January 2017
  • September 2016
  • July 2016
  • October 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • June 2014
  • April 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • July 2013
  • June 2013
  • April 2013
  • February 2013
  • October 2012
  • August 2012
  • March 2012
  • January 2012
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • July 2007

Categories

  • Article

© 2026 The Geek Worker. Proudly powered by WordPress.