Something went wrong.

Undefined array key "value".
Undefined array key "value" on line 319 in /home/hostacoz/domains/hosta.co.za/public_html/blesta/plugins/order/controllers/signup.php
UnknownException::setErrorHandler
Line 232

/home/hostacoz/domains/hosta.co.za/public_html/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php

Monolog\ErrorHandler->handleError
Line 319

/home/hostacoz/domains/hosta.co.za/public_html/blesta/plugins/order/controllers/signup.php

Signup->index
Line 142

/home/hostacoz/domains/hosta.co.za/public_html/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php

Dispatcher::dispatch
Line 31

/home/hostacoz/domains/hosta.co.za/public_html/blesta/index.php

287
        // Get shown contact fields
288
        $shown_contact_fields = $this->ClientGroups->getSetting(
289
            $this->client->client_group_id ?? $this->order_form->client_group_id,
290
            'shown_contact_fields'
291
        );
292
 
293
        if ($shown_contact_fields) {
294
            $shown_contact_fields = unserialize(base64_decode($shown_contact_fields->value));
295
        }
296
 
297
        $this->set('order_form', $this->order_form);
298
        $this->set('custom_field_prefix', $this->custom_field_prefix);
299
        $this->set('custom_fields', $custom_fields);
300
 
301
        $this->set(
302
            'countries',
303
            $this->Form->collapseObjectArray($this->Countries->getList(), ['name', 'alt_name'], 'alpha2', ' - ')
304
        );
305
        $this->set('states', $this->Form->collapseObjectArray($this->States->getList($vars->country ?? ''), 'name', 'code'));
306
        $this->set('currencies', $this->Currencies->getAll($this->company_id));
307
 
308
        $this->set('vars', $vars);
309
 
310
        $this->set('client', $this->client);
311
        if (!$this->isClientOwner($this->client, $this->Session)) {
312
            $this->setMessage('error', Language::_('Signup.!error.not_client_owner', true), false, null, false);
313
            $this->set('client', false);
314
        }
315
        $this->set('show_client_tax_id', ($show_client_tax_id == 'true'));
316
        $this->set('force_email_usernames', $force_email_usernames);
317
        $this->set(
318
            'show_receive_email_marketing',
319
            $show_recieve_email_marketing ? $show_recieve_email_marketing['value'] : 'true'
320
        );
321
        $this->set('show_tos', $show_tos);
322
        $this->set('captcha', ($signup_captcha ?? ''));
323
        $this->set('login_captcha', ($login_captcha ?? ''));
324
        $this->set('required_contact_fields', ($required_contact_fields ?? ''));
325
        $this->set('shown_contact_fields', ($shown_contact_fields ?? ''));
326
 
327
        return $this->renderView();
328
    }
329
 
330
    /**
331
     * OTP Authentication
332
     */
333
    public function otp()
334
    {
335
        return $this->renderView();
336
    }
337
 
338
    /**
339
     * Outputs clients info
340
     */
341
    public function clientinfo()
342
    {
343
        $this->set('client', $this->Clients->get($this->Session->read('blesta_client_id')));
344
        $this->outputAsJson($this->view->fetch());
345
        return false;
346
    }
347
 
348
    /**
349
     * AJAX Fetch all states belonging to a given country (json encoded ajax request)
350
     */
351
    public function getStates()