Jump to content

Call to a member function getValue() on null ERROR P.S. 1.7


Sairon

Recommended Posts

Hello,

 

Does any one know how to fix this one? It appears when I try to disable the registration function on the checkout. Code:

            ->setRequired(true);

/*
        if ($this->ask_for_password) {
            $format['password'] = (new FormField())
                ->setName('password')
                ->setType('password')
                ->setLabel(
                    $this->translator->trans(
                        'Password',
                        [],
                        'Shop.Forms.Labels'
                    )
                )
                ->setRequired($this->password_is_required);
        }
*/

        if ($this->ask_for_new_password) {

 

Website URL: http://www.savigynai.lt/

image.png.e7a4ebcaa08b2401210ea43d5b0ee519.png

Link to comment
Share on other sites

  • 1 month later...

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