Warning: include(/home/arboresczr/cadonicicosta/libraries/vendor/composer/../../../libraries/src/Cache/Cache.php): Failed to open stream: No such file or directory in /home/arboresczr/cadonicicosta/libraries/vendor/composer/ClassLoader.php on line 576

Warning: include(/home/arboresczr/cadonicicosta/libraries/vendor/composer/../../../libraries/src/Cache/Cache.php): Failed to open stream: No such file or directory in /home/arboresczr/cadonicicosta/libraries/vendor/composer/ClassLoader.php on line 576

Warning: include(): Failed opening '/home/arboresczr/cadonicicosta/libraries/vendor/composer/../../../libraries/src/Cache/Cache.php' for inclusion (include_path='.:/usr/local/php8.4/lib/php') in /home/arboresczr/cadonicicosta/libraries/vendor/composer/ClassLoader.php on line 576
Attempted to load class "Cache" from namespace "Joomla\CMS\Cache". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

Error ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load class "Cache" from namespace "Joomla\CMS\Cache".
Did you forget a "use" statement for another namespace?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. *
  2. * @since 1.7.0
  3. */
  4. public function __construct($options)
  5. {
  6. $this->cache = new Cache($options);
  7. $this->options = &$this->cache->_options;
  8. // Overwrite default options with given options
  9. foreach ($options as $option => $value) {
  10. if ($value !== null) {
CacheController->__construct(array('defaultgroup' => 'com_menus')) in /home/arboresczr/cadonicicosta/libraries/src/Cache/CacheControllerFactory.php (line 49)
  1. // The class should now be loaded
  2. if (!class_exists($class)) {
  3. throw new \RuntimeException('Unable to load Cache Controller: ' . $type, 500);
  4. }
  5. return new $class($options);
  6. }
  7. }
CacheControllerFactory->createCacheController('callback', array('defaultgroup' => 'com_menus')) in /home/arboresczr/cadonicicosta/libraries/src/Menu/SiteMenu.php (line 177)
  1. return $items;
  2. };
  3. try {
  4. /** @var CallbackController $cache */
  5. $cache = $this->getCacheControllerFactory()->createCacheController('callback', ['defaultgroup' => 'com_menus']);
  6. $this->items = $cache->get($loader, [], md5(\get_class($this)), false);
  7. } catch (CacheExceptionInterface) {
  8. try {
  9. $this->items = $loader();
  1. * @since 1.5
  2. */
  3. public function getMenu()
  4. {
  5. if (!$this->itemsLoaded) {
  6. $this->load();
  7. foreach ($this->items as $item) {
  8. if ($item->home) {
  9. $this->default[trim($item->language)] = $item->id;
  10. }
  1. */
  2. public function getItem($id)
  3. {
  4. $result = null;
  5. if (isset($this->getMenu()[$id])) {
  6. $result = &$this->getMenu()[$id];
  7. }
  8. return $result;
  9. }
  1. {
  2. $menu = $this->getMenu();
  3. $item = $menu->getActive();
  4. if (!$item) {
  5. $item = $menu->getItem($this->input->getInt('Itemid', 0));
  6. }
  7. $id = 0;
  8. if ($item) {
SiteApplication->getTemplateStyleId() in /home/arboresczr/cadonicicosta/libraries/src/Application/SiteApplication.php (line 756)
  1. *
  2. * @throws \InvalidArgumentException
  3. */
  4. protected function initialiseTemplate(): void
  5. {
  6. $id = $this->getTemplateStyleId();
  7. $templates = $this->getTemplates();
  8. $template = $templates[$id] ?? $templates[0];
SiteApplication->initialiseTemplate() in /home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php (line 721)
  1. * @since 3.2
  2. */
  3. public function getTemplate($params = false)
  4. {
  5. if (!\is_object($this->template)) {
  6. $this->initialiseTemplate();
  7. }
  8. if (!$this->isValidTemplate($this->template)) {
  9. throw new \InvalidArgumentException(
  10. Text::sprintf('JERROR_COULD_NOT_FIND_TEMPLATE', $this->template->template)
  1. public function render(\Throwable $error): string
  2. {
  3. $app = Factory::getApplication();
  4. // Get the current template from the application
  5. $template = $app->getTemplate(true);
  6. // Push the error object into the document
  7. $this->getDocument()->setError($error);
  8. // Add registry file for the template asset
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  9. }
ExceptionHandler::render(object(Error)) in /home/arboresczr/cadonicicosta/libraries/src/Exception/ExceptionHandler.php (line 76)
  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 /home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php (line 350)
  1. );
  2. // Trigger the onError event.
  3. $this->dispatchEvent('onError', $event);
  4. ExceptionHandler::handleException($event->getError());
  5. }
  6. // Trigger the onBeforeRespond event.
  7. $this->dispatchEvent(
  8. 'onBeforeRespond',
CMSApplication->execute() in /home/arboresczr/cadonicicosta/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/arboresczr/cadonicicosta/includes/app.php') in /home/arboresczr/cadonicicosta/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Error

Class "Joomla\CMS\Cache\Cache" not found

  1. *
  2. * @since 1.7.0
  3. */
  4. public function __construct($options)
  5. {
  6. $this->cache = new Cache($options);
  7. $this->options = &$this->cache->_options;
  8. // Overwrite default options with given options
  9. foreach ($options as $option => $value) {
  10. if ($value !== null) {
CacheController->__construct(array('defaultgroup' => '_system')) in /home/arboresczr/cadonicicosta/libraries/src/Cache/CacheControllerFactory.php (line 49)
  1. // The class should now be loaded
  2. if (!class_exists($class)) {
  3. throw new \RuntimeException('Unable to load Cache Controller: ' . $type, 500);
  4. }
  5. return new $class($options);
  6. }
  7. }
CacheControllerFactory->createCacheController('callback', array('defaultgroup' => '_system')) in /home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php (line 407)
  1. return $components;
  2. };
  3. /** @var CallbackController $cache */
  4. $cache = Factory::getContainer()->get(CacheControllerFactoryInterface::class)->createCacheController('callback', ['defaultgroup' => '_system']);
  5. try {
  6. static::$components = $cache->get($loader, [], __METHOD__);
  7. } catch (CacheExceptionInterface) {
  8. static::$components = $loader();
  1. * @since 3.6.3
  2. */
  3. public static function getComponents()
  4. {
  5. if (empty(static::$components)) {
  6. static::load();
  7. }
  8. return static::$components;
  9. }
  1. *
  2. * @since 1.5
  3. */
  4. public static function getComponent($option, $strict = false)
  5. {
  6. $components = static::getComponents();
  7. if (isset($components[$option])) {
  8. return $components[$option];
  9. }
ComponentHelper::getComponent('com_users', false) in /home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php (line 114)
  1. * @see Registry
  2. * @since 1.5
  3. */
  4. public static function getParams($option, $strict = false)
  5. {
  6. return static::getComponent($option, $strict)->getParams();
  7. }
  8. /**
  9. * Applies the global text filters to arbitrary text as per settings for current user groups
  10. *
ComponentHelper::getParams('com_users') in /home/arboresczr/cadonicicosta/libraries/src/Access/Access.php (line 833)
  1. // Creates a simple unique string for each parameter combination:
  2. $storeId = $userId . ':' . (int) $recursive;
  3. if (!isset(self::$groupsByUser[$storeId])) {
  4. // @todo: Uncouple this from ComponentHelper and allow for a configuration setting or value injection.
  5. $guestUsergroup = (int) ComponentHelper::getParams('com_users')->get('guest_usergroup', 1);
  6. // Guest user (if only the actually assigned group is requested)
  7. if (empty($userId) && !$recursive) {
  8. $result = [$guestUsergroup];
  9. } else {
  1. return array_values(array_unique($authorised));
  2. }
  3. // Get all groups that the user is mapped to recursively.
  4. $groups = self::getGroupsByUser($userId);
  5. // Find the authorised levels.
  6. foreach (self::$viewLevels as $level => $rule) {
  7. foreach ($rule as $id) {
  8. if (($id < 0) && (($id * -1) == $userId)) {
Access::getAuthorisedViewLevels(0) in /home/arboresczr/cadonicicosta/libraries/src/User/User.php (line 475)
  1. if ($this->_authLevels === null) {
  2. $this->_authLevels = [];
  3. }
  4. if (empty($this->_authLevels)) {
  5. $this->_authLevels = Access::getAuthorisedViewLevels($this->id);
  6. }
  7. return $this->_authLevels;
  8. }
  1. {
  2. if (static::$plugins !== null) {
  3. return static::$plugins;
  4. }
  5. $levels = Factory::getUser()->getAuthorisedViewLevels();
  6. /** @var \Joomla\CMS\Cache\Controller\CallbackController $cache */
  7. $cache = Factory::getCache('com_plugins', 'callback');
  8. $loader = function () use ($levels) {
  1. if (!$defaults || !isset($loaded[$dispatcherHash][$type])) {
  2. $results = null;
  3. // Load the plugins from the database.
  4. $plugins = static::load();
  5. // Get the specified plugin(s).
  6. foreach ($plugins as $value) {
  7. if ($value->type === $type && ($plugin === null || $value->name === $plugin)) {
  8. static::import($value, $autocreate, $dispatcher);
PluginHelper::importPlugin('behaviour', null, true, object(Dispatcher)) in /home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php (line 305)
  1. $this->sanityCheckSystemVariables();
  2. $this->setupLogging();
  3. $this->createExtensionNamespaceMap();
  4. // Load the behaviour plugins
  5. PluginHelper::importPlugin('behaviour', null, true, $this->getDispatcher());
  6. // Load the system plugins
  7. PluginHelper::importPlugin('system', null, true, $this->getDispatcher());
  8. // Trigger the onBeforeExecute event
CMSApplication->execute() in /home/arboresczr/cadonicicosta/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/arboresczr/cadonicicosta/includes/app.php') in /home/arboresczr/cadonicicosta/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Traces 2

[2/2] ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "Cache" from namespace "Joomla\CMS\Cache".
Did you forget a "use" statement for another namespace?

  at /home/arboresczr/cadonicicosta/libraries/src/Cache/CacheController.php:53
  at Joomla\CMS\Cache\CacheController->__construct(array('defaultgroup' => 'com_menus'))
     (/home/arboresczr/cadonicicosta/libraries/src/Cache/CacheControllerFactory.php:49)
  at Joomla\CMS\Cache\CacheControllerFactory->createCacheController('callback', array('defaultgroup' => 'com_menus'))
     (/home/arboresczr/cadonicicosta/libraries/src/Menu/SiteMenu.php:177)
  at Joomla\CMS\Menu\SiteMenu->load()
     (/home/arboresczr/cadonicicosta/libraries/src/Menu/AbstractMenu.php:333)
  at Joomla\CMS\Menu\AbstractMenu->getMenu()
     (/home/arboresczr/cadonicicosta/libraries/src/Menu/AbstractMenu.php:164)
  at Joomla\CMS\Menu\AbstractMenu->getItem(0)
     (/home/arboresczr/cadonicicosta/libraries/src/Application/SiteApplication.php:808)
  at Joomla\CMS\Application\SiteApplication->getTemplateStyleId()
     (/home/arboresczr/cadonicicosta/libraries/src/Application/SiteApplication.php:756)
  at Joomla\CMS\Application\SiteApplication->initialiseTemplate()
     (/home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php:721)
  at Joomla\CMS\Application\CMSApplication->getTemplate(true)
     (/home/arboresczr/cadonicicosta/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error))
     (/home/arboresczr/cadonicicosta/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/home/arboresczr/cadonicicosta/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php:350)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/arboresczr/cadonicicosta/includes/app.php:58)
  at require_once('/home/arboresczr/cadonicicosta/includes/app.php')
     (/home/arboresczr/cadonicicosta/index.php:51)                
[1/2] Error
Error:
Class "Joomla\CMS\Cache\Cache" not found

  at /home/arboresczr/cadonicicosta/libraries/src/Cache/CacheController.php:53
  at Joomla\CMS\Cache\CacheController->__construct(array('defaultgroup' => '_system'))
     (/home/arboresczr/cadonicicosta/libraries/src/Cache/CacheControllerFactory.php:49)
  at Joomla\CMS\Cache\CacheControllerFactory->createCacheController('callback', array('defaultgroup' => '_system'))
     (/home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php:407)
  at Joomla\CMS\Component\ComponentHelper::load()
     (/home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php:428)
  at Joomla\CMS\Component\ComponentHelper::getComponents()
     (/home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php:56)
  at Joomla\CMS\Component\ComponentHelper::getComponent('com_users', false)
     (/home/arboresczr/cadonicicosta/libraries/src/Component/ComponentHelper.php:114)
  at Joomla\CMS\Component\ComponentHelper::getParams('com_users')
     (/home/arboresczr/cadonicicosta/libraries/src/Access/Access.php:833)
  at Joomla\CMS\Access\Access::getGroupsByUser(0)
     (/home/arboresczr/cadonicicosta/libraries/src/Access/Access.php:982)
  at Joomla\CMS\Access\Access::getAuthorisedViewLevels(0)
     (/home/arboresczr/cadonicicosta/libraries/src/User/User.php:475)
  at Joomla\CMS\User\User->getAuthorisedViewLevels()
     (/home/arboresczr/cadonicicosta/libraries/src/Plugin/PluginHelper.php:270)
  at Joomla\CMS\Plugin\PluginHelper::load()
     (/home/arboresczr/cadonicicosta/libraries/src/Plugin/PluginHelper.php:188)
  at Joomla\CMS\Plugin\PluginHelper::importPlugin('behaviour', null, true, object(Dispatcher))
     (/home/arboresczr/cadonicicosta/libraries/src/Application/CMSApplication.php:305)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/arboresczr/cadonicicosta/includes/app.php:58)
  at require_once('/home/arboresczr/cadonicicosta/includes/app.php')
     (/home/arboresczr/cadonicicosta/index.php:51)