Attempted to call function "exif_imagetype" from namespace "Astroid\Helper". (500 Whoops, looks like something went wrong.)

Attempted to call function "exif_imagetype" from namespace "Astroid\Helper".

  • Exceptions 2
  • Stack Traces 2

Symfony\Component\ErrorHandler\Error\ UndefinedFunctionError

  1.     {
  2.         $params Framework::getTemplate()->getParams();
  3.         $favicon $params->get('favicon''');
  4.         if (!empty($favicon)) {
  5.             Framework::getDocument()->addLink(\JURI::base(true) . '/' Media::getPath() . '/' $favicon'shortcut icon', array(
  6.                 'type'  => image_type_to_mime_type(exif_imagetype(JPATH_BASE.'/'Media::getPath() . '/' $favicon)),
  7.                 'sizes' => 'any'
  8.             ));
  9.         }
  10.         $apple_touch_icon $params->get('apple_touch_icon''');
  11.         if (!empty($apple_touch_icon) && ($apple_touch_icon != $favicon)) {
  1. $params Astroid\Framework::getTemplate()->getParams(); // Astroid Params
  2. Astroid\Helper\Head::meta(); // site meta
  3. Astroid\Component\Utility::custom(); // custom code
  4. Astroid\Helper\Head::scripts(); // site scripts
  5. Astroid\Helper\Head::favicon(); // site favicon
  6. Astroid\Component\Utility::error(); // error page styling
  7. Astroid\Component\Utility::typography();
  8. /** @var JDocumentError $this */
require('/volume1/web/k204/templates/tp_easy/error.php') in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 771)
  1.             // Store the file path
  2.             $this->_file $directory '/' $filename;
  3.             // Get the file content
  4.             ob_start();
  5.             require $directory '/' $filename;
  6.             $contents ob_get_contents();
  7.             ob_end_clean();
  8.         }
  9.         return $contents;
HtmlDocument->_loadTemplate('/volume1/web/k204/templates/tp_easy', 'error.php') in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 830)
  1.         $this->baseurl Uri::base(true);
  2.         $this->params $params['params'] ?? new Registry;
  3.         $this->template $template;
  4.         // Load
  5.         $this->_template $this->_loadTemplate($baseDir$file);
  6.         return $this;
  7.     }
  8.     /**
HtmlDocument->_fetchTemplate(array('template' => 'tp_easy', 'directory' => '/volume1/web/k204/templates', 'debug' => true, 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 633)
  1.      *
  2.      * @since   1.7.0
  3.      */
  4.     public function parse($params = array())
  5.     {
  6.         return $this->_fetchTemplate($params)->_parseTemplate();
  7.     }
  8.     /**
  9.      * Outputs the template to the browser.
  10.      *
HtmlDocument->parse(array('template' => 'tp_easy', 'directory' => '/volume1/web/k204/templates', 'debug' => true, 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 652)
  1.     {
  2.         $this->_caching $caching;
  3.         if (empty($this->_template))
  4.         {
  5.             $this->parse($params);
  6.         }
  7.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null)
  8.         {
  9.             $this->cspNonce $params['csp_nonce'];
HtmlDocument->render(false, array('template' => 'tp_easy', 'directory' => '/volume1/web/k204/templates', 'debug' => true, 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /volume1/web/k204/libraries/src/Document/ErrorDocument.php (line 140)
  1.         $this->debug $params['debug'] ?? false;
  2.         $this->error $this->_error;
  3.         $params['file'] = 'error.php';
  4.         return parent::render($cache$params);
  5.     }
  6.     /**
  7.      * Render the backtrace
  8.      *
ErrorDocument->render(false, array('template' => 'tp_easy', 'directory' => '/volume1/web/k204/templates', 'debug' => true, 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /volume1/web/k204/libraries/src/Error/Renderer/HtmlRenderer.php (line 77)
  1.                 'template'         => $template->template,
  2.                 'directory'        => JPATH_THEMES,
  3.                 'debug'            => JDEBUG,
  4.                 'csp_nonce'        => $app->get('csp_nonce'),
  5.                 'templateInherits' => $template->parent,
  6.                 'params'           => $template->params,
  7.             ]
  8.         );
  9.     }
  10. }
HtmlRenderer->render(object(Error)) in /volume1/web/k204/libraries/src/Exception/ExceptionHandler.php (line 128)
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data))
  7.             {
  8.                 $data $error->getMessage();
ExceptionHandler::render(object(Error)) in /volume1/web/k204/libraries/src/Exception/ExceptionHandler.php (line 71)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(Error)) in /volume1/web/k204/libraries/src/Application/CMSApplication.php (line 311)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Send the application response.
  7.         $this->respond();
CMSApplication->execute() in /volume1/web/k204/includes/app.php (line 63)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/volume1/web/k204/includes/app.php') in /volume1/web/k204/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';

Error

Call to undefined function Astroid\Helper\exif_imagetype()

  1.     {
  2.         $params Framework::getTemplate()->getParams();
  3.         $favicon $params->get('favicon''');
  4.         if (!empty($favicon)) {
  5.             Framework::getDocument()->addLink(\JURI::base(true) . '/' Media::getPath() . '/' $favicon'shortcut icon', array(
  6.                 'type'  => image_type_to_mime_type(exif_imagetype(JPATH_BASE.'/'Media::getPath() . '/' $favicon)),
  7.                 'sizes' => 'any'
  8.             ));
  9.         }
  10.         $apple_touch_icon $params->get('apple_touch_icon''');
  11.         if (!empty($apple_touch_icon) && ($apple_touch_icon != $favicon)) {
  1. $document Astroid\Framework::getDocument();
  2. Astroid\Helper\Head::meta(); // site meta
  3. Astroid\Helper\Head::scripts(); // site scripts
  4. Astroid\Helper\Head::favicon(); // site favicon
  5. if ($document->isDev()) { // check is dev
  6.     $document->include('comingsoon'); // load coming soon and return
  7.     return;
  8. }
include('/volume1/web/k204/libraries/astroid/framework/frontend/document/body.php') in /volume1/web/k204/libraries/src/Layout/FileLayout.php (line 128)
  1.         {
  2.             return $layoutOutput;
  3.         }
  4.         ob_start();
  5.         include $path;
  6.         $layoutOutput .= ob_get_contents();
  7.         ob_end_clean();
  8.         return $layoutOutput;
  9.     }
  1.         if ($path === null) {
  2.             return '';
  3.         }
  4.         $layout = new \JLayoutFile($section$path);
  5.         $content $layout->render($data);
  6.         /* if (Framework::isAdmin()) {
  7.             $layout = new \JLayoutFile($section, $path);
  8.             $content = $layout->render($data);
  9.         } else {
Document->include('document.body') in /volume1/web/k204/templates/tp_easy/index.php (line 32)
  1.    <astroid:include type="head-styles" /> <!-- head styles -->
  2.    <astroid:include type="head-scripts" /> <!-- head scripts -->
  3. </head> <!-- document head -->
  4. <body class="<?php echo $document->getBodyClass(); ?>">
  5.    <?php $document->include('document.body'); ?>
  6.    <!-- body and layout -->
  7.    <astroid:include type="body-scripts" /> <!-- body scripts -->
  8. </body> <!-- document body -->
  9. </html> <!-- document end -->
require('/volume1/web/k204/templates/tp_easy/index.php') in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 771)
  1.             // Store the file path
  2.             $this->_file $directory '/' $filename;
  3.             // Get the file content
  4.             ob_start();
  5.             require $directory '/' $filename;
  6.             $contents ob_get_contents();
  7.             ob_end_clean();
  8.         }
  9.         return $contents;
HtmlDocument->_loadTemplate('/volume1/web/k204/templates/tp_easy', 'index.php') in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 830)
  1.         $this->baseurl Uri::base(true);
  2.         $this->params $params['params'] ?? new Registry;
  3.         $this->template $template;
  4.         // Load
  5.         $this->_template $this->_loadTemplate($baseDir$file);
  6.         return $this;
  7.     }
  8.     /**
HtmlDocument->_fetchTemplate(array('template' => 'tp_easy', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => null, 'directory' => '/volume1/web/k204/templates')) in /volume1/web/k204/libraries/src/Document/HtmlDocument.php (line 633)
  1.      *
  2.      * @since   1.7.0
  3.      */
  4.     public function parse($params = array())
  5.     {
  6.         return $this->_fetchTemplate($params)->_parseTemplate();
  7.     }
  8.     /**
  9.      * Outputs the template to the browser.
  10.      *
HtmlDocument->parse(array('template' => 'tp_easy', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => 'MWQ1M2MwYzI1NTkyODhjMGQ4YmY2MjZmMTg3ZTUxNzdmODhjZTlhMmNhY2Q3ZjNhNzhkNTZlYjY0OTdlOWJiZTgxYWEyNDE1NzFjNGYyYTYzZGViY2ExYzZhMzU5MzkzM2VhZTE1ZWMzNGYwMDQ3OGNiYTk4ODJhZDU2ZTVkZDc=', 'templateInherits' => null, 'directory' => '/volume1/web/k204/templates')) in /volume1/web/k204/libraries/src/Application/CMSApplication.php (line 1022)
  1.         {
  2.             $this->docOptions['directory'] = \defined('JPATH_THEMES') ? JPATH_THEMES : (\defined('JPATH_BASE') ? JPATH_BASE __DIR__) . '/themes';
  3.         }
  4.         // Parse the document.
  5.         $this->document->parse($this->docOptions);
  6.         // Trigger the onBeforeRender event.
  7.         PluginHelper::importPlugin('system');
  8.         $this->triggerEvent('onBeforeRender');
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             // If we have an application document object, render it.
  2.             if ($this->document instanceof \Joomla\CMS\Document\Document)
  3.             {
  4.                 // Render the application output.
  5.                 $this->render();
  6.             }
  7.             // If gzip compression is enabled in configuration and the server is compliant, compress the output.
  8.             if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
  9.             {
CMSApplication->execute() in /volume1/web/k204/includes/app.php (line 63)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/volume1/web/k204/includes/app.php') in /volume1/web/k204/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';