Jump to content

ContextErrorException in psgdpr.php line 748:


Recommended Posts

Hello there.

When I try to export the user's information, no matter which of the formats, I get this error message:

 

ContextErrorException in psgdpr.php line 748: Warning: long2ip() expects parameter 1 to be integer, string given


    in psgdpr.php line 748
    at ErrorHandler->handleError('2', 'long2ip() expects parameter 1 to be integer, string given', '/var/www/html/store/modules/psgdpr/psgdpr.php' censored because of personal data. 
    at long2ip('') in psgdpr.php line 748
    at Psgdpr->getCustomerDataFromPrestashop(object(Customer)) in psgdpr.php line 625
    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 253
    at ControllerCore->run() in Dispatcher.php line 428
    at DispatcherCore->dispatch() in index.php line 28

I'm running version 1.1.0 on PS 1.7.3.4.

 

 

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
  • 4 months later...

Hello,

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 have the same problem as you indicated

Anyone managed to resolve the error?

Kind regardas

 

 

PrestaShop_error.jpg

Link to comment
Share on other sites

6 minuti fa, Janett dice:

Open modules/psgdpr/psgdpr.php

Search


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

Replace by


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

 

Hi JANETT,

thank you so much, now no more error!

The only thing is that the CSV file contains the data, while the PDF file is empty.

Kind regardas

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...