开发者

404 Page Not Found - CodeIgniter related

开发者 https://www.devze.com 2023-04-01 19:30 出处:网络
I am using the Codeigniter framework in a project - I have a tool which reads an array and sends out over 10,000 emails using the SwiftMailer Email framework.

I am using the Codeigniter framework in a project - I have a tool which reads an array and sends out over 10,000 emails using the SwiftMailer Email framework.

One form whic开发者_运维知识库h I have once submitted is supposed to send out each individual email, however it doesnt sent out all of them as after a period of time I get the following error:

404 Page Not FoundThe page you requested was not found. - 500.shtml

The page itself doesnt actually redirect anywhere else so cannot understand why it would be saying this - anyone have any ideas?

Thanks


It looks like you're actually ending up with a 500 error, but when CI tries to display the custom error page for a 500 error (500.shtml), it can't find it, and so throws a 404 instead. Check your logs for the cause of the 500 error.


It'll be a custom error page, probably set up on the web server itself. If it's an Apache server, check the httpd config and remove any ErrorDocument directives you don't want so you can see the actual error.

As Tom said, if this is happening after a significant delay, you're likely getting a timeout. The length of timeouts can be increased from the PHP end using set_time_limit() or the php.ini setting max_execution_time. However in general if you have a long-running task it is much better to run it in a background process than try to shoehorn it into an HTTP request.

0

精彩评论

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