News:

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

Main Menu

policy agreement error

Started by quartzster, March 31, 2020, 04:22:29 PM

Previous topic - Next topic

quartzster

using smf 2.0.1.7

have no idea how to fix this
would appreciate any help

8: Undefined index: require_policy_agreementApply Filter: Only show the errors from this fileFile: /home/*******/public_html/Themes/default/GenericControls.template.php (registration_agreement sub template - eval?)
Line: 53

quartzster

This is the code

sCode: ', JavaScriptEscape($smiley['code']), ',

quartzster

Am I doing something wrong here, that there are no responses?
Would appreciate any help

Kindred

turn off eval, in the server settings screen of the admin.
Сл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."

quartzster

Thank you so much for replying, I really appreciate it

I did what you said, and thought I had it beat, but later on

Apply Filter: Only show the error messages of this URLhttp://www.***.com/smf/index.php?action=registerApply Filter: Only show the errors with the same message8: Undefined index: require_policy_agreementApply Filter: Only show the errors from this fileFile: /home/******/public_html/Themes/default/Register.template.php
Line: 53   

shawnb61

Thanks for doing that.  It gave us more info!

Can you reproduce it?  Do you know what action triggers the error?  Are they frequent? 



Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

quartzster

There were several every day until I did what Kindred said

Now there were only two yesterday, and seems to me the error
is triggered by an IP addresses that I am pretty sure have nothing
to do with my forum. The majority of my members are in
Canada,

I have attached a screen shot...thank you so much for your help.


shawnb61

How do you have guests configured?  Is everything default?  Or did you remove guest access for certain functions?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

Another question: Have you enabled GDPR?

One more:  Is this a new install, or did you upgrade an existing forum?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

quartzster

GDPR....I would say no, because I don't know how to do that.

This is not a new install, has been running for years, and
I have only kept up with the suggested upgrades.

Everything is basically default for guests, except someone
who is not a registered member, cannot see contact info
for members, they cannot see the entries on simple portal,
or the forum Boards and sub Boards.

I am willing to provide the url to someone with knowledge
and experience to have a look, if they wish.

thanks again for the reply

quartzster

I hope I didn't give the wrong impression that this issue is solved.
I am still getting several errors of this type per day.

If there is any other info I can provide, please let me know.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

quartzster

Yes, the registration process seems to work well.

The error seems to be always caused by a "guest" which
makes sense if they are trying to register I guess.

But mostly caused by Ip's with spam complaints.

I have blocked those in Cpanel, but that doesn't seem
to always work that well.

I do get the odd legitimate member causing it as well.


Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

quartzster

yes I do as well as an additional question to be answered.

Sir Osis of Liver

Sounds like the error is being caused by a mod.  If everything is working and you just want to stop the errors, you can make some fudge -

Register.template.php



// Age restriction in effect?

        if (!isset($context['require_policy_agreement']))
       $context['require_policy_agreement'] = null;

if ($context['show_coppa'])
echo '
<input type="submit" name="accept_agreement" value="', $context['coppa_agree_above'], '" class="button_submit" /><br /><br />
<input type="submit" name="accept_agreement_coppa" value="', $context['coppa_agree_below'], '" class="button_submit" />';
else
echo '
<input type="submit" name="accept_agreement" value="', $txt['agreement' . ($context['require_policy_agreement'] ? '_policy' : '') . '_agree'], '" class="button_submit" />';

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

quartzster

Thank you very much, I will try that.

There are two...change them both?

Name
/public_html/smf/Themes/default/Register.template.php
/public_html/Themes/default/Register.template.php

Doug Heffernan

Quote from: quartzster on April 14, 2020, 10:21:02 AM
Thank you very much, I will try that.

There are two...change them both?

Name
/public_html/smf/Themes/default/Register.template.php
/public_html/Themes/default/Register.template.php

You should change the one that is inside the forum folder that you are using, which by looking at your previous posts appears to be the one inside the smf folder.

quartzster


Advertisement: