• Hello,

    I’ve been using Relevanssi for a while now and everything was fine, but there’s now an issue with pages not being indexed.

    I tried using the admin search for a string of specific keywords, but nothing is returned, despite them being the name of a page.

    Also, interestingly, when I search for those words on the website, I get a WordPress error, and redirected to a completely different page which has no formatting.

    What might be happening here?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mikko Saari

    (@msaari)

    First of all, check the page with the Relevanssi debugger (Settings > Relevanssi > Debugging). Is the page indexed correctly, do the words appear there?

    Is it possible the words are all stopwords?

    What exactly is the WordPress error you’re getting?

    Thread Starter russclem

    (@russclem)

    Can I email you? I don’t want to make the error on the site public knowledge, but it’ll be easier to just show you the error page. It doesn’t have any error codes even with debug set to true in wp-config.

    Plugin Author Mikko Saari

    (@msaari)

    I’m sorry, but private email support is only for paying Relevanssi Premium customers.

    If there are no error codes or stack trace information, the error page isn’t of much help, unfortunately.

    What search words are involved in the search?

    Thread Starter russclem

    (@russclem)

    There is one page which is automatically displaying (unstyled, with “WordPress error” as its title) when certain words are searched for – and all of those words appear in that page’s key terms.

    But I’m not even getting to the results page. When I hit search with any of these key terms, I’m redirected straight away to this same page.

    I’m going to assume that you’re the only person who’ll click this link any time soon, so here’s some relevant information:

    https://privnote.com/VHpq1Drz#ppagoWiwp

    Plugin Author Mikko Saari

    (@msaari)

    Ah, I see. Elementor’s acting up there. Does the problem go away if you disable custom excerpts in Relevanssi excerpt settings?

    Thread Starter russclem

    (@russclem)

    It does yes, as if by magic.

    Plugin Author Mikko Saari

    (@msaari)

    There’s something somewhere that the Relevanssi excerpt creation mechanism doesn’t digest, probably a problematic shortcode. Often these are shortcodes that fetch other posts. Could there be something like that? Of course it’s hard to say which post is causing this problem, but perhaps the post content displayed on the error page gives you some hints.

    Thread Starter russclem

    (@russclem)

    Absolutely – there are plenty of shortcodes and iframes on the page which is getting displayed, so I guess that’s the issue.

    I do need the excerpts though, and they’re not being displayed at all anymore.

    Is there a way to manually choose the excerpt for this particular page so that we don’t get this error?

    Plugin Author Mikko Saari

    (@msaari)

    There’s no easy way to skip creating an excerpt for a post in Relevanssi. I should probably add a simple filter for that.

    One solution is to use the relevanssi_pre_excerpt_content filter hook. I don’t have the documentation up for that filter hook yet, but the parameters are the same as for relevanssi_excerpt_content. You could for example replace the content of the post with the manually created post excerpt from $post->post_excerpt.

    The best solution would be to figure out what is causing this problem (the error page suggests there might be something useful in the server PHP error log) and tackle that, so that if it appears in other posts, it won’t be a problem there.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pages not indexing’ is closed to new replies.