s01e07 - GDPR Suite SUPPORT / QUESTIONS

Open to all! Ask other shopowners for help.
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 15 times

s01e07 - GDPR Suite SUPPORT / QUESTIONS

Post by Denzel »

Got
Notice: Trying to access array offset on value of type null in /includes/modules/content/account/cm_account_gdpr_nuke.php on line 86
after activation of nuke account module in admin. Disappears after choosing one country.
Code in line 86 could be changed to

Code: Select all

    return ($country['countries_name'] ?? 'all');
or even null without quotes to leave the field blank.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 15 times

s01e07 - GDPR Suite Nuke Account

Post by Denzel »

On Nuke Account I got

Warning: require(includes/template_top.php): failed to open stream: Datei oder Verzeichnis nicht gefunden in /ext/modules/content/account/nuke_account.php on line 88

Fatal error: require(): Failed opening required 'includes/template_top.php' (include_path='.:/usr/lib/php7.4') in /ext/modules/content/account/nuke_account.php on line 88

This is because template_top.php and template_bottom.php have been moved to the template directory. The code in lines 88 and 117 should be like this

Code: Select all

  require('templates/default/includes/components/template_top.php');

Code: Select all

  require('templates/default/includes/components/template_bottom.php');
The currently active template should be inserted here...
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s01e07 - GDPR Suite Nuke Account

Post by ecartz »

It should look more like

Code: Select all

require $oscTemplate->map_to_template('template_top.php', 'component');
But is this App even relevant anymore? GDPR is in core now.
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 15 times

Re: s01e07 - GDPR Suite Nuke Account

Post by Denzel »

When I confirm the deletion I get:
Notice: Undefined variable: osCsid in /ext/modules/content/account/nuke_account.php on line 76

Which could perhaps be fixed with a "global". Notice disappears, but I can't see any changes in the session table...

Code: Select all

      global $osCsid;
      tep_db_query("delete from sessions where sesskey = '" . $osCsid . "'");
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 15 times

Re: s01e07 - GDPR Suite Nuke Account

Post by Denzel »

ecartz wrote: Thu Dec 24, 2020 1:07 pm It should look more like

Code: Select all

require $oscTemplate->map_to_template('template_top.php', 'component');
But is this App even relevant anymore? GDPR is in core now.
Ah, thanks! I'm not that familiar with the template system yet. I mostly built for the admin site.

There are many modules in the suite, which are not in core.
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Has thanked: 1 time
Been thanked: 2 times

How to turn off GDPR

Post by plamastus »

Hi,

Is there a way to turn off GDPR?

Thanks,

Patrick
patrick
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Re: How to turn off GDPR

Post by Nigel »

It might be via Admin / Modules / Content
Look down the list.
Don't quote me on it though, there might be a better way.
plamastus
Member
Posts: 82
Joined: Fri Mar 12, 2021 2:09 am
Phoenix Version:
Has thanked: 1 time
Been thanked: 2 times

Re: How to turn off GDPR

Post by plamastus »

Awesome
Thanks
patrick
moshelakin

How to turn off GDPR

Post by moshelakin »

Hi,

Is there a way to turn off GDPR?

Thanks
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: How to turn off GDPR

Post by heatherbell »

moshelakin wrote: Wed Dec 29, 2021 4:27 am Is there a way to turn off GDPR?
GDPR are modules so disable or uninstall them - User Guide - https://phoenixcart.org/phoenixcartwiki ... le=Content


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply