跳转到主要内容
卢双福 提交于 6 March 2015

我试过安装 drupal-8.0.0-beta(1-7)  只要以访问安装页面就报错。后来看到网站有大侠提供 drupal-8.0-alpha3 版本下载来试试,结果可以进入安装界面并操作到数据库生成的 时候,就报同样的错误。跪求大侠解决!错误代码如下:

If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild

Additional uncaught exception thrown while handling exception.

Original

Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The class "Drupal\Core\Entity\Annotation\EntityType" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "Drupal\Core\Entity\Annotation\EntityType". If it is indeed no annotation, then you need to add @IgnoreAnnotation("EntityType") to the _class_ doc comment of class Drupal\system\Entity\Action. in Doctrine\Common\Annotations\AnnotationException::semanticalError() (line 52 of /mnt/wwwroot/drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php).

Additional

Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The class "Drupal\Core\Entity\Annotation\EntityType" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "Drupal\Core\Entity\Annotation\EntityType". If it is indeed no annotation, then you need to add @IgnoreAnnotation("EntityType") to the _class_ doc comment of class Drupal\system\Entity\Action. in Doctrine\Common\Annotations\AnnotationException::semanticalError() (line 52 of /mnt/wwwroot/drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php).

Drupal 版本