获取“未找到网页";和“超时错误"在形式上 [英] Getting "webpage is not found" and "timeout error" on form

查看:84
本文介绍了获取“未找到网页";和“超时错误"在形式上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试提交表单时出现错误.但是,仅当网页闲置9分钟或在上传之前几分钟时才会发生这种情况.另外,它是零星的.不是每次都这样.

这是在Chrome中

这是在FireFox中

I'm getting an error when I try to submit a form. But, this only happens if the webpage it idle for 9 or minutes before uploading. Also, it's sporadic. It's not every time.

This is in Chrome

This is in FireFox

此外,我偶尔也会收到此错误

Also, I will occasionally get this error too

这是我的php.ini文件:

This is my php.ini file:

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 10080

;extension_dir = ./
;upload_tmp_dir = /tmp

precision = 12

memory_limit = 100M
post_max_size = 100M
file_uploads = On
upload_max_filesize = 192M

您可以看到我又有set_max_time = 10080 3个小时了.整个框架的脚本编写良好,并且经过了全面调试.这些错误是随机的,仅在闲置后才会发生.但是,php.ini应该可以防止这种情况.抱歉,我无法提供更多信息,但是有什么想法吗?谢谢

You can see that I have set_max_time = 10080 aka 3 hours. The whole framework is scripted fine and totally debugged. These errors are random and only happen after being idle. Yet, the php.ini should prevent this. Sorry I can't provide more info, but are there any ideas on what might be going on? Thank you

这是在上传页面的顶部.用户登录后,已经设置了$ _SESSION ['user_id'].

This is at the top of the upload page. The $_SESSION['user_id'] is already set after the user is logged in.

<?php

    ob_start(); // <<<--- WILL THIS CAUSE A PROBLEM???
    session_start();

    include($ap.'/path-to-core-connectionfile...');

    if(!logged_in()) {
        header('location: http://???.com');
        }

?>

推荐答案

仅在闲置后发生

这可能是与会话有关的问题.例如,当控制器不再找到会话变量时,这种重定向循环.

This could be a session related problem. Some kind of redirection loop when your controller can't find session variables anymore, for example.

还,您是否尝试过查看Apache错误日志?

Also, have you tried to take a look at Apache error logs?

这篇关于获取“未找到网页";和“超时错误"在形式上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆