joomla 1.5 上的 Smartformer 组件间歇性错误

发布于 2024-12-19 11:51:36 字数 378 浏览 4 评论 0原文

我目前正在使用 joomla 1.5 的 smartformer 组件,并且一直面临着来自该组件的奇怪情况。场景如下:

我使用该组件创建了一个调查表单,当用户登录网站时,他们会看到欢迎页面,并且有一个名为“进行调查”的按钮,因此当他们单击此按钮时,他们可以开始回答问题。大多数情况下,表单会成功显示,但由于间歇性原因,它会无法显示。您将在浏览器上看到的内容实际上是空白的我尝试在将呈现表单的文件上调用此代码:

ini_set('display_errors', 1);

但没有显示错误。

我对此感到非常困惑,很难排除故障,因为没有显示实际发生的情况的消息。

有没有人以前遇到过同样的错误? 任何可能的解决方案将不胜感激。 :)

I'm currently using smartformer component for joomla 1.5 and have been facing a weird situation from this component. Here is the scenario:

I have created a survey form using the component as the user logs in to the site they would see the welcome page and there is a button named "Take Survey" so when they click on this button they could start answering the questions. Most of the time the form is going to show successfully, but for intermittent reasons it would fail to display. What your just going to see on your browser is really blank I tried to call this code on the file that will render the form:

ini_set('display_errors', 1);

but no errors are being displayed.

I'm very confused about this, it's very difficult to troubleshoot cause no messages are being displayed of what was actually happening.

Is there anyone who was able to encounter the same error before?
Any possible solutions would be greatly appreciated. :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

卷耳 2024-12-26 11:51:36

当然,你最好的选择就是你的错误日志。通过您的主机控制面板(cpanel、plesk 或类似的)您应该能够下载服务器的错误日志。由此您应该能够看到服务器遇到的确切错误是什么。您的控制面板可能还列出了“最近 100 个错误”列表 - 但这不太有用,除非您自己遇到错误后直接转到那里。

在实时站点的浏览器中显示错误并不是最好的调试方法,因为您基本上向那些甚至对错误消息的有用部分都没有用处的人披露了潜在的有害信息。

如果您确实必须在 Joomla 中打开错误显示,请通过 /administrator/ 区域的全局配置选项来执行此操作。但请记住再次快速将其关闭。我强调,仅当您可以在几次点击内可靠地重现错误时,此过程才有用。

在不查看错误日志的情况下,以下是我对间歇性错误的可能原因的“前 3 个”猜测:

  1. 您可能达到了内存限制,并且服务器正在终止该进程。如果您的主机设置允许,请提高 php.ini 中的 memory_limit。

  2. 超时 - 如果页面未在 x 秒内完成,您的服务器将终止脚本进程。通常,这会给出脚本标头未完成的消息。

  3. 遇到了其他一些资源限制 - CPU 使用情况、数据库查询。

但是 - 最终你的错误日志是你的朋友。

Surely your best bet here is your error logs. Through your hosting control panel (cpanel, plesk or similar) you should be able to download your server's error log. From this you should be able to see what the exact error is that the server is experiencing. Your control panel may also have a 'last 100 errors' listing - but this is less useful unless you go there directly after experiencing the error yourself.

Displaying errors in the browser on a live site isn't the best way of debugging as you basically disclose potentially harmful information to people who have no use even for the useful portion of the error message.

If you really must turn on error display in Joomla please do so through the /administrator/ area's global configuration options. But remember to quickly turn them back off again. I stress this procedure is only useful if you can reproduce the error reliably within a few clicks.

Without looking at your error logs here are my 'top 3' guesses as to the likely cause of an intermittent error:

  1. You are probably hitting a memory limit and the server is killing the process. Raise the memory_limit in php.ini if your hosting setup allows this.

  2. A timeout - if the page isn't finished within x seconds your server kills the script process. Generally this gives a script headers not finished message.

  3. Some other resource limit is being hit - CPU usage, database queries.

But - in the end your error logs are your friend.

只涨不跌 2024-12-26 11:51:36

我们已经确定了导致问​​题的原因。 smartformer 无法完全加载整个表单,尤其是重定向到用户应填写的调查表单的部分,因此我们的解决方案是创建一个单独的自定义模块来重定向到调查表单。我们真的不知道这个过程中到底发生了什么,但正如我所说,这种情况很少发生,而且由于截止日期很忙,我们需要比追踪错误更早的解决方案,但我真的很感谢那些向我提供想法的人。我确实从你们身上学到了很多东西,希望你们继续支持这样的论坛。 ;)

谢谢,

克里斯

We've already identified the one that is causing the problem. The smartformer fails to fully load the whole form most especially the part that will redirect going to the survey form to which the users should be filling up so our resolution is to just create a separate custom module that will redirect to survey form. We don't really know what is really happening on the process but as I said it seldomly happens and we need a resolution more earlier than tracing the bug due to a hectic deadline, but I really appreciate those who provided me their ideas. There are really lots of things that I'm learning from you guys hope you'll keep on supporting forums like this. ;)

Thanks,

Chris

纸伞微斜 2024-12-26 11:51:36

您需要增加 php.ini 中的内存限制。 Smartformer 的 Memory_limit 必须大于 64M。

You need to increase the memory_limit in php.ini. Memory_limit must be more that 64M for Smartformer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文