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