News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

8: Undefined index: require_policy_agreement

Started by spiros, December 31, 2019, 04:19:50 AM

Previous topic - Next topic

spiros

After upgrading to 2.0.17
File: ...forum/Themes/default/Register.template.php
Line: 53

52: echo '
==>53: <input type="submit" name="accept_agreement" value="', $txt['agreement' . ($context['require_policy_agreement'] ? '_policy' : '') . '_agree'], '" class="button_submit" />';
54:
55: echo '



Line: 177

175: }
176: }
==>177:
178: // If you have to agree to the privacy policy, it needs to be loaded from the database.
179: if ($context['require_policy_agreement'])
180: {

quartzster

Did you solve this so there is no longer an error?

Magnum.cro

I have same error/problem with 2.0.17 with guests....


http://******.***/forum/index.php?action=register
8: Undefined index: require_policy_agreement
File: /home4/croinfo1/public_html/forum/Sources/Register.php
Line: 177

Matthias

That sounds like a language specific thing.

Have a look at your language files in themes/default/languages
Search for require_policy_agreement and add it to your language.
Quality first

Kindred

I believe that the problem can be fixed by activating the agreement and then disabling it -- thus saving the result to the settings table
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Matthias

Ok, that is a workaround.
But I think, the better way is to get the language files up to date...
Quality first

Aleksi "Lex" Kilpinen

No, I'd agree with Kindred - Would seem like a missing setting, it's not on or off, and hence the error.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Matthias

OK, that should bee.
But if that were the case, it would be a bug.
Quality first

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Matthias

I am a bit surprised because you are writing version 2.0.18. As far as I know, the current version is 2.0.17
Quality first

Aleksi "Lex" Kilpinen

2.0.18 is in beta testing, and will likely be released in the near future.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

@rjen

Quote from: Aleksi "Lex" Kilpinen on January 30, 2021, 05:49:14 AM
2.0.18 is in beta testing, and will likely be released in the near future.

What Lex said.. and since I am doing some beta testing I can tell you from  my own experience that this is fixed...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Matthias

Ok, I did not know about that Version, but I will look forward to it.
I would not have thought that there would be one more update in 2.0.xx
Quality first

shadav

Quote from: Matthias on January 30, 2021, 02:02:21 PM
Ok, I did not know about that Version, but I will look forward to it.
I would not have thought that there would be one more update in 2.0.xx

while 2.1 is still in rc, there will still be some updates to 2.0.x ;) as needed, it's not eol yet  :P

Matthias

I understand that, of course.
As long as a version is a release candidate, fundamental things can be changed easliy.
Final versions can no longer be fundamentally changed because they always have to be compatible with the previous version. So you have to think carefully about when a version is final.
Quality first

Painlesstom

Quote from: @rjen on January 30, 2021, 12:44:47 AM
A bug that has already been fixed in 2.0.18

I just went to 2.0.18, cleared my logs, and still have that error too. 

Guest
Type of error: Undefined
https://www.improvingyourmokai.com/index.php?action=register [nofollow]
Undefined index: require_policy_agreement
File: /home/improvin/public_html/Sources/Register.php
Line: 177

// If you have to agree to the privacy policy, it needs to be loaded from the database.
==>177:      if ($context['require_policy_agreement'])

Advertisement: