Advertisement:

Author Topic: Undefined index: privacy_policy  (Read 250 times)

Offline arjanhs

  • Semi-Newbie
  • *
  • Posts: 75
Undefined index: privacy_policy
« on: October 16, 2020, 05:14:23 AM »
Getting the following error message for some time now, even with previous versions, never been able to solve them. Hoped that RC3 would solve it, but it doesn't.
How could i solve this.

Type of error: Undefined_vars
Error message:
8: Undefined index: privacy_policy
File: /var/www/clients/server/forum/Sources/Admin.php
Line: 318

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,324
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Undefined index: privacy_policy
« Reply #1 on: October 16, 2020, 05:20:40 AM »
Hey there.

That string should be in Agreement.{language}.php file:
Code: [Select]
$txt['privacy_policy'] = 'Privacy Policy';
What language you use on your forum?

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,810
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Undefined index: privacy_policy
« Reply #2 on: October 16, 2020, 08:33:42 AM »
Also in Admin.english.php



EDIT: Lang packs may  need fixed

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,324
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Undefined index: privacy_policy
« Reply #3 on: October 16, 2020, 08:43:50 AM »
Indeed, good spot.

Issue opened on github:
https://github.com/SimpleMachines/SMF2.1/issues/6297

Offline arjanhs

  • Semi-Newbie
  • *
  • Posts: 75
Re: Undefined index: privacy_policy
« Reply #4 on: October 19, 2020, 07:24:03 AM »
Hey there.

That string should be in Agreement.{language}.php file:
Code: [Select]
$txt['privacy_policy'] = 'Privacy Policy';
What language you use on your forum?

I'm using multiple languages, english and dutch

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,324
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Undefined index: privacy_policy
« Reply #5 on: October 19, 2020, 08:51:51 AM »
Can you confirm that you have the string from the above in your Admin.{language}.php file?