Marco Ro Posted February 7, 2019 Share Posted February 7, 2019 Hi, Sometime people that try to make the registration can't do and in the page load a server error 500. In the log Exceptions I see this alert: Raw data option with CURL not supported for PATCH (in /wire/core/WireHttp.php line 670) What kind of error is? and how can I solve it? Thank you. Link to comment Share on other sites More sharing options...
Marco Ro Posted February 8, 2019 Author Share Posted February 8, 2019 Could be a bug in the new version 3.0.125 ? Before that I update from the 3.0.098 this error doesn't show up. I have see that in the 3.0.098 and 3.0.123 this part was commented. protected function sendCURL($url, $method = 'POST', $options = array()) And in the function that give me the error at 640 row of WireHttp. I have downgraded to the version 3.0.123 and now on the registration form works. Link to comment Share on other sites More sharing options...
flydev Posted February 8, 2019 Share Posted February 8, 2019 17 hours ago, MarcoPLY said: What kind of error is? and how can I solve it? Hi @MarcoPLY Not really helping here, but the update about WireHttp and cURL came in ProcessWire 3.0.124 and it say : Quote The WireHttp core class now includes cURL support. In practice this means that when you make a HTTP request using WireHttp, behind the scenes it'll attempt to use PHP's fopen(), and if that isn't available it will fall back to sockets – and finally, if sockets are unavailable as well, it will attempt to use cURL. https://github.com/processwire/processwire/blob/dev/wire/core/WireHttp.php#L670 I am curious to see from where its happening. What is your registration code ? It is the LoginRegister module which is triggering this exception ? (sorry, I have trouble expressing myself, I'm sick ? ) Link to comment Share on other sites More sharing options...
Marco Ro Posted February 8, 2019 Author Share Posted February 8, 2019 Hi @flydev, I'm sorry you're sick. Honestly I don't know why there is this error, but if I can help, yes I use LoginRegister module, my code it's nothing particular. This problem show up in every registration from on the website, also in the subdomain with other installation that share the wire core folder. Link to comment Share on other sites More sharing options...
Rudy Posted December 13, 2019 Share Posted December 13, 2019 I am using FormBuilder 0.40 with Stripe field 6 and this error came up as well on 3.0.147. Link to comment Share on other sites More sharing options...
matjazp Posted December 13, 2019 Share Posted December 13, 2019 Does it help if you add: else if($method == 'PATCH') { curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); } on line 625? I'm not using FormBuilder or LoginRegister module, so I may be way off. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now