Pretty permalinks break site

I’ve been running MilkChic Breastfeeding Fashion with pretty permalinks with no issues for some time and have just realised that over the last couple of days everything has started redirecting to the homepage. I can’t figure out what on earth has caused the problem but this is what I have already tried in an attempt to fix it:

1. Reset permalinks in settings – going to p=123 structure fixes the categories but changing back breaks it again.

2. Updated WordPress to latest version and tried again – no effect

3. Switched off Hummingbird caching – no effect

4. Deactivated Hummingbird entirely – no effect

5. Deleted .htaccess and used autogenerated version, then repeated the above – no effect

6. Deactivate all plugins – no effect

I don’t know where to go next and don’t want to leave my site on the standard structure as I’ve been working really hard on my SEO and am seeing results. Please can someone help me with this. I’ve enabled support in my dashboard and am happy to provide FTP details if needed.

Thank you!

  • Nithin
    • Support Wizard

    Hey sequin,

    Hope you are doing good today. :slight_smile:

    Sorry to know that you are having issues, it seems like when I switch it a default WordPress theme the links works fine. When I switch back to your premium theme, it doesn’t work. I get the same result with your two swift premium themes, were you able to notice this issue after upgrade to WP 4.7? If yes, most probably a WordPress 4.7 compatibly issue.

    Could you please get in touch with your theme support, and check whether there is any latest version available. Please let us know how that goes, have a nice weekend. :slight_smile:

    Kind Regards,


  • sequin
    • Site Builder, Child of Zeus

    Hi Nithin,

    The links do work with the default theme but I don’t think it can be update related as I updated to 4.7 after I found the problem and it has worked fine with 4.6. That’s why I initially assumed it was .htaccess or plugin related but that doesn’t seem to be the case as the problem persists with a brand new .htaccess and no plugins activated.

    I’m contacting my theme support for help but is there anything else you can think of that could have caused this?

    Tearing my hair out – a retail site down at this time of year is a nightmare!

  • sequin
    • Site Builder, Child of Zeus

    OK. I have a newish error in the log but no idea what it means or how to fix it! call_user_func_array() expects parameter 1 to be a valid callback, function 'disable_embeds_rewrites' not found or invalid function name in /home/milkchic/public_html/wp-includes/class-wp-hook.php on line 298

    Does this sound like it could be relevant or am I barking up the wrong tree?

  • sequin
    • Site Builder, Child of Zeus

    Fixed it!!! Feeling very proud of myself (can you tell I am not any kind of dev…?). I changed the disable_embeds_rewrites function in my custom functions.php so it only called if defined and everything now works :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.