0

I ran into an issue yesterday where I saw duplicate versions of a few different pages with the same name & path. No extra number appended to them. I deleted the duplicates which caused an issue with the nav (which I was able to fix by pointing it to the remaining pages).

Is there something off with my configuration? I wouldn't think that duplicate pages with the same name and path would be allowed.

4
  • Did you forget to mention that default theme is in use and no plugins are enabled? – Max Yudin Aug 1 '19 at 17:08
  • It's running a custom theme with several plugins enabled. I inherited the site so i'm not sure how long this issue was occurring. – MMSI Aug 1 '19 at 18:11
  • The very first thing to do is to disable all plugins, switch to any default parent theme, enable debug and error_reporting() and version update. Then check again. I don't believe WordPress allows you to use the same slug twice with no changes to the vanilla installation whether they are plugins, theme functions or core modifications. – Max Yudin Aug 2 '19 at 6:51
  • 1
    As a side note, I think I've seen that there can be multiple pages with the same slug / post_name as long as they have different parent pages. E.g. /foo/bar and /baz/bar should be ok. But as top level pages or under the same parent matching slugs should not be possible by default. – Antti Koskinen Aug 2 '19 at 21:37
0

I think I found the issue. It looks WPML, the translation plugin, makes a duplicate page for every translated version of a page. So we had multiples of a few pages that were translated into various languages.

Sidenote: WPML stopped working a couple months ago and none of their fixes have worked yet. So no big loss just yet.

Thanks for your help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.