System Error
Could not initialize component 'recaptcha': PHP Error: count(): Parameter must be an array or an object that implements Countable, Code: 2, File: /var/www/vhosts/spimise.com/framework/source/libs/controller/lcBaseController.class.php, Line: 279

[lcBaseController.class / 325 / 2]
Exception Type: lcComponentException

Domain: com.lightcast.generic

Filename: /var/www/vhosts/spimise.com/framework/source/libs/controller/lcBaseController.class.php
Line: 325
  1.             }
  2.             if (!$component_instance) {
  3.                 throw new lcNotAvailableException('Component not available');
  4.             }
  5.         } catch (Exception $e) {
  6.             throw new lcComponentException('Could not initialize component \'' $component_name '\': ' .
  7.                 $e->getMessage(),
  8.                 $e->getCode(),
  9.                 $e);
  10.         }
  11.         return $component_instance;
Stack Trace
#0 /var/www/vhosts/spimise.com/framework/source/libs/app/lcApp.class.php(1121): lcErrorHandler->handlePHPError(2,...)
  1.     public function handlePHPError($errno$errmsg$filename$linenum$vars)
  2.     {
  3.         if (!$this->error_handler) {
  4.             throw new lcPHPException($errmsg$errno$filename$linenum);
  5.         }
  6.         $this->error_handler->handlePHPError($errno$errmsg$filename$linenum$vars);
  7.     }
  8.     public function handleAssertion($file$line$code)
  9.     {
  10.         if ($this->error_handler) {
  11.             $this->error_handler->handleAssertion($file$line$code);
#1 /var/www/vhosts/spimise.com/framework/source/libs/controller/lcBaseController.class.php(279): lcApp->handlePHPError(2,...)
  1.             throw new lcInvalidArgumentException('Invalid component name');
  2.         }
  3.         $component_instance null;
  4.         try {
  5.             $usage_count = isset($this->loaded_components_usage[$component_name]) ? (int)count($this->loaded_components_usage[$component_name]) : null;
  6.             // check if component is loaded and has been initialized once (dependancies)
  7.             if (is_null($usage_count)) {
  8.                 throw new lcRequirementException('Component has not been required');
  9.             }
#2 /var/www/vhosts/spimise.com/applications/frontend/modules/support/support.php(111): lcBaseController->getComponent('recaptcha')
  1.         if (!$mobile_ver_shown)
  2.         {
  3.             $view->getNode('last_tweets');
  4.         }
  5.         // recaptcha component
  6.         $rcmp $this->getComponent('recaptcha');
  7.         $view->recaptcha_cmp $rcmp->render();
  8.         // seo
  9.         $this->title $this->t('Support / How may we be of service?');
  10.         $this->description $this->t('Having a problem with the app? Not sure how to use it or you have a question / improvement advice? Let us know!');
  11.         $this->keywords $this->t('frequently asked questions,faq,support,help,help center,app help,how to use,howto');
#3 /var/www/vhosts/spimise.com/framework/source/libs/controller/lcWebController.class.php(170): cSupport->actionIndex(Array,...)
  1.         // call the action
  2.         // unfortunately the way we are handling variables at the moment
  3.         // we can't use the fast calling as args need to be expanded with their names (actions are looking for them)
  4.         // so we fall back to the default way
  5.         //$call_result = $this->__call($action, $params);
  6.         $this->action_result call_user_func_array(array($this$action), $action_params);
  7.         // run after execute
  8.         call_user_func_array(array($this'afterExecute'), $action_params);
  9.         // notify after the action has been executed
  10.         if ($this->event_dispatcher) {
#4 /var/www/vhosts/spimise.com/framework/source/libs/controller/lcController.class.php(539): lcWebController->execute('index',...)
  1.         $controller->setDispatchParams($this->dispatch_params);
  2.         // execute the request
  3.         $action_result null;
  4.         $action_params $action_params $action_params : array();
  5.         $action_result $controller->execute($action_name$action_params);
  6.         // set back to controller
  7.         $controller->action_result $action_result;
  8.         // view rendering
  9.         $view $controller->getView();
#5 /var/www/vhosts/spimise.com/framework/source/libs/controller/lcController.class.php(385): lcController->renderControllerAction(Object,...)
  1.             'params' => $action_params,
  2.         );
  3.         $this->event_dispatcher->filter(new lcEvent('controller.change_action'$this$notification_params), $notification_params);
  4.         unset($notification_params);
  5.         // render the action
  6.         $rendered_view_contents $this->renderControllerAction($controller_instance$action_name$action_params);
  7.         // decorate content with layout view
  8.         $content_type $rendered_view_contents['content_type'];
  9.         $content = isset($rendered_view_contents['content']) ? $rendered_view_contents['content'] : null;
  10.         try {
#6 /var/www/vhosts/spimise.com/framework/source/libs/controller/front/lcFrontController.class.php(168): lcController->forwardToControllerAction(Object,...)
  1.         // save the dispatch params so they can be reused and recombined with further forwards later
  2.         $controller->setDispatchParams($action_params);
  3.         try
  4.         {
  5.             // forward to the action
  6.             return $controller->forwardToControllerAction($controllernull$action_name$action_params);
  7.         }
  8.         catch(Exception $e)
  9.         {
  10.             if ($e instanceof lcControllerNotFoundException || $e instanceof lcActionNotFoundException)
  11.             {
  12.                 return $this->handleControllerNotReachable($controller_name$action_name$action_params);
#7 /var/www/vhosts/spimise.com/framework/source/libs/controller/front/lcFrontController.class.php(142): lcFrontController->forward('support',...)
  1.         // TODO: security.is_secure = TRUE - if a controller is not found
  2.         // and security is enabled - we must not return the not found error response
  3.         // but an access denied instead.
  4.         // forward the request
  5.         return $this->forward($controller$action, array('request' => $request_params));
  6.     }
  7.     
  8.     public function forward($controller_name$action_name, array $action_params null)
  9.     {
  10.         // validate and throw exception if not possible to forward
  11.         $this->validateForward($action_name$controller_name);
#8 /var/www/vhosts/spimise.com/framework/source/libs/app/lcApp.class.php(1052): lcFrontController->dispatch()
  1.         }
  2.         $ctrl->setSystemComponentFactory($this->configuration->getSystemComponentFactory());
  3.         $ctrl->setDatabaseModelManager($this->configuration->getDatabaseModelManager());
  4.         $ctrl->setPluginManager($this->configuration->getPluginManager());
  5.         $ctrl->setTranslationContext(lcSysObj::CONTEXT_APP$this->configuration->getApplicationName());
  6.         $ctrl->dispatch();
  7.     }
  8.     public function getDebugSnapshot($short false)
  9.     {
  10.         $snapshot = array(
  11.             'is_debugging' => DO_DEBUG,
#9 /var/www/vhosts/spimise.com/webroot/index.php(30): lcApp->dispatch()
  1. require_once('../applications/frontend/config/lcFrontendConfiguration.class.php');
  2. $configuration = new lcFrontendConfiguration(realpath(dirname(__FILE__) . '/../'), new ProjectConfiguration());
  3. @include_once('../config/boot_config.php');
  4. lcApp::bootstrap($configuration)->dispatch();
  5. ?>
Lightcast: 1.5.1.1469, PHP: 7.3.33