Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution size & time exhausted. #63

Open
DaAwesomeP opened this issue May 12, 2014 · 3 comments
Open

Execution size & time exhausted. #63

DaAwesomeP opened this issue May 12, 2014 · 3 comments

Comments

@DaAwesomeP
Copy link
Contributor

I'm not sure if there is already an issue for this, but I am getting this every time browscap downloads an ini.

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\\path\\to\\website\\vendor\\garetjax\\phpbrowscap\\src\\phpbrowscap\\Browscap.php on line 961
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 165 bytes) in C:\\path\\to\\website\\vendor\\vendor\\garetjax\\phpbrowscap\\src\\phpbrowscap\\Browscap.php on line 677

I've tried updating with Composer a few times, but it hasn't fixed it.

@Invis1ble
Copy link

+1
ini file is a huge. I had to disable auto updating in one of my projects due to lack of memory :(

@DaAwesomeP
Copy link
Contributor Author

Maybe some sort of segmented downloading or saving a file to the disk every 4 mb and then combine them at the end.

Another solution which I strongly prefer would be to have a separate cron job. This way a user trying to access the website can procede as normal if there is an error.

@DaAwesomeP
Copy link
Contributor Author

There is a similar issue at the other browscap repo: issue 20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants