• Resolved bhavikfp

    (@bhavikfp)


    I was creating a support page for my website which had a permalink of /support/. After I was finished, I noticed the permalink had changed to /support-2/. I tried to change it back to /support/ but after clicking ‘ok’, it changes back to /support-2/.

    I loaded the /support/ page and noticed this error at the top of the page: “Notice: Array to string conversion in /app/public/wp-includes/formatting.php on line 1031 Notice: Trying to get property of non-object in /app/public/wp-content/plugins/amz-composer-plugins/includes/visual-composer/shortcodes/external_shortcodes.php on line 2804”.

    I loaded the /support-2/ page and that is working perfectly well with no errors but it should be /support/. Something is taking up the /support/ permalink and I checked if any other pages or posts was using this but I couldn’t find anything.

    I can’t provide a url as I’m developing locally.

    • This topic was modified 7 years, 6 months ago by bhavikfp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The main reason this is happening is because WordPress thinks that those URLs already exist. You need to make sure that the previous pages are not using that permalink. It could potentially live in drafts, or trash. Once you have confirmed the previous page no longer exists, I would reset your permalinks. You can do this by changing Permalinks back to plain, and save, then change back again to Post Name and finally save a 2nd time.

    If you’re still having this issue then there is most likely and issue where the copy of the page lives in the databases, but isn’t showing on the site. Usually a quick search through PHPMyAdmin helps with that.

    Thread Starter bhavikfp

    (@bhavikfp)

    Great answer! Thanks so much Michael.

    I couldn’t find anything with the support permalink in the drafts or trash so after going into the database, I discovered support.png was taking up the support permalink so I deleted the image and reuploaded with a different name. Convinced that I had solved the problem, I attempted to change the support-2 permalink by resetting it using your advice but it again didn’t work. I changed support-2 to support manually in the database and now it all works well.

    • This reply was modified 7 years, 6 months ago by bhavikfp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t change permalink in wordpress pages’ is closed to new replies.