raihanafroz / zkteco

ZKTeco Laravel Library
151 stars 57 forks source link

Maximum execution time of 60 seconds exceeded #9

Closed Fajendagba closed 1 year ago

Fajendagba commented 2 years ago

So I've installed the library in my Laravel project and also have a K40 device. I want to test the device connection with the library ( I used the $zk->connect () method, but it won't output anything, rather it would only slow down and finally return the error "Maximum execution time of 60 seconds exceeded".

Pls anyone who knows this fix should help 🥺

trungkien10290 commented 2 years ago

So I've installed the library in my Laravel project and also have a K4

The same issue! are u have any solutions? I'm using a C3 device.

raihanafroz commented 2 years ago

Good day dear,

Please add "ini_set('max_execution_time', 300);" line before calling "$zk ->connect()" method and wait for the response.

Thank you.

On Wed, Nov 24, 2021 at 4:59 PM JOY @.***> wrote:

So I've installed the library in my Laravel project and also have a K40 device. I want to test the device connection with the library ( I used the $zk->connect () method, but it won't output anything, rather it would only slow down and finally return the error "Maximum execution time of 60 seconds exceeded".

Pls anyone who knows this fix should help 🥺

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raihanafroz/zkteco/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHFULN5UUAUMINGBXFSPGSLUNTAQLANCNFSM5IVYFYOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.