$parsed_mode .= ($mode[$i] & 01) ? 'x' : '-'; } return $parsed_mode; } /** * Checks for snooping outside of the file system root. * * @param string $path A file system path to check. * * @return string A cleaned version of the path or exit on error. * * @throws \Exception * @since 1.7.0 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::check() instead. */ public static function check($path) { if (strpos($path, '..') !== false) { // Don't translate throw new \Exception( sprintf( '%s() - Use of relative paths not permitted', __METHOD__ ) ); } $path = self::clean($path); if ((JPATH_ROOT != '') && strpos($path, self::clean(JPATH_ROOT)) !== 0) { throw new \Exception( sprintf( '%1$s() - Snooping out of bounds @ %2$s', __METHOD__, self::removeRoot($path) ) ); } return $path; } /** * Function to strip additional / or \ in a path name. * * @param string $path The path to clean. * @param string $ds Directory separator (optional). * * @return string The cleaned path. * * @throws \UnexpectedValueException * @since 1.7.0 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::clean() instead. */ public static function clean($path, $ds = DIRECTORY_SEPARATOR) { if (!\is_string($path) && !empty($path)) { throw new \UnexpectedValueException( sprintf( '%s() - $path is not a string', __METHOD__ ) ); } if ($path === null) { @trigger_error( sprintf( 'Path can not be null, in 6.0 it will throw an exception', __METHOD__ ), E_USER_DEPRECATED ); $path = ''; } $path = trim($path); if (empty($path)) { $path = JPATH_ROOT; } elseif (($ds === '\\') && substr($path, 0, 2) === '\\\\') { // Remove double slashes and backslashes and convert all slashes and backslashes to DIRECTORY_SEPARATOR // If dealing with a UNC path don't forget to prepend the path with a backslash. $path = "\\" . preg_replace('#[/\\\\]+#', $ds, $path); } else { $path = preg_replace('#[/\\\\]+#', $ds, $path); } return $path; } /** * Method to determine if script owns the path. * * @param string $path Path to check ownership. * * @return boolean True if the php script owns the path passed. * * @since 1.7.0 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::isOwner() instead. */ public static function isOwner($path) { $tmp = md5(Crypt::genRandomBytes()); $ssp = ini_get('session.save_path'); $jtp = JPATH_SITE . '/tmp'; // Try to find a writable directory $dir = false; foreach ([$jtp, $ssp, '/tmp'] as $currentDir) { if (is_writable($currentDir)) { $dir = $currentDir; break; } } if ($dir) { $test = $dir . '/' . $tmp; // Create the test file $blank = ''; File::write($test, $blank, false); // Test ownership $return = (fileowner($test) == fileowner($path)); // Delete the test file File::delete($test); return $return; } return false; } /** * Searches the directory paths for a given file. * * @param mixed $paths A path string or array of path strings to search in * @param string $file The file name to look for. * * @return mixed The full path and file name for the target file, or boolean false if the file is not found in any of the paths. * * @since 1.7.0 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::find() instead. */ public static function find($paths, $file) { // Force to array if (!\is_array($paths) && !($paths instanceof \Iterator)) { settype($paths, 'array'); } // Start looping through the path set foreach ($paths as $path) { // Get the path to the file $fullname = $path . '/' . $file; // Is the path based on a stream? if (strpos($path, '://') === false) { // Not a stream, so do a realpath() to avoid directory // traversal attempts on the local file system. // Needed for substr() later $path = realpath($path); $fullname = realpath($fullname); } /* * The substr() check added to make sure that the realpath() * results in a directory registered so that * non-registered directories are not accessible via directory * traversal attempts. */ if (file_exists($fullname) && substr($fullname, 0, \strlen($path)) === $path) { return $fullname; } } // Could not find the file in the set of paths return false; } /** * Resolves /./, /../ and multiple / in a string and returns the resulting absolute path, inspired by Flysystem * Removes trailing slashes * * @param string $path A path to resolve * * @return string The resolved path * * @since 3.9.25 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::resolve() instead. */ public static function resolve($path) { $path = static::clean($path); // Save start character for absolute path $startCharacter = ($path[0] === DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : ''; $parts = []; foreach (explode(DIRECTORY_SEPARATOR, $path) as $part) { switch ($part) { case '': case '.': break; case '..': if (empty($parts)) { throw new \Exception('Path is outside of the defined root'); } array_pop($parts); break; default: $parts[] = $part; break; } } return $startCharacter . implode(DIRECTORY_SEPARATOR, $parts); } /** * Remove all references to root directory path and the system tmp path from a message * * @param string $message The message to be cleaned * @param string $rootDirectory Optional root directory, defaults to JPATH_ROOT * * @return string * * @since 3.10.7 * @deprecated 4.4 will be removed in 6.0 * Use Joomla\Filesystem\Path::removeRoot() instead. */ public static function removeRoot($message, $rootDirectory = null) { if (empty($rootDirectory)) { $rootDirectory = JPATH_ROOT; } $makePattern = static function ($dir) { return '~' . str_replace('~', '\\~', preg_replace('~[/\\\\]+~', '[/\\\\\\\\]+', $dir)) . '~'; }; $replacements = [ $makePattern(static::clean($rootDirectory)) => '[ROOT]', $makePattern(sys_get_temp_dir()) => '[TMP]', ]; return preg_replace(array_keys($replacements), array_values($replacements), $message); } } Attempted to load class "Path" from namespace "Joomla\CMS\Filesystem". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

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

Exception

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1.      * @change  3.10.7  If the message contains a full path, the root path (JPATH_ROOT) is removed from it
  2.      *          to avoid any full path disclosure. Before 3.10.7, the path was propagated as provided.
  3.      */
  4.     public function __construct($message$priority Log::INFO$category ''$date null, array $context = [])
  5.     {
  6.         $this->message Path::removeRoot((string) $message);
  7.         // Sanitize the priority.
  8.         if (!\in_array($priority$this->prioritiestrue)) {
  9.             $priority Log::INFO;
  10.         }
LogEntry->__construct('Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead. - /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php - Line 25', 16, 'deprecated', null, array()) in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Log/Log.php (line 173)
  1.             static::setInstance(new static());
  2.         }
  3.         // If the entry object isn't a LogEntry object let's make one.
  4.         if (!($entry instanceof LogEntry)) {
  5.             $entry = new LogEntry((string) $entry$priority$category$date$context);
  6.         }
  7.         static::$instance->addLogEntry($entry);
  8.     }
Log::add('Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead. - /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php - Line 25', 16, 'deprecated') in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Exception/ExceptionHandler.php (line 45)
  1.     public static function handleUserDeprecatedErrors(int $errorNumberstring $errorMessagestring $errorFileint $errorLine): bool
  2.     {
  3.         // We only want to handle user deprecation messages, these will be triggered in code
  4.         if ($errorNumber === E_USER_DEPRECATED) {
  5.             try {
  6.                 Log::add("$errorMessage - $errorFile - Line $errorLine"Log::WARNING'deprecated');
  7.             } catch (\Exception $e) {
  8.                 // Silence
  9.             }
  10.             // If debug mode is enabled, we want to let PHP continue to handle the error; otherwise, we can bail early
ExceptionHandler::handleUserDeprecatedErrors(16384, 'Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead.', '/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php', 25)
  1.      *
  2.      * @author Nicolas Grekas <p@tchwork.com>
  3.      */
  4.     function trigger_deprecation(string $packagestring $versionstring $message, ...$args): void
  5.     {
  6.         @trigger_error(($package || $version "Since $package $version: " '').($args vsprintf($message$args) : $message), \E_USER_DEPRECATED);
  7.     }
  8. }
  1.      * @throws  \RuntimeException
  2.      * @deprecated  3.0  Use DatabaseFactory::getDriver() instead
  3.      */
  4.     public static function getInstance(array $options = [])
  5.     {
  6.         trigger_deprecation(
  7.             'joomla/database',
  8.             '2.0.0',
  9.             '%s() is deprecated and will be removed in 3.0, use %s::getDriver() instead.',
  10.             __METHOD__,
  11.             DatabaseFactory::class
DatabaseDriver::getInstance(array('driver' => 'mysqli', 'host' => 'mysql18.1blu.de', 'user' => 's66933_2126319', 'password' => '1H2a3m4m5e6#', 'database' => 'db66933x2126319', 'prefix' => 'ol14_', 'utf8mb4' => true, 'monitor' => object(DebugMonitor))) in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Database.php (line 123)
  1.                     if (JDEBUG) {
  2.                         $options['monitor'] = new \Joomla\Database\Monitor\DebugMonitor();
  3.                     }
  4.                     try {
  5.                         $db DatabaseDriver::getInstance($options);
  6.                     } catch (\RuntimeException $e) {
  7.                         if (!headers_sent()) {
  8.                             header('HTTP/1.1 500 Internal Server Error');
  9.                         }
in /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php -> Joomla\CMS\Service\Provider\{closure} (line 176)
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  5.                 $this->instance $callable($this->container);
  6.             }
  7.             return $this->instance;
  8.         }
  1.             }
  2.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  3.         }
  4.         return $this->resources[$key]->getInstance();
  5.     }
  6.     /**
  7.      * Check if specified resource exists.
  8.      *
Container->get('Joomla\\Database\\DatabaseInterface') in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Session/SessionFactory.php (line 63)
  1.                 }
  2.                 return new Handler\ApcuHandler();
  3.             case 'database':
  4.                 return new Handler\DatabaseHandler($this->getContainer()->get(DatabaseInterface::class));
  5.             case 'filesystem':
  6.             case 'none':
  7.                 // Try to use a custom configured path, fall back to the path in the PHP runtime configuration
  8.                 $path $config->get('session_filesystem_path'ini_get('session.save_path'));
SessionFactory->createSessionHandler(array('force_ssl' => false, 'name' => '580edd1b83373cbdfd58c9f8a7a35ca1', 'expire' => 900)) in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Session.php (line 167)
  1.                 if ($config->get('force_ssl') == 2) {
  2.                     $options['force_ssl'] = true;
  3.                 }
  4.                 $handler $container->get('session.factory')->createSessionHandler($options);
  5.                 if (!$container->has('session.handler')) {
  6.                     $this->registerSessionHandlerAsService($container$handler);
  7.                 }
in /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php -> Joomla\CMS\Service\Provider\{closure} (line 176)
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  5.                 $this->instance $callable($this->container);
  6.             }
  7.             return $this->instance;
  8.         }
  1.             }
  2.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  3.         }
  4.         return $this->resources[$key]->getInstance();
  5.     }
  6.     /**
  7.      * Check if specified resource exists.
  8.      *
Container->get('Joomla\\Session\\SessionInterface') in /hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Application.php (line 109)
  1.                         Factory::$application $app;
  2.                     }
  3.                     $app->setDispatcher($container->get(DispatcherInterface::class));
  4.                     $app->setLogger($container->get(LoggerInterface::class));
  5.                     $app->setSession($container->get(SessionInterface::class));
  6.                     $app->setUserFactory($container->get(UserFactoryInterface::class));
  7.                     $app->setCacheControllerFactory($container->get(CacheControllerFactoryInterface::class));
  8.                     $app->setMenuFactory($container->get(MenuFactoryInterface::class));
  9.                     return $app;
in /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php -> Joomla\CMS\Service\Provider\{closure} (line 176)
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  5.                 $this->instance $callable($this->container);
  6.             }
  7.             return $this->instance;
  8.         }
  1.             }
  2.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  3.         }
  4.         return $this->resources[$key]->getInstance();
  5.     }
  6.     /**
  7.      * Check if specified resource exists.
  8.      *
Container->get('Joomla\\CMS\\Application\\SiteApplication') in /hp/ax/aa/ed/www/ollsen2014/includes/app.php (line 55)
  1.     ->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
  2.     ->alias(\Joomla\Session\Session::class, 'session.web.site')
  3.     ->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
  4. // Instantiate the application.
  5. $app $container->get(\Joomla\CMS\Application\SiteApplication::class);
  6. // Set the application as global app
  7. \Joomla\CMS\Factory::$application $app;
  8. // Execute the application.
require_once('/hp/ax/aa/ed/www/ollsen2014/includes/app.php') in /hp/ax/aa/ed/www/ollsen2014/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Trace

ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "Path" from namespace "Joomla\CMS\Filesystem".
Did you forget a "use" statement for another namespace?

  at /hp/ax/aa/ed/www/ollsen2014/libraries/src/Log/LogEntry.php:110
  at Joomla\CMS\Log\LogEntry->__construct('Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead. - /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php - Line 25', 16, 'deprecated', null, array())
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Log/Log.php:173)
  at Joomla\CMS\Log\Log::add('Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead. - /hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php - Line 25', 16, 'deprecated')
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Exception/ExceptionHandler.php:45)
  at Joomla\CMS\Exception\ExceptionHandler::handleUserDeprecatedErrors(16384, 'Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead.', '/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php', 25)
  at trigger_error('Since joomla/database 2.0.0: Joomla\\Database\\DatabaseDriver::getInstance() is deprecated and will be removed in 3.0, use Joomla\\Database\\DatabaseFactory::getDriver() instead.', 16384)
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/symfony/deprecation-contracts/function.php:25)
  at trigger_deprecation('joomla/database', '2.0.0', '%s() is deprecated and will be removed in 3.0, use %s::getDriver() instead.', 'Joomla\\Database\\DatabaseDriver::getInstance', 'Joomla\\Database\\DatabaseFactory')
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/database/src/DatabaseDriver.php:294)
  at Joomla\Database\DatabaseDriver::getInstance(array('driver' => 'mysqli', 'host' => 'mysql18.1blu.de', 'user' => 's66933_2126319', 'password' => '1H2a3m4m5e6#', 'database' => 'db66933x2126319', 'prefix' => 'ol14_', 'utf8mb4' => true, 'monitor' => object(DebugMonitor)))
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Database.php:123)
  at Joomla\CMS\Service\Provider\Database->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get('Joomla\\Database\\DatabaseInterface')
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Session/SessionFactory.php:63)
  at Joomla\CMS\Session\SessionFactory->createSessionHandler(array('force_ssl' => false, 'name' => '580edd1b83373cbdfd58c9f8a7a35ca1', 'expire' => 900))
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Session.php:167)
  at Joomla\CMS\Service\Provider\Session->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get('Joomla\\Session\\SessionInterface')
     (/hp/ax/aa/ed/www/ollsen2014/libraries/src/Service/Provider/Application.php:109)
  at Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/hp/ax/aa/ed/www/ollsen2014/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get('Joomla\\CMS\\Application\\SiteApplication')
     (/hp/ax/aa/ed/www/ollsen2014/includes/app.php:55)
  at require_once('/hp/ax/aa/ed/www/ollsen2014/includes/app.php')
     (/hp/ax/aa/ed/www/ollsen2014/index.php:32)