• Resolved clandy

    (@clandyhigg)


    I’m getting a 502 error when trying to update a page, and after a long chat with WP Engine support, they’ve come to the conclusion that the relevanssi_extract_phrases action is causing it. In short, the extract phrases action is taking a really long time to process, and eventually causes a server time-out and prevents me from being able to update my page.

    In their words (link to the image they sent me is also included) –

    “I temporarily disabled the long process killer to allow the processes to complete. Here is an overview of an instance where this request completed.

    Image Link

    It appears that the action relevanssi_extract_phrases seems to be taking the longest resulting in the long processing times. It looks like this is from the plugin relevanssi.

    As the process seems to go over 60 seconds it would then be affected by the server’s 60 second timeout limit. We recommend possibly reaching out ot the developer of the plugin to inquire on how to possibly optimize this process.”

    The page I need help with: [log in to see the link]

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

    (@msaari)

    For a quick fix, you can edit the lib/common.php file in Relevanssi.

    Find this line in the relevanssi_tokenize() function:

    $phrases = relevanssi_extract_phrases( $string_for_phrases );

    Change it to

    $phrases = array();

    This should fix this problem. I’ll come up with a better solution in the next version of Relevanssi.

    Thread Starter clandy

    (@clandyhigg)

    Thanks @msaari! That seems to have worked for now, but I look forward to a more long-term fix in future versions. Thank you!

    Plugin Author Mikko Saari

    (@msaari)

    Yes, this’ll be fixed. This is really a mistake, there’s no reason to run relevanssi_extract_phrases() for post content, only for search queries. The next version of Relevanssi will sort this out for good, and meanwhile this quick fix will have no adverse effects.

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

The topic ‘502 Error From Relevanssi’ is closed to new replies.