Project

General

Profile

Bug #95969 » stacktrace.txt

Robert Griebel, 2021-11-12 15:12

 

Whoops, looks like something went wrong.
(1/1) Symfony\Component\DependencyInjection\Exception\InvalidArgumentException

Expected to find class "VendorName\ExtensionName\DataProcessing\CsvFileProcessor" in file "/var/www/path/public/typo3conf/ext/chronotours_theme/Classes/DataProcessing/CsvFileProcessor.php" while importing services from resource "../Classes/*", but it was not found! Check the namespace prefix used with the resource.
in /var/www/path/typo3_src-10.4.21/vendor/symfony/dependency-injection/Loader/FileLoader.php line 206

continue;
}
// check to make sure the expected class exists
if (!$r) {
throw new InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.', $class, $path, $pattern));
}

if ($r->isInstantiable() || $r->isInterface()) {
$classes[$class] = null;

at Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses()
in /var/www/path/typo3_src-10.4.21/vendor/symfony/dependency-injection/Loader/FileLoader.php line 99

if (!preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+\\\\)++$/', $namespace)) {
throw new InvalidArgumentException(sprintf('Namespace is not a valid PSR-4 prefix: "%s".', $namespace));
}

$classes = $this->findClasses($namespace, $resource, (array) $exclude);
// prepare for deep cloning
$serializedPrototype = serialize($prototype);

foreach ($classes as $class => $errorMessage) {

at Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses()
in /var/www/path/typo3_src-10.4.21/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php line 611

throw new InvalidArgumentException(sprintf('A "resource" attribute must be of type string for service "%s" in "%s". Check your YAML syntax.', $id, $file));
}
$exclude = isset($service['exclude']) ? $service['exclude'] : null;
$namespace = isset($service['namespace']) ? $service['namespace'] : $id;
$this->registerClasses($definition, $namespace, $service['resource'], $exclude);
} else {
$this->setDefinition($id, $definition);
}
}

at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition()
in /var/www/path/typo3_src-10.4.21/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php line 233


$this->isLoadingInstanceof = false;
$defaults = $this->parseDefaults($content, $file);
foreach ($content['services'] as $id => $service) {
$this->parseDefinition($id, $service, $file, $defaults);
}
}

/**

at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions()
in /var/www/path/typo3_src-10.4.21/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php line 153

$this->anonymousServicesCount = 0;
$this->anonymousServicesSuffix = '~'.ContainerBuilder::hash($path);
$this->setCurrentDir(\dirname($path));
try {
$this->parseDefinitions($content, $path);
} finally {
$this->instanceof = [];
$this->registerAliasesForSinglyImplementedInterfaces();
}

at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load()
in /var/www/path/typo3_src-10.4.21/typo3/sysext/core/Classes/DependencyInjection/ContainerBuilder.php line 119

$phpFileLoader->load('Services.php');
}
if (file_exists($diConfigDir . 'Services.yaml')) {
$yamlFileLoader = new YamlFileLoader($containerBuilder, new FileLocator($diConfigDir));
$yamlFileLoader->load('Services.yaml');
}
}
// Store defaults entries in the DIC container
// We need to use a workaround using aliases for synthetic services

at TYPO3\CMS\Core\DependencyInjection\ContainerBuilder->buildContainer()
in /var/www/path/typo3_src-10.4.21/typo3/sysext/core/Classes/DependencyInjection/ContainerBuilder.php line 84

$containerClassName = $cacheIdentifier;

$hasCache = $cache->requireOnce($cacheIdentifier) !== false;
if (!$hasCache) {
$containerBuilder = $this->buildContainer($packageManager, $serviceProviderRegistry);
$this->dumpContainer($containerBuilder, $cache, $cacheIdentifier);
$cache->requireOnce($cacheIdentifier);
}
$container = new $containerClassName();

at TYPO3\CMS\Core\DependencyInjection\ContainerBuilder->createDependencyInjectionContainer()
in /var/www/path/typo3_src-10.4.21/typo3/sysext/core/Classes/Core/Bootstrap.php line 141

// @internal
'boot.state' => $bootState,
]);

$container = $builder->createDependencyInjectionContainer($packageManager, $dependencyInjectionContainerCache, $failsafe);

// Push the container to GeneralUtility as we want to make sure its
// makeInstance() method creates classes using the container from now on.
GeneralUtility::setContainer($container);

at TYPO3\CMS\Core\Core\Bootstrap::init()
in /var/www/path/typo3_src-10.4.21/typo3/index.php line 25

// Set up the application for the backend
call_user_func(function () {
$classLoader = require dirname(__DIR__).'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run();
});

at {closure}()
in /var/www/path/typo3_src-10.4.21/typo3/index.php line 26

call_user_func(function () {
$classLoader = require dirname(__DIR__).'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run();
});

(1-1/2)