Title: Timeout error
Last modified: March 9, 2024

---

# Timeout error

 *  [mitys](https://wordpress.org/support/users/mitys/)
 * (@mitys)
 * [2 years ago](https://wordpress.org/support/topic/timeout-error-21/)
 * Hello, I have some elementor templates that are included in this page When I 
   try to access it with the highlight terms, it gets me to a timeout error.
 * Any help, please ?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftimeout-error-21%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years ago](https://wordpress.org/support/topic/timeout-error-21/#post-17487191)
 * The way to find out where it times out is to add `exit()` clauses to the `relevanssi_highlight_terms()`
   function in /lib/excerpts-highlights.php to see how far it gets before it times
   out. Other than that, it’s hard to say. When Relevanssi adds the highlights, 
   it makes a bunch of regex queries on the page; that shouldn’t be terribly hard,
   but if the page is long enough, I guess it can get complex.
 * You can disable the highlighting on that specific page by adding a filter hook
   on `relevanssi_highlight_docs` option to turn it to `off` for that page:
 *     ```wp-block-code
       add_filter( 'pre_option_relevanssi_highlight_docs', function( $value ) {
         global $post;
         if ( 3587 === intval( $post->ID ) ) {
           return 'off';
         }
         return $value;
       } );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Timeout error’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=2025044)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/timeout-error-21/#post-17487191)
 * Status: not resolved