Warning: require_once(/home/esmaka/public_html/plugins/system/esmaka_hitsformatter/format.php): Failed to open stream: No such file or directory in /home/esmaka/public_html/plugins/system/esmaka_hitsformatter/esmaka_hitsformatter.php on line 18
Call to a member function getTag() on null (500 Whoops, looks like something went wrong.)

Error Error

HTTP 500 Whoops, looks like something went wrong.

Call to a member function getTag() on null

Exceptions 2

Error

  1. array $dependencies = []
  2. ) {
  3. parent::__construct($name, $uri, $options, $attributes, $dependencies);
  4. // Prepare Uri depend from the active language
  5. $langTag = Factory::getApplication()->getLanguage()->getTag();
  6. $client = $this->getOption('client');
  7. // Create Uri <client>/language/<langTag>/<langTag>.css
  8. if ($client) {
  9. $this->uri = $client . '/language/' . $langTag . '/' . $langTag . '.css';
LangActiveAssetItem->__construct() in /home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php (line 248)
  1. $className = \array_key_exists('class', $options) ? $options['class'] : null;
  2. if ($className && class_exists($nameSpace . '\\' . $className)) {
  3. $className = $nameSpace . '\\' . $className;
  4. return new $className($name, $uri, $options, $attributes, $dependencies);
  5. }
  6. return new WebAssetItem($name, $uri, $options, $attributes, $dependencies);
  7. }
  1. // Inheriting the Namespace
  2. if ($namespace && !\array_key_exists('namespace', $options)) {
  3. $options['namespace'] = $namespace;
  4. }
  5. $assetItem = $this->createAsset($name, $uri, $options);
  6. $this->add($item['type'], $assetItem);
  7. }
  8. }
  9. /**
WebAssetRegistry->parseRegistryFile() in /home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php (line 352)
  1. $this->dataFilesNew = [];
  2. foreach ($paths as $path) {
  3. // Parse only if the file was not parsed already
  4. if (empty($this->dataFilesParsed[$path])) {
  5. $this->parseRegistryFile($path);
  6. // Mark the file as parsed
  7. $this->dataFilesParsed[$path] = $path;
  8. }
  9. }
WebAssetRegistry->parseRegistryFiles() in /home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php (line 160)
  1. if (!\array_key_exists($type, $this->assets)) {
  2. $this->assets[$type] = [];
  3. }
  4. // Check if any new file was added
  5. $this->parseRegistryFiles();
  6. $eventChange = 'new';
  7. $eventAsset = $asset;
  8. // Use "old" asset for "Changed" event, a "new" asset can be loaded by a name from the registry
  1. if ($asset instanceof WebAssetItemInterface) {
  2. $this->registry->add($type, $asset);
  3. } elseif (\is_string($asset)) {
  4. $options['type'] = $type;
  5. $assetInstance = $this->registry->createAsset($asset, $uri, $options, $attributes, $dependencies);
  6. $this->registry->add($type, $assetInstance);
  7. } else {
  8. throw new \InvalidArgumentException(
  9. \sprintf(
  10. '%s(): Argument #2 ($asset) must be a string or an instance of %s, %s given.',
  11. __METHOD__,
WebAssetManager->registerAsset() in /home/esmaka/public_html/libraries/src/WebAsset/WebAssetManager.php (line 245)
  1. }
  2. if ($andUse) {
  3. $name = $arguments[0] instanceof WebAssetItemInterface ? $arguments[0]->getName() : $arguments[0];
  4. return $this->registerAsset($type, ...$arguments)->useAsset($type, $name);
  5. }
  6. return $this->registerAsset($type, ...$arguments);
  7. }
  1. //$templatePath = 'media/templates/site/esmaka_social';
  2. // Color Theme
  3. $paramsColorName = $this->params->get('colorName', 'colors_standard');
  4. $assetColorName = 'theme.' . $paramsColorName;
  5. $wa->registerAndUseStyle($assetColorName, 'global/' . $paramsColorName . '.css');
  6. // Use a font scheme if set in the template style options
  7. $paramsFontScheme = $this->params->get('useFontScheme', false);
  8. $fontStyles = '';
require('/home/esmaka/public_html/templates/esmaka_social/error.php') in /home/esmaka/public_html/libraries/src/Document/HtmlDocument.php (line 731)
  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_clean();
  7. }
  8. return $contents;
  9. }
HtmlDocument->_loadTemplate() in /home/esmaka/public_html/libraries/src/Document/HtmlDocument.php (line 785)
  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() in /home/esmaka/public_html/libraries/src/Document/HtmlDocument.php (line 622)
  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. ob_end_clean();
  2. }
  3. $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
  4. return $this->getDocument()->render(
  5. false,
  6. [
  7. 'template' => $template->template,
  8. 'directory' => JPATH_THEMES,
  9. 'debug' => JDEBUG,
  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. }
  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() in /home/esmaka/public_html/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/esmaka/public_html/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/esmaka/public_html/includes/app.php') in /home/esmaka/public_html/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

Failed opening required '/home/esmaka/public_html/plugins/system/esmaka_hitsformatter/format.php' (include_path='.:/usr/share/php')

  1. * TRUCO: Forzamos la carga de la clase aquí mismo.
  2. * Esto se ejecuta tan pronto como Joomla lee este archivo,
  3. * mucho antes de que el componente EasySocial empiece a renderizar.
  4. * Esto garantiza que la clase 'EsmakaHitsFormatter' exista globalmente.
  5. */
  6. require_once __DIR__ . '/format.php';
  7. /**
  8. * La clase del plugin es necesaria para que Joomla lo reconozca como válido,
  9. * pero no necesita hacer nada. La magia ya ocurrió con el require_once de arriba.
  10. */
  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
CMSApplication->loadPluginFromFilesystem() in /home/esmaka/public_html/libraries/src/Extension/ExtensionManagerTrait.php (line 160)
  1. case ModuleInterface::class:
  2. $container->set($type, new Module(new ModuleDispatcherFactory(''), new HelperFactory('')));
  3. break;
  4. case PluginInterface::class:
  5. [$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($plugin, 4) : $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. *
CMSApplication->bootPlugin() in /home/esmaka/public_html/libraries/src/Plugin/PluginHelper.php (line 232)
  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. foreach ($plugins as $value) {
  4. if ($value->type === $type && ($plugin === null || $value->name === $plugin)) {
  5. static::import($value, $autocreate, $dispatcher);
  6. $results = true;
  7. }
  8. }
  9. // Bail out early if we're not using default args
  1. // Load the behaviour plugins
  2. PluginHelper::importPlugin('behaviour', null, true, $this->getDispatcher());
  3. // Load the system plugins
  4. PluginHelper::importPlugin('system', null, true, $this->getDispatcher());
  5. // Trigger the onBeforeExecute event
  6. $this->dispatchEvent(
  7. 'onBeforeExecute',
  8. new BeforeExecuteEvent('onBeforeExecute', ['subject' => $this, 'container' => $this->getContainer()])
CMSApplication->execute() in /home/esmaka/public_html/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/esmaka/public_html/includes/app.php') in /home/esmaka/public_html/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] Error
Error:
Call to a member function getTag() on null

  at /home/esmaka/public_html/libraries/src/WebAsset/AssetItem/LangActiveAssetItem.php:48
  at Joomla\CMS\WebAsset\AssetItem\LangActiveAssetItem->__construct()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php:248)
  at Joomla\CMS\WebAsset\WebAssetRegistry->createAsset()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php:420)
  at Joomla\CMS\WebAsset\WebAssetRegistry->parseRegistryFile()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php:352)
  at Joomla\CMS\WebAsset\WebAssetRegistry->parseRegistryFiles()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetRegistry.php:160)
  at Joomla\CMS\WebAsset\WebAssetRegistry->add()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetManager.php:525)
  at Joomla\CMS\WebAsset\WebAssetManager->registerAsset()
     (/home/esmaka/public_html/libraries/src/WebAsset/WebAssetManager.php:245)
  at Joomla\CMS\WebAsset\WebAssetManager->__call()
     (/home/esmaka/public_html/templates/esmaka_social/error.php:40)
  at require('/home/esmaka/public_html/templates/esmaka_social/error.php')
     (/home/esmaka/public_html/libraries/src/Document/HtmlDocument.php:731)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/home/esmaka/public_html/libraries/src/Document/HtmlDocument.php:785)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/home/esmaka/public_html/libraries/src/Document/HtmlDocument.php:622)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/home/esmaka/public_html/libraries/src/Document/HtmlDocument.php:640)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/esmaka/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/esmaka/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/esmaka/public_html/libraries/src/Exception/ExceptionHandler.php:139)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/esmaka/public_html/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/esmaka/public_html/libraries/src/Application/CMSApplication.php:350)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/esmaka/public_html/includes/app.php:58)
  at require_once('/home/esmaka/public_html/includes/app.php')
     (/home/esmaka/public_html/index.php:51)                
[1/2] Error
Error:
Failed opening required '/home/esmaka/public_html/plugins/system/esmaka_hitsformatter/format.php' (include_path='.:/usr/share/php')

  at /home/esmaka/public_html/plugins/system/esmaka_hitsformatter/esmaka_hitsformatter.php:18
  at require_once()
     (/home/esmaka/public_html/libraries/src/Extension/ExtensionManagerTrait.php:217)
  at Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem()
     (/home/esmaka/public_html/libraries/src/Extension/ExtensionManagerTrait.php:160)
  at Joomla\CMS\Application\CMSApplication->loadExtension()
     (/home/esmaka/public_html/libraries/src/Extension/ExtensionManagerTrait.php:99)
  at Joomla\CMS\Application\CMSApplication->bootPlugin()
     (/home/esmaka/public_html/libraries/src/Plugin/PluginHelper.php:232)
  at Joomla\CMS\Plugin\PluginHelper::import()
     (/home/esmaka/public_html/libraries/src/Plugin/PluginHelper.php:192)
  at Joomla\CMS\Plugin\PluginHelper::importPlugin()
     (/home/esmaka/public_html/libraries/src/Application/CMSApplication.php:308)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/esmaka/public_html/includes/app.php:58)
  at require_once('/home/esmaka/public_html/includes/app.php')
     (/home/esmaka/public_html/index.php:51)