Jump to content

[SOLVED] Problem with identity.php in My Account


Recommended Posts

Hi,

I have a problem with one subject of the My Account menu. I can't get into the the button which leads to identity.php.

I followed instructions on another subject that said that I could track the error by switching on a line in config.inc.php.

When I then followed the link, this messge came up:

Fatal error: Call to undefined method Customer::getNeedDNI() in /usr/home/deb26947/domains/serviezenonline.nl/public_html/test/identity.php on line 13

This is a copy of the identity.php (line 1 - 13):

<?php

/* SSL Management */
$useSSL = true;

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/init.php');

if (!$cookie->isLogged())
Tools::redirect('authentication.php?back=identity.php');

$customer = new Customer(intval($cookie->id_customer));
$need_identification_number = $customer->getNeedDNI();

Could someone have a look at it ? I don't know what is wrong. All the other buttons of myaccount are working normally. Only this one shows a white screen.

Thanks in advance for time and help.

I also put the complete php file in the attachment.

Greetings,

Daan Tol

identity.php

Link to comment
Share on other sites

From the error message, it appears as though you are using the identity.php from PrestaShop v1.3.1 with the classes/Customer.php from PrestaShop v1.2.5, which won't work. You need to upload classes/Customer.php from PrestaShop v1.3.1, which has a getNeedDNI() function that didn't exist in PrestaShop v1.2.5.

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