• Last week all of the posts on both our WP websites became unviewable because their Permalinks had been altered so that viewers were sent to the 404 Page Not Found message.

    For example I just created a post titled Test Post and this is the Permalink that was assigned when I published it.

    
    http://ctgands.org/'/dad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684yeardad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684/dad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684monthnumdad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684/dad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684daydad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684/dad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684postnamedad738e655c2b2e983e433bca57e6dabd86487ba94f223493dd4abacf4da0684/'
    

    This is so long that I cannot make my browser window big enough to show the Edit button after the Permalink.

    On our other site, adding a Test Post produced the Permalink

    
    http://dev2.ctgands.org/'/2019/01/17/test-post/'/
    

    This was short enough to see the Edit button, but clicking it I could not edit out the single quotes before and after the title part. I do not remember ever seeing such single quotes as part of a Permalink.

    This behavior followed our updating to WP5.0 and updating to Theme Twenty Thirteen 2.6-2.7 and Theme Twenty Nineteen 1.1-1.2, but I don’t know if any of those are related to the post Permalink Problem.

    Since pages seem to be still behaving as usual, We are converting some 40 posts on our site to pages and writing widgets to display them in the proper locations, but I would like to know if anyone has a clue as to why all the Permalinks became corrupted?

Viewing 7 replies - 1 through 7 (of 7 total)
  • How about this plan of action…

    Install and enable the Classic Editor plugin to get away from the new Block Editor for a while.

    https://wordpress.org/plugins/classic-editor/

    Now go into settings and toggle your permalinks to plain and save.

    Then set them back to whatever Pretty Permalinks you had before. This usually will fix things.

    Also, make sure you are running 5.0.3 which had several patches and fixes in it. If need be there’s a plugin to revert your WordPress back to the version you had previous to the upgrade. 4.9.9 is recommended if you don’t want to run 5.0.X.

    https://wordpress.org/plugins/wp-downgrade/

    Your plan to convert posts to pages sounds good on the surface but I’d go with the above and wait a bit. You’ll lose some great internal content links unless you do 301 redirects and your posts will disappear from your RSS feed. The RSS feed often is neglected but might be a source of views and visitors.

    Search engines may spider your RSS feed for content also. Altogether I’d avoid doing anything to disrupt the flow there.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The block editor is unlikely to be messing with his permalinks.

    @donshirer The pattern in the URL that you just posted suggests that your Permalink setting has been corrupted, possibly from a plugin doing something strange or interfering with the percent sign escaping process in WordPress queries.

    Go to the Settings->Permalinks page and reset your permalink settings to be correct. If the problem continues, disable all your plugins, and then reset the permalinks again.

    You can also check if you’ve got any unexpected things in .htaccess

    Thread Starter donshirer

    (@donshirer)

    Thank you all. It does appear that something corrupted our Permalink settings, changing them so some strange custom version. I reset this on both our sites and now new posts show the correct permalink and the old post permalinks are restored once they are updated.

    I appreciate your objections about eliminating posts, but we do not use the RSS feed and have had trouble with hackers attacking our posts in the past, so although we are rethinking it, I would still prefer to limit posts to training new authors and using only pages for content on our site.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I’m glad you figured it out. If you do determine what plugin caused the problem, please let us know. Thanks!

    Thread Starter donshirer

    (@donshirer)

    Unfortunately, while the previous fix (resetting the Permalink setting to Post Name) restored the post views, it has now bollixed up the Permalinks of new pages. For example, I just added a new page with the title Show:2003-Gondoliers and the Permalink on the edit page showed as http://ctgands.org/2003-show-gondoliers/ as I expected. When I viewed the page it displayed correctly but clicking on the address revealed its URL was actually http://ctgands.org/show-2003-gondoliers/?wppa-occur=1&wppa-cover=0&wppa-album=22&wppa-photo=240,and using the listed Permalink of /2003-show-gondoliers/ produced a 404 page not found error.
    We are using WP 5.03, and Classic Editor plug-in and I permanently deleted the trash so there would be no interference from previous attempts with similar names.

    Why does WP add the extra ?wppa junk to a page Permalink?

    Do you by any chance use https://wordpress.org/plugins/wp-photo-album-plus/

    (I don’t know anything about it, but the abbreviation and the injected terms hint that this might be the case…)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posts unviewable because Permalinks altered’ is closed to new replies.