New PHP error never happened before

[### Website URL
https://autolend.cf/crons/TenMinuteCron.php

Error Message

Fatal error : Uncaught Error: Call to undefined function sleep() in /home/vol9_4/epizy.com/epiz_25519234/autolend.cf/htdocs/inc/ExchangeAPIs/bitfinex.php:295 Stack trace: #0 /home/vol9_4/epizy.com/epiz_25519234/autolend.cf/htdocs/crons/TenMinuteCron.php(46): Bitfinex->bitfinex_updateMyLends() #1 {main} thrown in /home/vol9_4/epizy.com/epiz_25519234/autolend.cf/htdocs/inc/ExchangeAPIs/bitfinex.php on line 295

Other Information

My site started being down since yesterday. It worked well before? Is there any upgrades caused this error?

Welcome!

The sleep() function has always been disabled on free hosting, however it has been totally removed with the update to PHP8.2.

To fix this, just remove the sleep() function from the file. It won’t change how the code works, as the function never worked in the past anyways, and was just ignored.

6 Likes

I fixed this error, but another occurs:

autoLend.js:349 GET https://autolend.cf/1chinese/table_integration.php?tableChoice=3&curType=USD 508 (Loop Detected)

The error code shows in my chrome when I load my website autolend.cf.
However, when I run the php solely, it works well.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.