我一直在争取这一点,并不能弄明白,也许别人有或可能有一个更深层次的问题在这里与苗条,PHP,Apache等工作后很好小时,我的苗条安装将开始在所有路线给这个:间歇性的PHP抽象类错误
Fatal error: Class Slim\Collection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (IteratorAggregate::getIterator) in F:\Projects\example\server\vendor\slim\slim\Slim\Collection.php on line 21
疯狂地,如果我重新启动Apache,这个问题消失。 (对于几个小时呢。)
我发现这个地方有人在两年前也有类似的问题,并帮助人吵着他们没有实际帮助都:https://community.apachefriends.org/viewtopic.php?p=250966&sid=96ef58aaeb7fe142a7dcdfd506a8683f
我试着做一个干净的擦拭并安装我的作曲家供应商目录。这不能解决它。我可以清楚地看到getIterator
在错误消息中的文件中按预期方式实现。
PHP版本7.0.12,Windows 7中,86 PHP构建
它在几个小时后再次发生,具有不同但类似的错误消息:
Fatal error: Class Pimple\Container contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ArrayAccess::sqlserver) in F:\Projects\example\server\vendor\pimple\pimple\src\Pimple\Container.php on line 34
这个问题有一个类似的问题, “解决”它通过重新启动PHP,但这显然不是一个实际的解决方案,并且我没有启用opcache: PHP 7, Symfony 3: Fatal error 1 abstract method and must therefore be declared abstract or implement the remaining methods
任何猜测?请记住:这条消息是在我没有写入的文件中,并且在Apache重启时消失。是否有PHP 7的缓存会导致这种情况?
编辑17年3月10日:
是的,我已经打开搭配修身票。我也看到它在一个非瘦身文件(疙瘩),所以我不认为这是一个苗条的问题。 https://github.com/slimphp/Slim/issues/2160
正如我所说,我的opcache已关闭。我已经证实在php.ini文件和phpinfo()中都是如此。
我试过更新到PHP 7.1,并且每天都会触发一次,迫使apache重新启动。 –
这与我的问题类似:https://phabricator.wikimedia.org/T152502 –
我没有苗条的经验,所以这是问题文件? https://github.com/slimphp/Slim-Http/blob/master/src/Collection.php如果不是,那么你可以发布代码吗?你有没有尝试联系框架的维护者? – MonkeyZeus