• Resolved Jean-Sébastien Mansart

    (@jsmansart)


    Hi

    With
    – relevanssi v4.22.1
    – facetwp v4.2.12
    – FacetWP – Relevanssi integration v0.8.1

    In the search result page, with an empty keyword search like : ?s=
    we’ve got this error :

    Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes)

    Thanks for the help

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

    (@msaari)

    That query returns every post and needs to load every post in memory. Your site is likely too big for allowing termless searches. You can disable that. If you don’t want to disable it, the result set must be limited somehow.

    Thread Starter Jean-Sébastien Mansart

    (@jsmansart)

    Thanks Mikko, you’re right I’ve got this on my functions.php file :

    remove_filter( 'relevanssi_query_filter', 'relevanssi_limit_filter' );

    I will remove this line, and maybe adjust the number of results with

    add_filter( 'pre_option_relevanssi_throttle_limit', function( $limit ) { return 250; } );
    Thread Starter Jean-Sébastien Mansart

    (@jsmansart)

    Solved with the above solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowed memory size of 536870912 bytes exhausted’ is closed to new replies.