Error 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;
  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.     /**
  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.      *
  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.         }
  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.      *
  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. }
  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.             }
  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.      *
  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 /var/www/clients/client1/web34/web/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('/var/www/clients/client1/web34/web/includes/app.php') in /var/www/clients/client1/web34/web/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 method Joomla\CMS\Application\SiteApplication::isAdmin()

  1. jimport('joomla.html.html');
  2. jimport('joomla.access.access');
  3. jimport('joomla.form.formfield');
  4. if(JFactory::getApplication()->isAdmin()) {
  5.     JHtml::_('behavior.framework'true);
  6.     JHtml::_('behavior.modal');
  7. }
  8. require_once __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php';
  1.         if (!is_file($path)) {
  2.             return new DummyPlugin($dispatcher);
  3.         }
  4.         // Include the file of the plugin
  5.         require_once $path;
  6.         // Compile the classname
  7.         $className 'Plg' str_replace('-'''$type) . $plugin;
  8.         // Editors don't follow the convention
  1.                 case ModuleInterface::class:
  2.                     $container->set($type, new Module(new ModuleDispatcherFactory(''), new HelperFactory('')));
  3.                     break;
  4.                 case PluginInterface::class:
  5.                     list($pluginName$pluginType) = explode(':'$extensionName);
  6.                     $container->set($type$this->loadPluginFromFilesystem($pluginName$pluginType));
  7.             }
  8.         }
  9.         $container->get(DispatcherInterface::class)->dispatch(
  10.             'onAfterExtensionBoot',
  1.         $plugin str_starts_with($plugin'plg_') ? substr($plugin4) : $plugin;
  2.         // Path to look for services
  3.         $path JPATH_SITE '/plugins/' $type '/' $plugin;
  4.         return $this->loadExtension(PluginInterface::class, $plugin ':' $type$path);
  5.     }
  6.     /**
  7.      * Loads the extension.
  8.      *
  1.             return;
  2.         }
  3.         $plugins[$hash] = true;
  4.         $plugin Factory::getApplication()->bootPlugin($plugin->name$plugin->type);
  5.         if ($dispatcher && $plugin instanceof DispatcherAwareInterface) {
  6.             $plugin->setDispatcher($dispatcher);
  7.         }
  1.             $plugins = static::load();
  2.             // Get the specified plugin(s).
  3.             for ($i 0$t = \count($plugins); $i $t$i++) {
  4.                 if ($plugins[$i]->type === $type && ($plugin === null || $plugins[$i]->name === $plugin)) {
  5.                     static::import($plugins[$i], $autocreate$dispatcher);
  6.                     $results true;
  7.                 }
  8.             }
  9.             // Bail out early if we're not using default args
  1.             if(!empty($obj->virtuemart_custom_id)){
  2.                 static $varsToPushPlg = array();
  3.                 if(isset($varsToPushPlg[$obj->virtuemart_custom_id])){
  4.                     $obj->_varsToPushParam $varsToPushPlg[$obj->virtuemart_custom_id];
  5.                 } else {
  6.                     JPluginHelper::importPlugin ('vmcustom');
  7.                     vDispatcher::directTrigger('vmcustom'$obj->custom_element'plgVmDeclarePluginParamsCustomVM3', array(&$obj), false);
  8.                     $varsToPushPlg[$obj->virtuemart_custom_id] = false;
  9.                     if(!empty($obj->_varsToPushParam)){
  10.                         $varsToPushPlg[$obj->virtuemart_custom_id] = $obj->_varsToPushParam;
  11.                     }
VirtueMartModelCustomfields::bindCustomEmbeddedFieldParams() in /var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/customfields.php (line 251)
  1.                 if(in_array($field->virtuemart_customfield_id,$virtuemart_customfield_ids)){
  2.                     if($forcefront and $field->disabler){
  3.                         unset($productCustoms[$k]);
  4.                     } else {
  5.                         VirtueMartModelCustomfields::bindCustomEmbeddedFieldParams($productCustoms[$k],$field->field_type);
  6.                     }
  7.                 } else{
  8.                     unset($productCustoms[$k]);
  9.                 }
VirtueMartModelCustomfields->getCustomEmbeddedProductCustomFields() in /var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/product.php (line 1406)
  1.         $child->customfields false;
  2.         $customfieldsModel VmModel::getModel ('Customfields');
  3.         $child->modificatorSum null;
  4.         if(!empty($child->allIds)){
  5.             $child->customfields $customfieldsModel->getCustomEmbeddedProductCustomFields ($child->allIds,0,$this->cartattributeFALSE);
  6.         } else {
  7.             vmTrace('Empty product allIds in getProduct? '$virtuemart_product_id);
  8.         }
  1.             }
  2.         }
  3.         else {
  4.             foreach ($productIds as $id) {
  5.                 if ($product $this->getProduct ((int)$id$front$withCalc$onlyPublished,1)) {
  6.                     $products[] = $product;
  7.                     $i++;
  8.                 }
  9.                 if ($i $maxNumber) {
  10.                     vmdebug ('Better not to display more than ' $maxNumber ' products');
  1.                     $ids $this->productModel->sortSearchListQueryTRUE$this->categoryId );
  2.                     VirtueMartModelProduct::$_alreadyLoadedIds array_mergeVirtueMartModelProduct::$_alreadyLoadedIds$ids );
  3.                     $this->vmPagination $this->productModel->getPagination$this->perRow );
  4.                     $this->orderByList $this->productModel->getOrderByList$this->categoryId );
  5.                     $this->products['products'] = $this->productModel->getProducts$ids );
  6.                     $this->productModel->addImages$this->products['products'], $imgAmount );
  7.                 } else {
  8.                     //Lets check, if we use the new Frontpages settings
  9.                     VirtueMartModelProduct::$omitLoaded VmConfig::get'omitLoaded_'.$otrue );
  10.                     if(!empty( $this->{$o} ) and !empty( $this->{$o.'_rows'} )) {
  1.             $view $this->getView($viewName$viewType'', array('layout' => $viewLayout));
  2.             $view->assignRef('document'$document);
  3.             $view->display();
  4.         //}
  5.         if($categoryId vRequest::getInt('virtuemart_category_id',0)){
  6.             shopFunctionsF::setLastVisitedCategoryId($categoryId);
  7.         }
  8.         return $this;
  1.         }
  2.         // Record the actual task being fired
  3.         $this->doTask $doTask;
  4.         return $this->$doTask();
  5.     }
  6.     /**
  7.      * Method to get a model object, loading it if required.
  8.      *
  1. if (class_exists($_class)) {
  2.     $controller = new $_class();
  3.     $controller->execute($task);
  4.     if(class_exists('vmrouterHelper') and vmrouterHelper::$updateCache and VmConfig::get('useCacheVmGetCategoryRoute',1)){
  5.         vmrouterHelper::updateCache();
  6.     }
require_once('/var/www/clients/client1/web34/web/components/com_virtuemart/virtuemart.php') in /var/www/clients/client1/web34/web/libraries/src/Dispatcher/LegacyComponentDispatcher.php (line 71)
  1.         // Load common and local language files.
  2.         $lang->load($this->app->scopeJPATH_BASE) || $lang->load($this->app->scopeJPATH_COMPONENT);
  3.         // Execute the component
  4.         $loader = static function ($path) {
  5.             require_once $path;
  6.         };
  7.         $loader($path);
  8.     }
  9. }
LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() in /var/www/clients/client1/web34/web/libraries/src/Dispatcher/LegacyComponentDispatcher.php (line 73)
  1.         // Execute the component
  2.         $loader = static function ($path) {
  3.             require_once $path;
  4.         };
  5.         $loader($path);
  6.     }
  7. }
  1.         if (!static::isEnabled($option)) {
  2.             throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
  3.         }
  4.         ob_start();
  5.         $app->bootComponent($option)->getDispatcher($app)->dispatch();
  6.         $contents ob_get_clean();
  7.         // Revert the scope
  8.         $app->scope $scope;
  1.             $document->setGenerator('Joomla! - Open Source Content Management - Version ' JVERSION);
  2.         } else {
  3.             $document->setGenerator('Joomla! - Open Source Content Management');
  4.         }
  5.         $contents ComponentHelper::renderComponent($component);
  6.         $document->setBuffer($contents'component');
  7.         // Trigger the onAfterDispatch event.
  8.         PluginHelper::importPlugin('system');
  9.         $this->triggerEvent('onAfterDispatch');
  1.              */
  2.             $this->checkUserRequireReset('com_users''profile''edit''com_users/profile.save,com_users/profile.apply,com_users/user.logout');
  3.         }
  4.         // Dispatch the application
  5.         $this->dispatch();
  6.         // Mark afterDispatch in the profiler.
  7.         JDEBUG $this->profiler->mark('afterDispatch') : null;
  8.     }
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
CMSApplication->execute() in /var/www/clients/client1/web34/web/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('/var/www/clients/client1/web34/web/includes/app.php') in /var/www/clients/client1/web34/web/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 /var/www/clients/client1/web34/web/templates/shaper_estate/error.php:70
  at require()
     (/var/www/clients/client1/web34/web/libraries/src/Document/HtmlDocument.php:721)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/var/www/clients/client1/web34/web/libraries/src/Document/HtmlDocument.php:776)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/var/www/clients/client1/web34/web/libraries/src/Document/HtmlDocument.php:612)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/var/www/clients/client1/web34/web/libraries/src/Document/HtmlDocument.php:630)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/var/www/clients/client1/web34/web/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/var/www/clients/client1/web34/web/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/clients/client1/web34/web/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/clients/client1/web34/web/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/clients/client1/web34/web/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/clients/client1/web34/web/includes/app.php:61)
  at require_once('/var/www/clients/client1/web34/web/includes/app.php')
     (/var/www/clients/client1/web34/web/index.php:32)                
[1/2] Error
Error:
Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()

  at /var/www/clients/client1/web34/web/plugins/vmcustom/stockablecustomfields/stockablecustomfields.php:14
  at require_once()
     (/var/www/clients/client1/web34/web/libraries/src/Extension/ExtensionManagerTrait.php:217)
  at Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem()
     (/var/www/clients/client1/web34/web/libraries/src/Extension/ExtensionManagerTrait.php:160)
  at Joomla\CMS\Application\CMSApplication->loadExtension()
     (/var/www/clients/client1/web34/web/libraries/src/Extension/ExtensionManagerTrait.php:99)
  at Joomla\CMS\Application\CMSApplication->bootPlugin()
     (/var/www/clients/client1/web34/web/libraries/src/Plugin/PluginHelper.php:232)
  at Joomla\CMS\Plugin\PluginHelper::import()
     (/var/www/clients/client1/web34/web/libraries/src/Plugin/PluginHelper.php:192)
  at Joomla\CMS\Plugin\PluginHelper::importPlugin()
     (/var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/customfields.php:275)
  at VirtueMartModelCustomfields::bindCustomEmbeddedFieldParams()
     (/var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/customfields.php:251)
  at VirtueMartModelCustomfields->getCustomEmbeddedProductCustomFields()
     (/var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/product.php:1406)
  at VirtueMartModelProduct->getProduct()
     (/var/www/clients/client1/web34/web/administrator/components/com_virtuemart/models/product.php:2306)
  at VirtueMartModelProduct->getProducts()
     (/var/www/clients/client1/web34/web/components/com_virtuemart/views/category/view.html.php:288)
  at VirtuemartViewCategory->display()
     (/var/www/clients/client1/web34/web/components/com_virtuemart/controllers/category.php:61)
  at VirtueMartControllerCategory->display()
     (/var/www/clients/client1/web34/web/libraries/src/MVC/Controller/BaseController.php:693)
  at Joomla\CMS\MVC\Controller\BaseController->execute()
     (/var/www/clients/client1/web34/web/components/com_virtuemart/virtuemart.php:133)
  at require_once('/var/www/clients/client1/web34/web/components/com_virtuemart/virtuemart.php')
     (/var/www/clients/client1/web34/web/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
     (/var/www/clients/client1/web34/web/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73)
  at Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
     (/var/www/clients/client1/web34/web/libraries/src/Component/ComponentHelper.php:361)
  at Joomla\CMS\Component\ComponentHelper::renderComponent()
     (/var/www/clients/client1/web34/web/libraries/src/Application/SiteApplication.php:208)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/var/www/clients/client1/web34/web/libraries/src/Application/SiteApplication.php:249)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/clients/client1/web34/web/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/clients/client1/web34/web/includes/app.php:61)
  at require_once('/var/www/clients/client1/web34/web/includes/app.php')
     (/var/www/clients/client1/web34/web/index.php:32)