1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenForo_Search_DataHandler_Abstract::_insertIntoIndex()

Discussion in 'XenForo Development Discussions' started by Daniel Hood, Jan 15, 2014.

  1. Daniel Hood

    Daniel Hood Well-Known Member

    I'm working on making a data handler and depending on certain data in one of the content parameters, I want to trigger a deferred method. I've noticed that for some reason when I have XenForo_Application::defer() called from within this function, it stops the content from being saved.

    I know that it isn't causing a fatal error and that's the problem because the deferred method is still getting triggered and the search index table has a row for the content but the content doesn't exist in the table it should.

    When I remove the call to XenForo_Application::defer(), everything works as it should except my deferred file obviously isn't being called.

    Does anyone know why XenForo_Application::defer is interferring with the datawriter of the initial content?
     

Share This Page