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

_messagePreSave not being called?

Liam W

Well-known member
#1
I'm in the middle of developing an add-on, and I've hit a headache inducing scenario :(

For some reason, the _messagePreSave method isn't being called at all on the post data writer... This is causing a headache as I can't figure out why.

It's in a cron run environment (manually running the cron).

Is this supposed to happen? Because it's really annoying...

Liam
 

Xon

Well-known member
#2
Another add-on is likely failing to respect calling the parent::_messagePreSave.

Try grepping your library folder for _messagePreSave and look for any time a file doesn't have two entries (besides XenForo core stuff obviously).
 

Xon

Well-known member
#4
_preSave() unconditionally _messagePreSave(), which is called as part of save().

Unless you have _importMode set, then _preSave() is skipped, so something might be calling setImportMode. But you'll need to grep for that since only an add-on would be doing that.:p
 

Liam W

Well-known member
#5
Another add-on is likely failing to respect calling the parent::_messagePreSave.

Try grepping your library folder for _messagePreSave and look for any time a file doesn't have two entries (besides XenForo core stuff obviously).
Scratch that, I just disabled all add-ons and it's working. Now to figure out which one :)