Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: simplengmakina on May 04, 2020, 09:54:24 AM

Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 04, 2020, 09:54:24 AM
I can't get "Verification questions" to work. If I try to add one in the menu, it doesn't change. There's also no option to add a question. I tried adding in the database settings table, the integer moved. But no question or answer field.

I did the build update with the recaptcha, still not working. Should I upgrade my database?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Kindred on May 04, 2020, 10:36:04 AM
index.php?action=admin;area=antispam

at the bottom of that section...

number of questions to ask...   and fields to add the questions (and answers)
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 04, 2020, 11:58:10 AM
I only get this... When I change the number and save, nothing happens. Click on English nothing happens...
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Kindred on May 04, 2020, 12:30:19 PM
and did you click on the [English] link?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 04, 2020, 12:35:31 PM
Nothing happened when I click the link
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Kindred on May 04, 2020, 12:43:58 PM
are you using 2.1 RC2 from github?


I can not recreate your problem using the official RC2 or newer...
Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 04, 2020, 01:04:29 PM
Yes I just installed over my installation, upgraded database and still same issue... :(
Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 05, 2020, 11:32:35 AM
Should I go into the database tables for a fix? Narrowed down to smf_qanda  table as the likely culprit. How should entries look like or even the columns. Likely the upgrade I did might have messed it up...
Title: Re: 2.1 RC1 Registration problem
Post by: Kindred on May 05, 2020, 04:05:53 PM
you should, generally, never touch the database directly...
Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on May 28, 2020, 11:18:58 AM
Generally yes, but I think this problem is beyond generally...
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Arantor on May 28, 2020, 11:36:23 AM
First, are you using a version that isn't multiple years old? If you are not yet on RC2 (or better, GitHub), upgrade.

I'm 99% sure the issue you describe is a non-database bug in RC1.
Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on September 30, 2020, 12:00:02 PM
I am using RC2. And I also did a fresh install to try if my upgraded forum was the problem. The fresh installed forum has the same issue.
Title: Re: 2.1 RC1 Registration problem
Post by: W2NAP on September 30, 2020, 12:26:28 PM
Quote from: simplengmakina on September 30, 2020, 12:00:02 PM
I am using RC2. And I also did a fresh install to try if my upgraded forum was the problem. The fresh installed forum has the same issue.

Are you getting verification fail on captcha? that seems to be what is happening to me, reg failed. turned off SMF fuzzy letter captcha, try again reg failed, turned off questions, try again leaving only google recaptcha. reg fails with "verification failed, invalid captcha value" using the latest git pull from 29 Sept.  google cap, seems to be working however as it asks the dumb "select the stop lights" etc.
Title: Re: 2.1 RC1 Registration problem
Post by: W2NAP on September 30, 2020, 03:56:14 PM
Quote from: W2NAP on September 30, 2020, 12:26:28 PM
Quote from: simplengmakina on September 30, 2020, 12:00:02 PM
I am using RC2. And I also did a fresh install to try if my upgraded forum was the problem. The fresh installed forum has the same issue.

Are you getting verification fail on captcha? that seems to be what is happening to me, reg failed. turned off SMF fuzzy letter captcha, try again reg failed, turned off questions, try again leaving only google recaptcha. reg fails with "verification failed, invalid captcha value" using the latest git pull from 29 Sept.  google cap, seems to be working however as it asks the dumb "select the stop lights" etc.

Might have figured out my issue at least, it appears (at least mine did) when you enter in the google site and secret key, more data gets written into the sql db thus making it not work. once i put the site key in manually in phpmyadmin reg with captcha/recaptcha seems to work now with no errors
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Suki on September 30, 2020, 04:36:06 PM
Do you have an example of how the data was saved to the db?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: W2NAP on September 30, 2020, 09:07:56 PM
Quote from: Suki on September 30, 2020, 04:36:06 PM
Do you have an example of how the data was saved to the db?

recaptcha_secret_key/site_key in _settings had the funny stuff added to it

(not my real key just example)
key = 49d8yf23oihfgt982ytt
pushed in DB as = 49d8yf23oihfgt982ytt347du

once I manually edited secret and site key within phpmyadmin to the correct (took the funny stuff out) things seem to be working fine. no more invalid captcha value error.
server debian buster, php 7.3.19-1~deb10u1  MySQL 10.3.23-MariaDB-0+deb10u1
I am on VPS so I control everything on the server.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Suki on October 01, 2020, 05:02:48 PM
I was hoping the garbage introduced by saving the setting was something along the lines of malformed data or a weird character. The extra bit "347du" looks normal and can be simply added accidentally rather than by the system.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: W2NAP on October 01, 2020, 06:43:43 PM
Quote from: Suki on October 01, 2020, 05:02:48 PM
I was hoping the garbage introduced by saving the setting was something along the lines of malformed data or a weird character. The extra bit "347du" looks normal and can be simply added accidentally rather than by the system.

Yeah what I was thinking as well, however when copy keys from google. it was copy and paste and in the smf/admin/antispam they key showed correct. it wasn't until I poked around phpmyadmin that I discovered the extra bits. really had I not went poking in phpmyadmin id of never of discovered the issue. So now the question is how did the extra bits get in the db? is it an smf bug or is it a debian/mariadb bug? not noticed any other extra bits in anything else in the db yet. im still poking around looking for anything else.
Title: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on October 01, 2020, 10:27:52 PM
Quote from: W2NAP on September 30, 2020, 12:26:28 PM
Quote from: simplengmakina on September 30, 2020, 12:00:02 PM
I am using RC2. And I also did a fresh install to try if my upgraded forum was the problem. The fresh installed forum has the same issue.

Are you getting verification fail on captcha? that seems to be what is happening to me, reg failed. turned off SMF fuzzy letter captcha, try again reg failed, turned off questions, try again leaving only google recaptcha. reg fails with "verification failed, invalid captcha value" using the latest git pull from 29 Sept.  google cap, seems to be working however as it asks the dumb "select the stop lights" etc.

I cannot add any questions, at all. No field for questions come out. If I try to increase the number nothing happens, it goes back to 0.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Suki on October 02, 2020, 10:29:23 AM
It looks like a JS problem, go to that page, hit F12 (at least on most browsers) to open the console and see if there is any error when you interact with all the options and settings on that page.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on October 02, 2020, 12:15:20 PM
Quote from: Suki on October 02, 2020, 10:29:23 AM
It looks like a JS problem, go to that page, hit F12 (at least on most browsers) to open the console and see if there is any error when you interact with all the options and settings on that page.

Quite oddly, no error.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: live627 on October 02, 2020, 09:11:28 PM
do you get one when you refresh the page?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on October 03, 2020, 03:31:55 AM
Quote from: live627 on October 02, 2020, 09:11:28 PM
do you get one when you refresh the page?

Tried that too, to no avail. Would using Cloudflare be a problem? Maybe the built-in JS minifying option causing this?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: live627 on October 03, 2020, 04:57:54 PM
I forgot the minifier was a thing. Can you disable it and then try for errors again?
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on October 05, 2020, 07:12:57 AM
Quote from: live627 on October 03, 2020, 04:57:54 PM
I forgot the minifier was a thing. Can you disable it and then try for errors again?

It wasn't the minifier, but Rocketloader causing the issue. I disabled it and added questions and then enabled it again after adding questions. But the member pulldown JS doesn't work with it on too. So I can't logout...
Title: Re: Re: 2.1 RC1 Registration problem
Post by: simplengmakina on April 16, 2022, 01:09:32 PM
Update: Fixed this problem by setting a disable Rocketloader on the whole forum directory.
Title: Re: Re: 2.1 RC1 Registration problem
Post by: Doug Heffernan on April 16, 2022, 01:12:30 PM
Quote from: simplengmakina on April 16, 2022, 01:09:32 PMUpdate: Fixed this problem by setting a disable Rocketloader on the whole forum directory.

Glad to see that the issue got fixed and thank you for letting us know. I will go ahead and mark this topic as solved.