开发者

Drupal 7 - hook_node_insert is being ignored and out of memory error

I have hook_node_insert in my module. It worked before but it is not working anymore. The only clue I have, is that when I (re)enable modules, then it gives me out of memory fatal error. After that, it 开发者_JS百科shows that all modules, which I enabled are enabled and usually everything works after this out of memory error. What do you think, is this error causing the problem or not? And in any case, what are the solutions? (My hostgator shared hosting plan doesn't allow me to increase memory limits)


You need to call somewhere node_save() explicitly.

node_save($node)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜