Unknown Error

Call to undefined function Onion\Utils\create_function()

/mnt/devel/Atrium/atriumstudio/vendor/Onion/Utils/Strings.php

Url/Visitor

http://www.atriumarchitekti.loc/ (GET)

Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0

Source

99 }
100
101 public static function splitByUpperChars($string)
102 {
103 return preg_split('/([A-Z]+[a-z]*)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
104 }
105
106 public static function fromCamelCase($str)
107 {
108 $str[0] = strtolower($str[0]);
109 $func = create_function('$c', 'return "_".strtolower($c[1]);');
110 return preg_replace_callback('/([A-Z])/', $func, $str);
111 }
112
113 public static function toCamelCase($str, $capitalise_first_char = false)
114 {
115 if($capitalise_first_char) {
116 $str[0] = strtoupper($str[0]);
117 }
118 $func = create_function('$c', 'return strtoupper($c[1]);');
119 return preg_replace_callback('/_([a-z])/', $func, $str);
120 }
121
122 public static function randomString($length = 9, $strength = 0)
123 {
124 $vowels = 'aeiouy';
125 $consonants = 'bdghjmnpqrstvz';
126 if ($strength & 1) {
127 $consonants .= 'BDGHJLMNPQRSTVWXZ';
128 }

Backtrace

$_SERVER

array (
  'HTTP_HOST' => 'www.atriumarchitekti.loc',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0',
  'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3',
  'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_COOKIE' => 'consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%2C%22marketing%22%3Atrue%2C%22functionality%22%3Atrue%7D; gtm_atrium=%7B%22security_storage%22%3A%22granted%22%2C%22functionality_storage%22%3A%22granted%22%2C%22personalization_storage%22%3A%22granted%22%2C%22analytics_storage%22%3A%22granted%22%2C%22ad_user_data%22%3A%22granted%22%2C%22ad_personalization%22%3A%22granted%22%2C%22ad_storage%22%3A%22granted%22%7D; language=sk',
  'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
  'HTTP_PRIORITY' => 'u=0, i',
  'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  'SERVER_SIGNATURE' => '<address>Apache/2.4.62 (Debian) Server at www.atriumarchitekti.loc Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.4.62 (Debian)',
  'SERVER_NAME' => 'www.atriumarchitekti.loc',
  'SERVER_ADDR' => '127.0.0.1',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '127.0.0.1',
  'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'REQUEST_SCHEME' => 'http',
  'CONTEXT_PREFIX' => '',
  'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php',
  'REMOTE_PORT' => '54178',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'GET',
  'QUERY_STRING' => '',
  'REQUEST_URI' => '/',
  'SCRIPT_NAME' => '/index.php',
  'PHP_SELF' => '/index.php',
  'REQUEST_TIME_FLOAT' => 1743890317.225015,
  'REQUEST_TIME' => 1743890317,
)