情况:这是我安装tikiwiki 24后的屏幕信息。
致命错误:Symfony\Component\DependencyInjection\Loader\XmlFileLoader::load($resource,?string$type=NULL(的声明必须与第46行/var/www/contiki/vendor/Symfony/dependent-injection/Loader/XmlFileLoader.php中的Symfony/Component\Config\LoaderInterface::load($resource,$type=NULL(兼容
那么,有人知道这里发生了什么吗?我是作曲家的新手,解决了许多兼容性问题,但这超出了我的范围。
我不明白他们为什么不相容。
这些是文件的(一部分(:
My/var/www/contiki/vendor_bunded/vvendor/symfony/config/Loader/LoaderInterface.php
interface LoaderInterface
{
/**
* Loads a resource.
*
* @param mixed $resource The resource
* @param string|null $type The resource type or null if unknown
*
* @throws Exception If something went wrong
*/
public function load($resource, $type = null);
/**
* Returns whether this class supports the given resource.
*
* @param mixed $resource A resource
* @param string|null $type The resource type or null if unknown
*
* @return bool True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null);
/**
* Gets the loader resolver.
*
* @return LoaderResolverInterface A LoaderResolverInterface instance
*/
public function getResolver();
/**
* Sets the loader resolver.
*/
public function setResolver(LoaderResolverInterface $resolver);
}
/var/www/contiki/vendor_bundled/vvendor/symfony/dependent injection/Loader/XmlFileLoader.php文件的第一部分
namespace SymfonyComponentDependencyInjectionLoader;
use SymfonyComponentConfigUtilXmlUtils;
use SymfonyComponentDependencyInjectionAlias;
use SymfonyComponentDependencyInjectionArgumentBoundArgument;
use SymfonyComponentDependencyInjectionArgumentIteratorArgument;
use SymfonyComponentDependencyInjectionArgumentTaggedIteratorArgument;
use SymfonyComponentDependencyInjectionChildDefinition;
use SymfonyComponentDependencyInjectionContainerBuilder;
use SymfonyComponentDependencyInjectionContainerInterface;
use SymfonyComponentDependencyInjectionDefinition;
use SymfonyComponentDependencyInjectionExceptionInvalidArgumentException;
use SymfonyComponentDependencyInjectionExceptionRuntimeException;
use SymfonyComponentDependencyInjectionReference;
use SymfonyComponentExpressionLanguageExpression;
/**
* XmlFileLoader loads XML files service definitions.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class XmlFileLoader extends FileLoader
{
const NS = 'http://symfony.com/schema/dic/services';
/**
* {@inheritdoc}
*/
public function load($resource, $type = null)
{
$path = $this->locator->locate($resource);
$xml = $this->parseFileToDOM($path);
$this->container->fileExists($path); <-- This is rule 46
$defaults = $this->getServiceDefaults($xml, $path);
// anonymous services
$this->processAnonymousServices($xml, $path, $defaults);
// imports
$this->parseImports($xml, $path);
// parameters
$this->parseParameters($xml, $path);
// extensions
$this->loadFromExtensions($xml);
// services
try {
$this->parseDefinitions($xml, $path, $defaults);
} finally {
$this->instanceof = [];
}
}```
听起来这里有点混乱,Tiki 24还没有发布,但很快就会分支,所以如果你现在想要一个稳定安全的Tiki,最好使用一个稳定发布的分支,即23.x?此外,我们仍在使用Smarty 3.x,并计划在24发布后升级到4.x(和PHP 8+(,这是我们的下一个LTS版本,所以不确定这是从哪里来的。。。你运行sh setup.sh
了吗?
正如Nico上面所说,这可能比这里更适合Tiki,所以最好的事情是来我们新的Gitter房间与社区聊天,在这里?
欢迎来到Tiki!:(