页面中缺少 DotNetNuke 模块
我为 nuke 4.8.4 站点开发的 nuke 模块有一个奇怪的问题。
我有一个模块,它不允许将另一个模块放置在同一窗格中的其下方。 只要它是窗格中的最后一个模块,所有内容都可以正常加载,但如果将其移到其他模块上方,则其他模块将无法加载。
我最初认为模块的标记有些奇怪,导致它分层在其他模块之上 - 但是当我在页面上查看源代码时,其他模块甚至不存在于源代码中。
以前有人见过这个问题吗?如果有,你是如何解决这个问题的?
编辑: 我们已经构建了十几个模块 - 一个模块在我的机器上执行此操作,但不同的模块在另一开发人员的机器上执行此操作。 在每台机器上,一个开发人员损坏的模块对于另一个开发人员来说可以正常工作。
我们注意到的另一件有趣的事情是,如果其中一个模块位于页面上,GetTabModules 将为该模块返回 2 行,两者都具有相同的 ModuleID。
I have a a strange problem with nuke modules i've been developing for a nuke 4.8.4 site.
I have one module that just refuses to allow another module to be placed BELOW it in the same pane. Everything loads fine as long as it is the last module in the pane, but if you move it above the other modules, the others won't load.
I originally thought that it was something odd in the markup of the module causing it to layer over the others - but when I view source on the page, the other modules don't even exist in the source.
Has anyone seen this issue before, and if so, how did you fix the problem?
EDIT:
We've built a dozen modules - and ONE module does this on my machine, but a DIFFERENT module does this on another developer's machine. On each machine, the module that is broken for one dev works fine for the other.
Another interesting thing that we've noticed is that in the case where ONE of these modules is on a page, the GetTabModules will return 2 rows for the one module, both with the same ModuleID.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这种情况有时会发生在我们身上,特别是在较旧的站点上,特别是如果有很长的历史,可能回收站装满了旧的/已删除的模块。 看起来我们一直试图将模块向上或顶部移动,但与其他模块相比,它不会移动。
如果您查看数据库并可以看到所涉及的 Module_Tab 记录与页面上的其他模块具有相同的排序顺序编号,或者它具有空值并向 NULL 添加 +1 或 -1,则问题很容易看出仍然返回NULL!
因此,对我们来说,答案始终是执行以下步骤来清除问题(这可以在不访问数据库的情况下完成):
此过程使它们的排序顺序清晰/无关,然后将每个模块添加回来,开始从 1 到 2 等的新排序号,之后,所有模块将通过正常的向上/向下移动操作正常工作。
This sometimes happens to us, especially on older sites, AND especially if there is a long history, possibly with the recycling bin filled with old/deleted modules. It will seem that we keep trying to move a module UP or TOP and it won't move compared to the others.
The problem is easy to see if you look at the database and can see that the Module_Tab record involved has the same sort order number as other modules on the page, OR that it has a null value and adding a +1 or -1 to NULL still returns NULL !
So for us the answer is always to perform the following steps to clear out your issues (and this can be done without accessing the database):
This process makes their sort order clear/irrelevant and then adding each module back in starts a new ordering number from 1 to 2, etc and after that, all modules will work properly with the normal Up / Down move actions.
听起来你的模块代码正在破坏 DNN。 我将运行带有调试器的站点,并逐步执行实例化模块的代码。
It sounds like your module code is blowing up DNN. I'd run the site with a debugger attached and step through the code that is instantiating the modules.
我们卸载了& 重新安装了有问题的模块,它们现在工作正常。 一定是安装过程中出现了某种错误。 我将升级到 4.9.2,看看是否会遇到类似的问题。
We uninstalled & reinstalled the offending modules, and they work fine now. Must have been some sort of bug in the install process. I'm going to upgrade to 4.9.2 and see if we run into similar issues there.