Welcome Guest, Not a member yet? Register   Sign In
Timeout in system/core/Input.php
#1

I am running CI3, upgraded from CI2 a while ago. I was checking my error logs recently and noticed the following:


Code:
ERROR - 2016-06-28 21:55:10 --> Severity: Error --> Maximum execution time of 30 seconds exceeded /home/project/public_html/system/core/Input.php 524
ERROR - 2016-06-28 21:56:40 --> Severity: Error --> Maximum execution time of 30 seconds exceeded /home/project/public_html/system/core/Input.php 522
ERROR - 2016-06-28 21:59:00 --> Severity: Error --> Maximum execution time of 30 seconds exceeded /home/project/public_html/system/core/Input.php 516

My whole error log is filled with these messages. It looks like the line it is timing out on is within the ip_address() function. My site is running behind cloudflare and put an array of cloudflare's proxy ips in the config proxy_ip list.


Code:
// Source List of IPS:
// https://www.cloudflare.com/ips-v4, https://www.cloudflare.com/ips-v6
$config['proxy_ips'] =
    array(
        '103.21.244.0/22',
        '103.22.200.0/22',
        '103.31.4.0/22',
        '104.16.0.0/12',
        '108.162.192.0/18',
        '141.101.64.0/18',
        '162.158.0.0/15',
        '172.64.0.0/13',
        '173.245.48.0/20',
        '188.114.96.0/20',
        '190.93.240.0/20',
        '197.234.240.0/22',
        '198.41.128.0/17',
        '199.27.128.0/21',
        '2400:cb00::/32',
        '2405:8100::/32',
        '2405:b500::/32',
        '2606:4700::/32',
        '2803:f800::/32',
    );

I have done a log of searching and haven't turned anything up. Any advice on how to fix this? Thanks!
Reply
#2

Raise the execution time in php.ini

max_execution_time=40 etc;
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 06-29-2016, 06:41 PM by errGuy.)

Edit: This turns out to be a bug in CI core. https://github.com/bcit-ci/CodeIgniter/issues/4679
Reply
#4

It could be a number of things, did you try profiling the app?

Could be an endless loop or a missing tag some place.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

Sorry, I should have just posted a new reply instead of editing my post above. I didn't see your reply yet when I edited it. 

Anyway, I submitted an issue on github.

https://github.com/bcit-ci/CodeIgniter/issues/4679
Reply




Theme © iAndrew 2016 - Forum software by © MyBB