Maximum execution time of 60 seconds exceeded at RecursiveDirectoryIterator #45619
-
Hello, I have a problem with RecursiveDirectoryIterator of symfony finder I don't know what could cause this problem. Can you please give me some advice ? exception: [2023-01-12 12:06:58] production.ERROR: Maximum execution time of 60 seconds exceeded {"userId":1082,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 60 seconds exceeded at D:\\project\\vendor\\symfony\\finder\\Iterator\\DateRangeFilterIterator.php:48)
[2023-01-12 12:06:58] production.ERROR: Maximum execution time of 60 seconds exceeded {"userId":1082,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 60 seconds exceeded at D:\\project\\vendor\\symfony\\finder\\Iterator\\RecursiveDirectoryIterator.php:89) Laravel 8 vue.js call API Laravel Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Check your code for efficiency. If you sure there is no another way for what do you want to make, change your php.ini configuration: |
Beta Was this translation helpful? Give feedback.
-
The answer is simple. The RecursiveDirectoryIterator does what it says on the can and iterates files and subdirectories over a directory structure however deep it goes which can be very deep indeed. What you need to do is to find an alternative way of finding what you are looking for i.e. by narrowing down the scope of the RecursiveDirectoryIterator or by maintaining an index of where the file you want is located. |
Beta Was this translation helpful? Give feedback.
-
rwqewr |
Beta Was this translation helpful? Give feedback.
The answer is simple. The RecursiveDirectoryIterator does what it says on the can and iterates files and subdirectories over a directory structure however deep it goes which can be very deep indeed.
What you need to do is to find an alternative way of finding what you are looking for i.e. by narrowing down the scope of the RecursiveDirectoryIterator or by maintaining an index of where the file you want is located.