UndefinedFunctionError

HTTP 500 Whoops, looks like something went wrong.

Attempted to call function "php_uname" from namespace "Joomla\Component\Admin\Administrator\Model".

Exception

Symfony\Component\ErrorHandler\Error\ UndefinedFunctionError

  1. }
  2. $db = $this->getDatabase();
  3. $this->info = [
  4. 'php' => php_uname(),
  5. 'dbserver' => $db->getServerType(),
  6. 'dbversion' => $db->getVersion(),
  7. 'dbcollation' => $db->getCollation(),
  8. 'dbconnectioncollation' => $db->getConnectionCollation(),
  9. 'dbconnectionencryption' => $db->getConnectionEncryption(),
  1. 'joomlaVersion' => JVERSION,
  2. 'requestId' => $this->requestId,
  3. 'identity' => $this->getIdentityInfo($application->getIdentity()),
  4. 'response' => $this->getResponseInfo($application->getResponse()),
  5. 'template' => $this->getTemplateInfo($application->getTemplate(true)),
  6. 'database' => $this->getDatabaseInfo($model->getInfo()),
  7. ];
  8. }
  9. /**
  10. * Get Identity info.
  1. $request_variables
  2. )
  3. );
  4. foreach ($this->collectors as $name => $collector) {
  5. $this->data[$name] = $collector->collect();
  6. }
  7. // Remove all invalid (non UTF-8) characters
  8. array_walk_recursive($this->data, function (&$item) {
  9. if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) {
  1. * @return array
  2. */
  3. public function getData()
  4. {
  5. if ($this->data === null) {
  6. $this->collect();
  7. }
  8. return $this->data;
  9. }
  10. /**
  1. $js .= $this->getAddDatasetCode($id, $data, '(stacked)');
  2. }
  3. }
  4. $suffix = !$initialize ? '(ajax)' : null;
  5. $js .= $this->getAddDatasetCode($this->debugBar->getCurrentRequestId(), $this->debugBar->getData(), $suffix);
  6. $nonce = '';
  7. if ($doc->cspNonce) {
  8. $nonce = ' nonce="' . $doc->cspNonce . '"';
  1. echo $contents;
  2. return;
  3. }
  4. echo str_replace('</body>', $debugBarRenderer->renderHead() . $debugBarRenderer->render() . '</body>', $contents);
  5. }
  6. /**
  7. * AJAX handler
  8. *
  1. foreach ($this->listeners[$event->getName()] as $listener) {
  2. if ($event->isStopped()) {
  3. return $event;
  4. }
  5. $listener($event);
  6. }
  7. }
  8. return $event;
  9. }
  1. $dispatcher = $this->getDispatcher();
  2. } catch (\UnexpectedValueException $exception) {
  3. return null;
  4. }
  5. return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this));
  6. }
  7. /**
  8. * Method to run the application routines.
  9. *
  1. // Send the application response.
  2. $this->respond();
  3. // Trigger the onAfterRespond event.
  4. $this->dispatchEvent(
  5. 'onAfterRespond',
  6. new AfterRespondEvent('onAfterRespond', ['subject' => $this])
  7. );
  8. }
CMSApplication->execute() in /var/www/vhosts/piccognito.ch/httpdocs/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/piccognito.ch/httpdocs/includes/app.php') in /var/www/vhosts/piccognito.ch/httpdocs/index.php (line 32)
  1. * define() is used rather than "const" to not error for PHP 5.2 and lower
  2. */
  3. define('_JEXEC', 1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Trace

UndefinedFunctionError
Symfony\Component\ErrorHandler\Error\UndefinedFunctionError:
Attempted to call function "php_uname" from namespace "Joomla\Component\Admin\Administrator\Model".

  at /var/www/vhosts/piccognito.ch/httpdocs/administrator/components/com_admin/src/Model/SysinfoModel.php:316
  at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo()
     (/var/www/vhosts/piccognito.ch/httpdocs/plugins/system/debug/src/DataCollector/InfoCollector.php:136)
  at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect()
     (/var/www/vhosts/piccognito.ch/httpdocs/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238)
  at DebugBar\DebugBar->collect()
     (/var/www/vhosts/piccognito.ch/httpdocs/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265)
  at DebugBar\DebugBar->getData()
     (/var/www/vhosts/piccognito.ch/httpdocs/plugins/system/debug/src/JavascriptRenderer.php:119)
  at Joomla\Plugin\System\Debug\JavascriptRenderer->render()
     (/var/www/vhosts/piccognito.ch/httpdocs/plugins/system/debug/src/Extension/Debug.php:368)
  at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond()
     (/var/www/vhosts/piccognito.ch/httpdocs/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/vhosts/piccognito.ch/httpdocs/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent()
     (/var/www/vhosts/piccognito.ch/httpdocs/libraries/src/Application/CMSApplication.php:349)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/piccognito.ch/httpdocs/includes/app.php:58)
  at require_once('/var/www/vhosts/piccognito.ch/httpdocs/includes/app.php')
     (/var/www/vhosts/piccognito.ch/httpdocs/index.php:32)