I am getting an error in my CodeIgniter register page

  codeigniter, database, laravel, php

below is the error

Message: Trying to access array offset on value of type bool

Filename: controllers/Register.php

Line Number: 19

Backtrace:

File: /home/esports/public_html/application/controllers/Register.php
Line: 19
Function: _error_handler

File: /home/esports/public_html/index.php
Line: 275
Function: require_

and below is the code for controllers/Register.php line 19

    $data['page'] = $this->functions->getPage('sign_up');
    $data['title'] = $data['page']['page_menutitle'];          //Line number 19
    $data['page_title'] = $data['page']['page_title'];
    $data['register'] = true;
    if ($this->input->post('register') == $this->lang->line('text_btn_submit')) {
        $data['user_name'] = $this->input->post('user_name');
        $data['mobile_no'] = $this->input->post('mobile_no');
        $data['email_id'] = $this->input->post('email_id');
        $data['referral_code'] = $this->input->post('referral_code');
        $data['password'] = $this->input->post('password');
        $data['c_password'] = $this->input->post('c_password');
        $data['country_code'] = $this->input->post('country_code');

        

and below is the code for index.php line number 275

define('VIEWPATH', $view_folder . DIRECTORY_SEPARATOR);

require_once BASEPATH . ‘core/CodeIgniter.php’; //line number 275

Project details

  • Framework Laravel
    -PHP version – 7.4

Source: Laravel

Leave a Reply