KyranRana / cloudflare-bypass

A new and improved PHP library which bypasses the Cloudflare IUAM page using cURL
MIT License
275 stars 97 forks source link

Last version not work #143

Closed alloweb34 closed 4 years ago

alloweb34 commented 4 years ago

Hello,

I was already using the old version of your script and it worked well but unfortunately it has stopped working since yesterday. but the new version does not want to work.

[22-Nov-2019 05:16:05 UTC] PHP Fatal error: Uncaught Error: Call to a member function getDataType() on null in /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/Model/UAM/UAMPageFormParams.php:60 Stack trace:

0 /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/Model/UAM/UAMPageFormParams.php(36): CloudflareBypass\Model\UAM\UAMPageFormParams::getJschlAnswerFromPage(Object(CloudflareBypass\Model\UAM\UAMPageAttributes))

1 /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/Model/UAM/UAMPageAttributes.php(55): CloudflareBypass\Model\UAM\UAMPageFormParams::getParamsFromPage(Object(CloudflareBypass\Model\UAM\UAMPageAttributes))

2 /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/CFCurlImpl.php(146): CloudflareBypass\Model\UAM\UAMPageAttributes->__construct('https', 'www.......', '\r\n<...')

3 /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/CFCurlImpl.php(96): CloudflareBypass\CFCurlImpl->bypassIUAMPage(Resource id #14, '\r\n< in /home/clickabc/public_html/vendor/kyranrana/cloudflare-bypass/src/main/Model/UAM/UAMPageFormParams.php on line 60

Can you guide me to make it work.