phpbb warning after update

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
durangod
Registered User
Posts: 676
Joined: Tue Nov 03, 2009 1:26 pm

phpbb warning after update

Post by durangod » Fri Sep 14, 2018 6:56 pm

hi after update this morning we are still getting the php warnings does this mean the update did not work?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php on line 68: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php on line 68: file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4541: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4541: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4541: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)

So i see the issue is allow_url_fopen is disabled. I dont have any way to turn that on without turning it on server wide and i wont do that. Can we just remove the google requirement by using a different captcha.

UPDATE: we changed over to the question captcha and no warnings.. i refuse to set allow_url_fopen to enabled on whole server... google better find another way to get its data...

User avatar
Lumpy Burgertushie
Registered User
Posts: 64890
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: phpbb warning after update

Post by Lumpy Burgertushie » Fri Sep 14, 2018 10:39 pm

If you are using an older version of recaptcha then that could be the problem. google has stopped supporting the use of the older version from what I have read on here.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
durangod
Registered User
Posts: 676
Joined: Tue Nov 03, 2009 1:26 pm

Re: phpbb warning after update

Post by durangod » Sat Sep 15, 2018 1:06 am

Well that was pretty quick for them to do that because i just got my recaptcha keys 3 days ago lol I heard on the grapevine that some big dating site lost recaptcha support and tons of people were not able to log in for a whole weekend.

User avatar
durangod
Registered User
Posts: 676
Joined: Tue Nov 03, 2009 1:26 pm

Re: phpbb warning after update

Post by durangod » Tue Sep 18, 2018 6:30 am

The solution here is to do it with curl, then you wont need allow_url_fopen at all..

This was not for phpbb, i have not edited my files yet here, but this is what i added to another script and it works.

you can usually leave your data for the keys and the response alone if the array is called $data and then just do this after the data array variable is set

Code: Select all


		//mod dave user curl instead of file_get_contents
		
	 $verify = curl_init();
        curl_setopt($verify, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify");
        curl_setopt($verify, CURLOPT_POST, true);
        curl_setopt($verify, CURLOPT_POSTFIELDS, http_build_query($data,'','&'));
        curl_setopt($verify, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($verify, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($verify);
		
		//end mod dave
bingo recap is working for my other site and was getting the same error... ill have to try this on phpbb... does anyone know what file its in so i dont have to search ?

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 31 guests