TypeError Error

HTTP 500 Whoops, looks like something went wrong.

Object of class stdClass could not be converted to string

Exceptions 2

Error

  1.             if (!empty($preset->preset)) {
  2.                 $preset $preset->preset;
  3.             }
  4.         ?>
  5.         <link href="<?php echo $theme_url '/css/presets/' $preset '.css'?>" rel="stylesheet">
  6.     </head>
  7.     <body>
  8.         <div class="container">
  9.             <?php if($params->get('error_logo')) : ?>
  10.                 <a href="<?php echo $this->baseurl?>/index.php">
  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('/www/htdocs/v085860/polhost/templates/shaper_gazette', 'error.php') in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 776)
  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' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 612)
  1.      *
  2.      * @since   1.7.0
  3.      */
  4.     public function parse($params = [])
  5.     {
  6.         return $this->_fetchTemplate($params)->_parseTemplate();
  7.     }
  8.     /**
  9.      * Outputs the template to the browser.
  10.      *
HtmlDocument->parse(array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 630)
  1.     public function render($caching false$params = [])
  2.     {
  3.         $this->_caching $caching;
  4.         if (empty($this->_template)) {
  5.             $this->parse($params);
  6.         }
  7.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  8.             $this->cspNonce $params['csp_nonce'];
  9.         }
HtmlDocument->render(false, array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/v085860/polhost/libraries/src/Document/ErrorDocument.php (line 139)
  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' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/v085860/polhost/libraries/src/Error/Renderer/HtmlRenderer.php (line 78)
  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(TypeError)) in /www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php (line 126)
  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.                 $data $error->getMessage();
  8.             }
ExceptionHandler::render(object(TypeError)) in /www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php (line 72)
  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(TypeError)) in /www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php (line 322)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
CMSApplication->execute() in /www/htdocs/v085860/polhost/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/www/htdocs/v085860/polhost/includes/app.php') in /www/htdocs/v085860/polhost/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';

TypeError

count(): Argument #1 ($value) must be of type Countable|array, null given

  1.                                 <label for="modlgn-passwd"><?php echo Text::_('JGLOBAL_PASSWORD'); ?></label>
  2.                                 <input id="modlgn-passwd" type="password" name="password" class="sppb-form-control" tabindex="0" size="18" placeholder="<?php echo Text::_('JGLOBAL_PASSWORD'); ?>" />
  3.                             <?php endif; ?>
  4.                         </div>
  5.                     
  6.                         <?php if (count($twofactormethods) > 1) : ?>
  7.                             <div id="form-login-secretkey" class="form-group">
  8.                                 <?php if (!$params->get('usetext')) : ?>
  9.                                     <div class="input-group">
  10.                                         <div class="input-group-prepend">
  11.                                             <span class="input-group-text" aria-label="<?php echo Text::_('JGLOBAL_SECRETKEY'); ?>"><span class="fa fa-star"></span></span>
  1. // Logged users must load the logout sublayout
  2. if (!$user->guest) {
  3.     $layout .= '_logout';
  4. }
  5. require ModuleHelper::getLayoutPath('mod_login'$layout);
include('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php') in /www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php (line 52)
  1.                 unset($displayData);
  2.             } else {
  3.                 extract($displayData);
  4.             }
  5.             include $path;
  6.         };
  7.         $loader($path$this->getLayoutData());
  8.     }
  9. }
ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php', null) in /www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php (line 55)
  1.             }
  2.             include $path;
  3.         };
  4.         $loader($path$this->getLayoutData());
  5.     }
  6. }
  1.         $dispatcher $app->bootModule($module->module$app->getName())->getDispatcher($module$app);
  2.         // Check if we have a dispatcher
  3.         if ($dispatcher) {
  4.             ob_start();
  5.             $dispatcher->dispatch();
  6.             $module->content ob_get_clean();
  7.         }
  8.         // Add the flag that the module content has been rendered
  9.         $module->contentRendered true;
ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'right', 'style' => 'sp_xhtml')) in /www/htdocs/v085860/polhost/libraries/src/Helper/ModuleHelper.php (line 161)
  1.         // Get module parameters
  2.         $params = new Registry($module->params);
  3.         // Render the module content
  4.         static::renderRawModule($module$params$attribs);
  5.         // Return early if only the content is required
  6.         if (!empty($attribs['contentOnly'])) {
  7.             return $module->content;
  8.         }
ModuleHelper::renderModule(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml')) in /www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModuleRenderer.php (line 99)
  1.             $module->contentRendered true;
  2.             return $module->content;
  3.         }
  4.         return ModuleHelper::renderModule($module$attribs);
  5.     }
  6. }
ModuleRenderer->render(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml'), null) in /www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModulesRenderer.php (line 50)
  1.         $user         Factory::getUser();
  2.         $frontediting = ($app->isClient('site') && $app->get('frontediting'1) && !$user->guest);
  3.         $menusEditing = ($app->get('frontediting'1) == 2) && $user->authorise('core.edit''com_menus');
  4.         foreach (ModuleHelper::getModules($position) as $mod) {
  5.             $moduleHtml $renderer->render($mod$params$content);
  6.             if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend''com_modules.module.' $mod->id)) {
  7.                 $displayData = ['moduleHtml' => &$moduleHtml'module' => $mod'position' => $position'menusediting' => $menusEditing];
  8.                 LayoutHelper::render('joomla.edit.frontediting_modules'$displayData);
  9.             }
ModulesRenderer->render('right', array('name' => 'right', 'style' => 'sp_xhtml'), null) in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 565)
  1.             $cbuffer[$hash] = $tmpdata;
  2.             $cache->store($cbuffer'cbuffer_' $type);
  3.         } else {
  4.             $this->setBuffer($renderer->render($name$attribsnull), $type$name$title);
  5.         }
  6.         return parent::$_buffer[$type][$name][$title];
  7.     }
HtmlDocument->getBuffer('modules', 'right', array('name' => 'right', 'style' => 'sp_xhtml')) in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 833)
  1.         $replace = [];
  2.         $with    = [];
  3.         foreach ($this->_template_tags as $jdoc => $args) {
  4.             $replace[] = $jdoc;
  5.             $with[]    = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
  6.         }
  7.         return str_replace($replace$with$this->_template);
  8.     }
  9. }
HtmlDocument->_renderTemplate() in /www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php (line 637)
  1.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  2.             $this->cspNonce $params['csp_nonce'];
  3.         }
  4.         $data $this->_renderTemplate();
  5.         parent::render($caching$params);
  6.         return $data;
  7.     }
HtmlDocument->render(false, array('template' => 'shaper_gazette', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/www/htdocs/v085860/polhost/templates')) in /www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php (line 1025)
  1.         if ($this->isClient('site') && $this->get('caching') && $this->get('caching'2) == && !Factory::getUser()->get('id')) {
  2.             $caching true;
  3.         }
  4.         // Render the document.
  5.         $data $this->document->render($caching$this->docOptions);
  6.         // Set the application output data.
  7.         $this->setBody($data);
  8.         // Trigger the onAfterRender event.
  1.                 $this->set('themeInherits'$template->parent);
  2.                 break;
  3.         }
  4.         parent::render();
  5.     }
  6.     /**
  7.      * Route the application.
  8.      *
  1.             $this->doExecute();
  2.             // If we have an application document object, render it.
  3.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  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.                 $this->compress();
CMSApplication->execute() in /www/htdocs/v085860/polhost/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/www/htdocs/v085860/polhost/includes/app.php') in /www/htdocs/v085860/polhost/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 Traces 2

[2/2] Error
Error:
Object of class stdClass could not be converted to string

  at /www/htdocs/v085860/polhost/templates/shaper_gazette/error.php:70
  at require()
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:721)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/www/htdocs/v085860/polhost/templates/shaper_gazette', 'error.php')
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:776)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:612)
  at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:630)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/v085860/polhost/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/v085860/polhost/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(TypeError))
     (/www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(TypeError))
     (/www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(TypeError))
     (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/www/htdocs/v085860/polhost/includes/app.php:61)
  at require_once('/www/htdocs/v085860/polhost/includes/app.php')
     (/www/htdocs/v085860/polhost/index.php:32)                
[1/2] TypeError
TypeError:
count(): Argument #1 ($value) must be of type Countable|array, null given

  at /www/htdocs/v085860/polhost/templates/shaper_gazette/html/mod_login/default.php:69
  at require()
     (/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php:34)
  at include('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php')
     (/www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php:52)
  at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php', null)
     (/www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php:55)
  at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch()
     (/www/htdocs/v085860/polhost/libraries/src/Helper/ModuleHelper.php:281)
  at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'right', 'style' => 'sp_xhtml'))
     (/www/htdocs/v085860/polhost/libraries/src/Helper/ModuleHelper.php:161)
  at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml'))
     (/www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99)
  at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml'), null)
     (/www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50)
  at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('right', array('name' => 'right', 'style' => 'sp_xhtml'), null)
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:565)
  at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'right', array('name' => 'right', 'style' => 'sp_xhtml'))
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:833)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:637)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_gazette', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/www/htdocs/v085860/polhost/templates'))
     (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:1025)
  at Joomla\CMS\Application\CMSApplication->render()
     (/www/htdocs/v085860/polhost/libraries/src/Application/SiteApplication.php:724)
  at Joomla\CMS\Application\SiteApplication->render()
     (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:298)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/www/htdocs/v085860/polhost/includes/app.php:61)
  at require_once('/www/htdocs/v085860/polhost/includes/app.php')
     (/www/htdocs/v085860/polhost/index.php:32)