Severity: Notice
Message: Trying to get property 'type' of non-object
Filename: core/MY_Model.php
Line Number: 72
Backtrace:
File: /home/alazkasch/public_html/cms/core/MY_Model.php
Line: 72
Function: _error_handler
File: /home/alazkasch/public_html/cms/core/MY_Model.php
Line: 29
Function: get_option
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 217
Function: load_class
File: /home/alazkasch/public_html/cms/modules/auth/libraries/Ion_auth.php
Line: 71
Function: model
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 180
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 192
Function: library
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 153
Function: libraries
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 65
Function: initialize
File: /home/alazkasch/public_html/cms/third_party/MX/Base.php
Line: 55
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Base.php
Line: 60
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Controller.php
Line: 4
Function: require
File: /home/alazkasch/public_html/cms/third_party/MX/Modules.php
Line: 124
Function: include_once
File: /home/alazkasch/public_html/cms/core/MY_Controller.php
Line: 30
Function: spl_autoload_call
File: /home/alazkasch/public_html/zpanel/index.php
Line: 336
Function: require_once
Severity: Notice
Message: Trying to get property 'data' of non-object
Filename: core/MY_Model.php
Line Number: 79
Backtrace:
File: /home/alazkasch/public_html/cms/core/MY_Model.php
Line: 79
Function: _error_handler
File: /home/alazkasch/public_html/cms/core/MY_Model.php
Line: 29
Function: get_option
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 217
Function: load_class
File: /home/alazkasch/public_html/cms/modules/auth/libraries/Ion_auth.php
Line: 71
Function: model
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 180
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 192
Function: library
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 153
Function: libraries
File: /home/alazkasch/public_html/cms/third_party/MX/Loader.php
Line: 65
Function: initialize
File: /home/alazkasch/public_html/cms/third_party/MX/Base.php
Line: 55
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Base.php
Line: 60
Function: __construct
File: /home/alazkasch/public_html/cms/third_party/MX/Controller.php
Line: 4
Function: require
File: /home/alazkasch/public_html/cms/third_party/MX/Modules.php
Line: 124
Function: include_once
File: /home/alazkasch/public_html/cms/core/MY_Controller.php
Line: 30
Function: spl_autoload_call
File: /home/alazkasch/public_html/zpanel/index.php
Line: 336
Function: require_once
return $this->db->get($data->table)->row();
}
public function get_option()
{
$options = $this->active_options();
$options_groups = $this->get_group();
foreach ($options_groups as $group) {
$this->_data[$group->group_slug] = new stdClass();
foreach ($options as $option) {
if ($option->option_group === $group->id)
{
$option_data = json_decode($option->option_data);
$option_var = $option->option_slug;
if($option->option_type === 'select')
{
if($option_data->type === 'table')
{
$text = $this->get_text($option_data->data ,$option->option_value);
$this->_data[$group->group_slug]->$option_var = $text;
}
else
{
$this->_data[$group->group_slug]->$option_var = $option_data->data;;
}
}
else
{
$this->_data[$group->group_slug]->$option_var = $option->option_value;
}
}
}
}
}
public function array_form_post($fields)
{
return $this->db->get($data->table)->row();
}
public function get_option()
{
$options = $this->active_options();
$options_groups = $this->get_group();
foreach ($options_groups as $group) {
$this->_data[$group->group_slug] = new stdClass();
foreach ($options as $option) {
if ($option->option_group === $group->id)
{
$option_data = json_decode($option->option_data);
$option_var = $option->option_slug;
if($option->option_type === 'select')
{
if($option_data->type === 'table')
{
$text = $this->get_text($option_data->data ,$option->option_value);
$this->_data[$group->group_slug]->$option_var = $text;
}
else
{
$this->_data[$group->group_slug]->$option_var = $option_data->data;;
}
}
else
{
$this->_data[$group->group_slug]->$option_var = $option->option_value;
}
}
}
}
}
public function array_form_post($fields)
{
protected $_primary_filter = 'intval';
protected $_order_by = 'id DESC';
public $_rules = array();
protected $_timestamp = FALSE;
protected $_dtselect = '';
protected $_dtfrom = '';
protected $_dtjoin = array();
protected $_dtfilter = array();
protected $_dtwhere = array();
protected $_dtcolumn_order = array();
protected $_dtcolumn_search = array();
protected $_dtorder = array();
protected $_dtgroup_by = array();
function __construct()
{
parent::__construct();
$this->get_option();
}
public function active_options()
{
$this->db->select('tbl_options.*');
$this->db->from('tbl_options');
$this->db->where('status','active');
return $this->db->get()->result();
}
public function get_group($id = NULL)
{
$this->db->select('id, group_name, group_slug, group_icon, status, group_description');
$this->db->where(array('status'=>'active'));
return $this->db->get('tbl_options_groups')->result();
}
public function get_text($data, $key)
{
);
public $_rules_group = array(
'group_name'=> array(
'field'=>'group_name',
'label'=>'Nama Pengaturan Grup',
'rules'=>'trim|required|max_length[64]'),
'group_description'=> array(
'field'=>'group_description',
'label'=>'Deskripsi',
'rules'=>'trim|required'),
'group_slug'=> array(
'field'=>'group_slug',
'label'=>'Alias / Slug',
'rules'=>'trim|required|max_length[100]'),
);
public function __construct()
{
parent::__construct();
}
// public function new()
// {
// $option = new stdClass();
// $option->option_name = '';
// $option->option_slug = '';
// $option->option_value = '';
// $option->option_data = '';
// $option->option_type = '';
// $option->option_group = '';
// $option->status = '';
// return $option;
// }
public function new_group()
{
$group = new stdClass();
$group->group_name = '';
if ($path == FALSE)
{
/* check application & packages */
parent::model($model, $object_name, $connect);
}
else
{
class_exists('CI_Model', FALSE) OR load_class('Model', 'core');
if ($connect !== FALSE && ! class_exists('CI_DB', FALSE))
{
if ($connect === TRUE) $connect = '';
$this->database($connect, FALSE, TRUE);
}
Modules::load_file($_model, $path);
$model = ucfirst($_model);
CI::$APP->$_alias = new $model();
$this->_ci_models[] = $_alias;
}
return $this;
}
/** Load an array of models **/
public function models($models)
{
foreach ($models as $model => $alias)
{
(is_int($model)) ? $this->model($alias) : $this->model($model, $alias);
}
return $this;
}
/** Load a module controller **/
public function module($module, $params = NULL)
{
if (is_array($module)) return $this->modules($module);
if ($connect === TRUE) $connect = '';
$this->database($connect, FALSE, TRUE);
}
Modules::load_file($_model, $path);
$model = ucfirst($_model);
CI::$APP->$_alias = new $model();
$this->_ci_models[] = $_alias;
}
return $this;
}
/** Load an array of models **/
public function models($models)
{
foreach ($models as $model => $alias)
{
(is_int($model)) ? $this->model($alias) : $this->model($model, $alias);
}
return $this;
}
/** Load a module controller **/
public function module($module, $params = NULL)
{
if (is_array($module)) return $this->modules($module);
$_alias = strtolower(basename($module));
CI::$APP->$_alias = Modules::load(array($module => $params));
return $this;
}
/** Load an array of controllers **/
public function modules($modules)
{
foreach ($modules as $_module) $this->module($_module);
return $this;
}
$this->_ci_classes[$class] = $_alias;
}
return $this;
}
/** Load an array of libraries **/
public function libraries($libraries)
{
foreach ($libraries as $library => $alias)
{
(is_int($library)) ? $this->library($alias) : $this->library($library, NULL, $alias);
}
return $this;
}
/** Load a module model **/
public function model($model, $object_name = NULL, $connect = FALSE)
{
if (is_array($model)) return $this->models($model);
($_alias = $object_name) OR $_alias = basename($model);
if (in_array($_alias, $this->_ci_models, TRUE))
return $this;
/* check module */
list($path, $_model) = Modules::find(strtolower($model), $this->_module, 'models/');
if ($path == FALSE)
{
/* check application & packages */
parent::model($model, $object_name, $connect);
}
else
{
class_exists('CI_Model', FALSE) OR load_class('Model', 'core');
if ($connect !== FALSE && ! class_exists('CI_DB', FALSE))
{
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author Ahmad Sanusi
* @link http://codeigniter.com/user_guide/general/MY_Controller.html
*/
class MY_Controller extends MX_Controller {
public $data = array();
public function __construct()
{
parent::__construct();
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
$this->load->model(array('option/option_m'));
$options = $this->option_m->active_options();
$options_groups = $this->option_m->get_group();
foreach ($options_groups as $group) {
$this->data[$group->group_slug] = new stdClass();
foreach ($options as $option) {
if ($option->option_group === $group->id)
{
$option_data = json_decode($option->option_data);
$option_var = $option->option_slug;
if($option->option_type === 'select')
{
if($option_data->type === 'table')
{
$text = $this->option_m->get_text($option_data->data ,$option->option_value);
$this->data[$group->group_slug]->$option_var = $text;
}
else
{
class Module extends MY_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/Module
* - or -
* http://example.com/index.php/Module/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/Module/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->parser->parse('module',$this->data);
}
public function module_ajax()
{
if (!$this->input->is_ajax_request()) {
exit('No direct script access allowed');
}
$module = $this->modules_m->get_datatables();
$data = array();
foreach ($module as $item) {
$row = array();
$switchery = '';
$row[] = '<input type="checkbox" name="module-id[]" class="styled" value="$item->id">';
$row[] = $item->name;
{
$params = array_slice($URI->rsegments, 2);
}
/*
* ------------------------------------------------------
* Is there a "pre_controller" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('pre_controller');
/*
* ------------------------------------------------------
* Instantiate the requested controller
* ------------------------------------------------------
*/
// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
$CI = new $class();
/*
* ------------------------------------------------------
* Is there a "post_controller_constructor" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller_constructor');
/*
* ------------------------------------------------------
* Call the requested method
* ------------------------------------------------------
*/
call_user_func_array(array(&$CI, $method), $params);
// Mark a benchmark end point
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
/*
* ------------------------------------------------------
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF;
exit(3); // EXIT_CONFIG
}
define('VIEWPATH', $view_folder.DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*/
require_once BASEPATH.'core/CodeIgniter.php';
echo "<mm:dwdrfml documentRoot=" . __FILE__ .">";$included_files = get_included_files();foreach ($included_files as $filename) { echo "<mm:IncludeFile path=" . $filename . " />"; } echo "</mm:dwdrfml>";
| Key | Value |
| ci_session | 4ce77935022af6c9d21c6ba3ad9276d44f05331b |
| Key | Value |
| __ci_last_regenerate | 1767756385 |
| Key | Value |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TZ | Asia/Jakarta |
| REDIRECT_HANDLER | application/x-httpd-alt-php74 |
| REDIRECT_STATUS | 200 |
| UNIQUE_ID | aV3SY06D6V_wAqkWHfxWDgAAAAc |
| SCRIPT_URL | /zpanel/themes/default/uploads/option/logo_header.txt |
| SCRIPT_URI | https://alazka.sch.id/zpanel/themes/default/uploads/option/logo_header.txt |
| HTTPS | on |
| SSL_TLS_SNI | alazka.sch.id |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_COOKIE | ci_session=4ce77935022af6c9d21c6ba3ad9276d44f05331b |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_HOST | alazka.sch.id |
| HTTP_X_HTTPS | 1 |
| SERVER_SIGNATURE | |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | alazka.sch.id |
| SERVER_ADDR | 202.47.68.98 |
| SERVER_PORT | 443 |
| REMOTE_ADDR | 216.73.216.144 |
| DOCUMENT_ROOT | /home/alazkasch/public_html |
| REQUEST_SCHEME | https |
| CONTEXT_PREFIX | /cgi-sys |
| CONTEXT_DOCUMENT_ROOT | /usr/local/cpanel/cgi-sys/ |
| SERVER_ADMIN | webmaster@alazka.sch.id |
| SCRIPT_FILENAME | /home/alazkasch/public_html/zpanel/index.php |
| REMOTE_PORT | 56164 |
| REDIRECT_URL | /zpanel/index.php |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /zpanel/themes/default/uploads/option/logo_header.txt |
| SCRIPT_NAME | /zpanel/index.php |
| ORIG_SCRIPT_FILENAME | /usr/local/cpanel/cgi-sys/alt-php74 |
| ORIG_PATH_INFO | /zpanel/index.php |
| ORIG_PATH_TRANSLATED | /home/alazkasch/public_html/zpanel/index.php |
| ORIG_SCRIPT_NAME | /cgi-sys/alt-php74 |
| PHP_SELF | /zpanel/index.php |
| REQUEST_TIME_FLOAT | 1767756387.1377 |
| REQUEST_TIME | 1767756387 |
| Key | Value |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TZ | Asia/Jakarta |
| REDIRECT_HANDLER | application/x-httpd-alt-php74 |
| REDIRECT_STATUS | 200 |
| UNIQUE_ID | aV3SY06D6V_wAqkWHfxWDgAAAAc |
| SCRIPT_URL | /zpanel/themes/default/uploads/option/logo_header.txt |
| SCRIPT_URI | https://alazka.sch.id/zpanel/themes/default/uploads/option/logo_header.txt |
| HTTPS | on |
| SSL_TLS_SNI | alazka.sch.id |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_COOKIE | ci_session=4ce77935022af6c9d21c6ba3ad9276d44f05331b |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_HOST | alazka.sch.id |
| HTTP_X_HTTPS | 1 |
| SERVER_SIGNATURE | |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | alazka.sch.id |
| SERVER_ADDR | 202.47.68.98 |
| SERVER_PORT | 443 |
| REMOTE_ADDR | 216.73.216.144 |
| DOCUMENT_ROOT | /home/alazkasch/public_html |
| REQUEST_SCHEME | https |
| CONTEXT_PREFIX | /cgi-sys |
| CONTEXT_DOCUMENT_ROOT | /usr/local/cpanel/cgi-sys/ |
| SERVER_ADMIN | webmaster@alazka.sch.id |
| SCRIPT_FILENAME | /home/alazkasch/public_html/zpanel/index.php |
| REMOTE_PORT | 56164 |
| REDIRECT_URL | /zpanel/index.php |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /zpanel/themes/default/uploads/option/logo_header.txt |
| SCRIPT_NAME | /zpanel/index.php |
| ORIG_SCRIPT_FILENAME | /usr/local/cpanel/cgi-sys/alt-php74 |
| ORIG_PATH_INFO | /zpanel/index.php |
| ORIG_PATH_TRANSLATED | /home/alazkasch/public_html/zpanel/index.php |
| ORIG_SCRIPT_NAME | /cgi-sys/alt-php74 |