Moderator
t-p
(@t-p)
Something has changed with how permalinks work now and I am not able to fix the site that is on 5.5. Any clues??
Try resetting your custom permalinks back to the default setting and renaming your WordPress .htaccess file. If that works, then try reading Using_Permalinks before setting a custom permalink structure again.
I did all the above but still with no success.
Moderator
t-p
(@t-p)
This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty theme. If the problem goes away, enable them one by one to identify the source of the problem.
If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.
I disabled all the plugins and changed to the twenty twenty theme. Same issue, the number at the end of the URL which is an MLS number and the page called show-listings takes that number to display the information. Here is part of my php code that was working before WordPress 5.5
/* Get the current Page Full URL */
$listing_url = $_SERVER[REQUEST_URI];
$mls_num = explode(‘/’, $listing_url);
/* Get the Listing Number */
$mls_number = $mls_num[‘2’];
For some reason the number is being removed at the end. For a test, I did replace the file called canonical.php under wp-includes from version 5.4 and it stopped removing that number at the end, but then I just get a oops page can’t be found.
Thanks again for helping me get this figured out.
To keep the MLS number from being removed I did the following
https://skatefactory.com/show-listings/?686543/
I placed a Question Mark before the number and now it is showing the information. Is it possible to not use the ? before the number. If I do, for some reason in wordpress 5.5 it removes that number and then I get no results found.
Hi,
I am having exactly the same problem, described here:
https://wordpress.org/support/topic/wp-5-5-problems-with-permalinks/
So far I was not able to fix it but I will be following your topic to see if there’s a resolution.
Downgrading back to WP 5.4.2 fixes the problem.
I was just fixing to reply to your post. I have yet to figure out this issue. I also had to downgrade one of our sites until I can find a resolution to this problem.
You are right about the canonical.php file: overwriting this file from WP 5.5.0 with the version from WP 5.4.2 no longer breaks the link, but generates a 404 error.
I spent the last hour comparing both files but I was unable to find the fix.