Problem/Motivation

Hi Matthew, the GDPR module is nice. I haven't been able to get the site to function without it, which is fine. We would like to use it, but we want to modify it for the US and potential Canadian members, since we're on the US/Canada border. How do you recommend editing the text on the GDPR pages?

Thanks!

Okanogan Highland Traders

Comments

amysragbag created an issue. See original summary.

matslats’s picture

Hi I've made some improvements for you, including making the page editable, but before committing the code I want to know why "I haven't been able to get the site to function without it"

amysragbag’s picture

On Cforge/setup, if I leave GDPR unticked, I get a white screen. This is after I've indicated on the install page that I'm in the US. I can go back and tick GDPR, but then I get kicked back to the setup page with a message that I've made an illegal choice. I select GDPR again, and the setup completes, and everything looks normal.

This error message shows up in reports/dblog directly after hal is installed, and then again after gdpr is installed:

Error: Class 'Drupal\cforge\Drupal\user\Entity\User' not found in Drupal\cforge\Setup->submitForm() (line 379 of /var/www/html/okhighlandtrades/web/profiles/cforge/src/Setup.php)
#0 [internal function]: Drupal\cforge\Setup->submitForm()
#1 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array()
#2 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#3 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Form/FormBuilder.php(592): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#4 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm()
#5 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#6 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#7 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#8 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#10 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#11 /var/www/html/okhighlandtrades/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /var/www/html/okhighlandtrades/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#17 /var/www/html/okhighlandtrades/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#18 /var/www/html/okhighlandtrades/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#19 /var/www/html/okhighlandtrades/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#20 {main}
.

matslats’s picture

Status: Active » Needs review

Hi amy, the error you showed was fixed before, and not connected to GDPR module.
GDPR module doesn't know what country you are in.
I've now made some improvements to GDPR in head.
Do
composer update --no-dev
to ensure you have the lastest version.

amysragbag’s picture

Thank you. I always try to remember to run
composer update --no-dev
before reporting an issue to make sure it's something you haven't already fixed :)

I got the error yesterday while installing into a completely empty directory and using a fresh database.

matslats’s picture

I wonder if the composer script I gave you is really getting the latest version.
The version I pushed just now doesn't have modules/cforge_geo

amysragbag’s picture

Is there a way I could check?

matslats’s picture

Sorry I forgot to tell you that to update the profile is a special composer command.
not
composer update --no-dev
but
composer run-script update-cforge

amysragbag’s picture

Ok it looks like that was successful. Where would I go to configure GDPR?

matslats’s picture

Status: Needs review » Fixed

/gdpr/edit

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.