Jump to content

problem with Official GDPR v1.1.3


Gigi76

Recommended Posts

Hi everyone,

I have this configuration:

- Windows Server 2019 con IIS 10

- Prestashop 1.7.5.1

- MySql 5.6.16.0

- PhpMyAdmin 4.8.5

- PHP 7.2.16

 

I installed the Official GDPR v1.1.3 Conformity Module of PrestaShop but I get an error if I try to export personal data from the customer profile management page, both in csv and in pdf.

500 - Internal Server Error

There is a problem that does not allow you to view the desired resource

 

Also is it possible to insert the text in another language (for me Italian) instead of this in English?

Access to my data

At any time, you have the right to retrieve the data you have provided to our site. Click on "Get my data" to automatically download a copy of your personal data on a pdf or csv file..

Rectification & Erasure requests

You have the right to modify all the personal information found in the "My Account" page. For any other request you might have regarding the rectification and/or erasure of your personal data, please contact us through our contact page. We will review your request and reply as soon as possible..

 

Has anyone already had experience of this?

Thank you in advance!

errore.jpg

Link to comment
Share on other sites

2 ore fa, NemoPS dice:

Enable dev mode from the back office, advanced parameters, and see if you get anything more descriptive

Hi NemoPS,

if I enable debug mode, the error that occurs is as follows:

 

IF I CLICK “GET MY DATA TO PDF”

(1/1) ContextErrorException

Warning: long2ip() expects parameter 1 to be integer, string given

in psgdpr.php line 788

at Psgdpr->getCustomerDataFromPrestashop(object(Customer))

in psgdpr.php line 665

at Psgdpr->getCustomerData('customer', 3)

in ExportDataToPdf.php line 36

at psgdprExportDataToPdfModuleFrontController->exportDataToPdf(3)

in ExportDataToPdf.php line 30

at psgdprExportDataToPdfModuleFrontController->initContent()

in Controller.php line 281

at ControllerCore->run()

in Dispatcher.php line 511

at DispatcherCore->dispatch()

in index.php line 28

 

if I go to open the individual files .php here are the lines indicated:

in psgdpr.php line 788                                  'ip' => long2ip($message['ip_address']),

in psgdpr.php line 665                                  $dataFromPrestashop = $this->getCustomerDataFromPrestashop($customer);

in ExportDataToPdf.php line 36                  $pdf = new PDF($this->module->getCustomerData('customer', $id_customer), 'PSGDPRModule', Context::getContext()->smarty);

in ExportDataToPdf.php line 30                  $this->exportDataToPdf($customer->id);

in Controller.php line 281                            $this->initContent();

in Dispatcher.php line 511                          $controller->run();

in index.php line 28                                       Dispatcher::getInstance()->dispatch();

 

IF I CLICK “GET MY DATA TO CVS”

(1/1) ContextErrorException

Warning: long2ip() expects parameter 1 to be integer, string given

in psgdpr.php line 788

at Psgdpr->getCustomerDataFromPrestashop(object(Customer))

in psgdpr.php line 665

at Psgdpr->getCustomerData('customer', 3)

in ExportDataToCsv.php line 35

at psgdprExportDataToCsvModuleFrontController->exportDataToCsv(3)

in ExportDataToCsv.php line 30

at psgdprExportDataToCsvModuleFrontController->initContent()

in Controller.php line 281

at ControllerCore->run()

in Dispatcher.php line 511

at DispatcherCore->dispatch()

in index.php line 28

 

if I go to open the individual files .php here are the lines indicated:

in psgdpr.php line 788                                  'ip' => long2ip($message['ip_address']),

in psgdpr.php line 665                                  $dataFromPrestashop = $this->getCustomerDataFromPrestashop($customer);

in ExportDataToPdf.php line 35                  $data = $this->module->getCustomerData('customer', $id_customer);

in ExportDataToPdf.php line 30                $this->exportDataToPdf($customer->id);

in Controller.php line 281                            $this->initContent();

in Dispatcher.php line 511                          $controller->run();

in index.php line 28                                       Dispatcher::getInstance()->dispatch();

 

Thank you in advance!

print-screen.jpg

Link to comment
Share on other sites

Hi @NemoPS,

@Janett gave me this solution and it works:

Open modules/psgdpr/psgdpr.php

Search

                    'ip' => long2ip($message['ip_address']),

Replace by

                    'ip' => long2ip((int) $message['ip_address']),


 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...