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