• Resolved deeveearr

    (@deeveearr)


    Hi, Aaron,

    I’m getting lots of files turning up in my ‘Suggest a Redirect’ options, ALL of whick look like cached files:

    /z0f76a1d14fd21a8fb5fd0d03e0fdc3d3cedae52f?id=7fa3b767c460b54a2be4d49030b349c7&pdata=mywebsite.com/post name/&ts=1744119450&wsidchk=6778465

    I’ve tried excluding everything from the beginning of the file name by adding a wildcard *mywebsite.com and also by adding a wildcard at the end – mywebsite.com/post name*

    What would I add in the ‘Options’ Panel to get rid of these rogue files?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Aaron

    (@aaron13100)

    Hey.

    So to be clear, when the list of suggested pages comes up after a 404, that type of link is appearing as a possible match and that type of link is appearing in the list of suggested pages?

    Honestly I’m not really sure how that would happen because the suggestions functionality seems to pull in the posts from the wp_posts table. I guess if there are some posts stored there that have a post_status of “publish” then that would happen. In that case though the posts would also have to have the correct “post type,” which is configurable in the setting named “Recognized Post Types”. I believe the default value is
    page
    post
    product

    Can you tell me the “Recognized Post Types” settings that you have? Do you know which plugin might be causing posts like that? Do you know how to distinguish them from normal posts in the database by any chance?

    Thread Starter deeveearr

    (@deeveearr)

    Hi @aaron13100

    The ‘Recognised Post Types’ that I have are:

    page
    post
    product
    portfolio
    staff
    escorts
    areas

    The only cache plugin that I use is ‘Litespeed Cache’, which does tend to add it’s own intricacies to ‘posts’

    My 404 page is a custom one and has the official 404 solution ‘tag’ (abj404_solution_page_suggestions]. to add a maximum of seven page suggestions.

    Plugin Author Aaron

    (@aaron13100)

    Hey. I’ve been kind of busy lately. I’ll try to get to this by Sunday maybe.

    Plugin Author Aaron

    (@aaron13100)

    Hey @deeveearr,

    Thanks for the extra details and confirming your settings.

    Right, so digging into this, the suggestion feature in the plugin works exactly as I thought: it queries your site’s wp_posts database table. It specifically looks for entries that have post_status = ‘publish’ and a post_type matching one from your “Recognized Post Types” list (page, post, product, portfolio, staff, escorts, areas).

    Because you’re seeing those weird URLs (like /z0f76a1d…) appear in the suggestions list, it really means they must exist as actual rows in your wp_posts table, marked as ‘publish’ and having one of those post types.

    Regarding LiteSpeed Cache, I installed it but I didn’t get any extra entries in the wp_posts table. It seems unlikely that LiteSpeed itself is creating the entries inside the wp_posts table.

    I guess it could be another plugin, theme, or some custom code creating the entries in the wp_posts table. It’s possible they are somehow related to cached resources or identifiers, but what would insert them as published posts/pages?

    Can you look at the content of the posts to maybe see where they might be coming from? If they’re cached pages, how do they differ from the actual current pages?

    In the admin page on wordpress under Posts -> All Posts, do you see the pages there? If so who is listed as the Author? What is their Publish Date?

    Cheers,

    Aaron

    Thread Starter deeveearr

    (@deeveearr)

    Hi @aaron13100

    I’d suggest leaving Litespeed Cache (set to an advanced preset) enabled for a couple of weeks or so, as the strange url’s take a while to appear.

    In the WordPress Admin, Posts>>All Posts just leads to a list of my already published posts with no extra weird url’s in there.

    At present, any posts with weird (cached?) url’s are now getting ‘Moved To Trash’ rather than finding the post that they originated from.

    Plugin Author Aaron

    (@aaron13100)

    Hi @deeveearr,

    Are you able to query your database directly, eg using phpMyAdmin or similar?

    If so please query the wp_posts table with something like

    SELECT *
    FROM wp_posts -- (Replace wp_posts with your actual table name)
    WHERE post_name LIKE 'z0f%' -- (Use the start of an actual example URL you still see)
    AND post_status = 'publish'
    AND post_type IN ('page', 'post', 'product', 'portfolio', 'staff', 'escorts', 'areas')

    Can you post the results of that query here?

    Actually I don’t know what you mean by “Moved To Trash”. I guess you mean there are automatic redirects showing up in 404 Solution on the “Page Redirects” tab and you’re manually clicking the “Trash” button to move them to the trash? Can you include a screenshot of some of those from the plugin settings page?

    I’m not sure if it would be helpful, but we could also turn on debug logging under advanced settings and you could paste the debug log to pastebin.com so we can see if there are any issues noted in the log (don’t paste the log here as it’s too big).

    Let me know what you want to do.

    thanks

    Aaron

    Thread Starter deeveearr

    (@deeveearr)

    Hi @aaron13100

    I’ve got access to phpmyadmin but I haven’t got a clue what’s going off in there since my tables names were changed a while ago due to security reasons.

    It’s ok, moving the cached posts to trash seems like the safest option.

    Plugin Author Aaron

    (@aaron13100)

    Hey @deeveearr,

    There’s a new version of 404 Solution available and I did two things.

    1. On the custom 404 page with the suggested pages you can click the score on the right (only for admins) and see the various page details like the author, post date, etc. It might give us more of an idea of where those pages are coming from.
    2. I added a new option to exclude certain URLs based on regular expressions. So if you see a pattern for the unwanted pages that are appearing we can come up with a regular expression to exclude them.

    I hope that’s helpful.

    Aaron

    Plugin Author Aaron

    (@aaron13100)

    I’ll resolve this for now but let me know if it’s still an issue.

    Thread Starter deeveearr

    (@deeveearr)

    Hi, @aaron13100

    Just a quick update on this issue:

    I installed WordPress Jetpack to use their CDN and bypassed Quic Cloud (from Litespeed Cache) and ever since then, there have been no jumbled up word-searches as links whatsoever.

    I’m assuming then that Quic Cloud was the cause of the issue.

    Plugin Author Aaron

    (@aaron13100)

    Hey. Thanks for the update. I’m glad you figured out what it was (probably). If something similar happens again I’ll try to remember to install LiteSpeed Cache and use Quic Cloud together to reproduce the issue.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Cache Files Redirect?’ is closed to new replies.