Drupal 7 - hook_node_insert 被忽略并且内存不足错误
我的模块中有 hook_node_insert 。它以前有效,但现在不再有效。我唯一的线索是,当我(重新)启用模块时,它会给我内存不足的致命错误。之后,它显示我启用的所有模块都已启用,并且通常在出现内存不足错误后一切正常。您认为这个错误是否导致了问题?无论如何,解决方案是什么? (我的 Hostgator 共享托管计划不允许我增加内存限制)
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 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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要显式调用某个地方的node_save()。
You need to call somewhere node_save() explicitly.