TypeError
Return value of ORM::offsetGet() must be an instance of mixed, string returned TypeError thrown with message "Return value of ORM::offsetGet() must be an instance of mixed, string returned" Stacktrace: #3 TypeError in /home/webfycou/public_html/application/autoload/ORM.php:2137 #2 ORM:offsetGet in /home/webfycou/public_html/application/helpers/ibilling_bootstrap.php:86 #1 require in /home/webfycou/public_html/application/app.php:7 #0 require in /home/webfycou/public_html/index.php:3
Stack frames (4)
3
TypeError
/application/autoload/ORM.php2137
2
ORM offsetGet
/application/helpers/ibilling_bootstrap.php86
1
require
/application/app.php7
0
require
/index.php3
/home/webfycou/public_html/application/autoload/ORM.php
        $query = $this->_join_if_not_empty(" ", array(
            "DELETE FROM",
            $this->_quote_identifier($this->_table_name),
            $this->_build_where(),
        ));
 
        return self::_execute($query, $this->_values, $this->_connection_name);
    }
 
    // --------------------- //
    // ---  ArrayAccess  --- //
    // --------------------- //
 
    public function offsetExists($key): bool
    {
        return array_key_exists($key, $this->_data);
    }
 
    public function offsetGet($key): mixed {
        return $this->get($key);
    }
 
    public function offsetSet($key, $value): void {
        if(is_null($key)) {
            throw new InvalidArgumentException('You must specify a key/array index.');
        }
        $this->set($key, $value);
    }
 
    public function offsetUnset($key): void {
        unset($this->_data[$key]);
        unset($this->_dirty_fields[$key]);
    }
 
    // --------------------- //
    // --- MAGIC METHODS --- //
    // --------------------- //
    public function __get($key) {
        return $this->offsetGet($key);
    }
Arguments
  1. "Return value of ORM::offsetGet() must be an instance of mixed, string returned"
    
/home/webfycou/public_html/application/helpers/ibilling_bootstrap.php
}
 
function _raid($l = '6')
{
    $r = substr(str_shuffle(str_repeat('0123456789', $l)), 0, $l);
    return $r;
}
 
ORM::configure("mysql:host=$db_host;dbname=$db_name");
ORM::configure('username', $db_user);
ORM::configure('password', $db_password);
ORM::configure('driver_options', [
    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
]);
ORM::configure('return_result_sets', true); // returns result sets
 
$result = ORM::for_table('sys_appconfig')->find_many();
 
foreach ($result as $value) {
    $config[$value['setting']] = $value['value'];
}
 
date_default_timezone_set($config['timezone']);
 
function _notify($msg, $type = 'e')
{
    $_SESSION['ntype'] = $type;
    $_SESSION['notify'] = $msg;
}
 
$_c = $config;
 
$_theme = APP_URL . '/ui/theme/' . $config['theme'];
 
$ib_language_file_path = 'application/i18n/' . $config['language'] . '.php';
 
$app_theme = $config['theme'];
 
if (file_exists($ib_language_file_path)) {
    require $ib_language_file_path;
Arguments
  1. "setting"
    
/home/webfycou/public_html/application/app.php
<?php
if (!defined('APP_RUN')) {
    exit('No direct access allowed');
}
$file_build = '5000';
require 'vendor/autoload.php';
require 'application/helpers/ibilling_bootstrap.php';
 
Arguments
  1. "/home/webfycou/public_html/application/helpers/ibilling_bootstrap.php"
    
/home/webfycou/public_html/index.php
<?php
define('APP_RUN', true);
require 'application/app.php';
 
Arguments
  1. "/home/webfycou/public_html/application/app.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"webfy.co.uk"
HTTP_USER_AGENT
"claudebot"
DOCUMENT_ROOT
"/home/webfycou/public_html"
REMOTE_ADDR
"23.20.51.162"
REMOTE_PORT
"41712"
SERVER_ADDR
"91.232.125.142"
SERVER_NAME
"webfy.co.uk"
SERVER_ADMIN
"webmaster@webfy.co.uk"
SERVER_PORT
"80"
REQUEST_SCHEME
"http"
REQUEST_URI
"/"
SCRIPT_FILENAME
"/home/webfycou/public_html/index.php"
QUERY_STRING
""
SCRIPT_URI
"http://webfy.co.uk/"
SCRIPT_URL
"/"
SCRIPT_NAME
"/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_METHOD
"GET"
X-LSCACHE
"on"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711693509.0861
REQUEST_TIME
1711693509
Key Value
PATH
"/usr/local/bin:/bin:/usr/bin"
0. Whoops\Handler\PrettyPageHandler