Drupal那些不得不说的事

// 最新版 下载 及 汉化包
// 安装帮助教程  一般可以自己搞定

http://www.dplor.com/archives/527

// 模块 CCK、Views、Entity API、Ctools
// 语言包项目组 各国
// 模块使用量 及一些模块列表
drupal001 问答社区
Drupal中文网
主题
英文问答社区
Drupal 8 主题开发指南中文版
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
全新安装8.2.2  记录几点小错误
/admin/reports/status   //在这个状态报告中的错误都要去解决一下
查看phpinfo
/admin/reports/status/php
出错在于安装了opcache 打开配置页面出错 如首图
其他页面暂时正常
于是开启错误日志 存文件 具体修改php.ini
加入一行 并给写入权限
error_log=/usr/local/php/var/log/php-err.log
查看日志
跟这个很想
于是opcache搜索配置说明 这里有
我当前的配置
[opcache]
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=64
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=100000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.revalidate_freq=60
opcache.save_comments=0
opcache.fast_shutdown=1
opcache.consistency_checks=0
;opcache.optimization_level=0
~~~~~~~~~~我的出错页面:~~~
/admin/reports/status
出错日志代码 虽然多但关键问题只有一个  贴一下
[07-Nov-2016 13:19:19 Asia/Shanghai] Uncaught PHP Exception Doctrine\Common\Annotations\AnnotationException: "[Semantical Error] The class "Drupal\Core\Entity\Annotation\ConfigEntityType" 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\ConfigEntityType". If it is indeed no annotation, then you need to add @IgnoreAnnotation("ConfigEntityType") to the _class_ doc comment of class Drupal\block\Entity\Block." at /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 54
[07-Nov-2016 13:19:20 Asia/Shanghai] Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The class "Drupal\Core\Entity\Annotation\ConfigEntityType" 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\ConfigEntityType". If it is indeed no annotation, then you need to add @IgnoreAnnotation("ConfigEntityType") to the _class_ doc comment of class Drupal\block\Entity\Block. in /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php on line 54 #0 /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(727): Doctrine\Common\Annotations\AnnotationException::semanticalError('The class "Drup...')
#1 /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(641): Doctrine\Common\Annotations\DocParser->Annotation()
#2 /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(334): Doctrine\Common\Annotations\DocParser->Annotations()
#3 /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php(67): Doctrine\Common\Annotations\DocParser->parse('/**\n * Defines ...', 'class Drupal\\bl...')
#4 /home/web/site/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php(91): Doctrine\Common\Annotations\SimpleAnnotationReader->getClassAnnotations(Object(Doctrine\Common\Reflection\StaticReflectionClass))
#5 /home/web/site/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php(144): Doctrine\Common\Annotations\SimpleAnnotationReader->getClassAnnotation(Object(Doctrine\Common\Reflection\StaticReflectionClass), 'Drupal\\Core\\Ent...')
#6 /home/web/site/core/lib/Drupal/Core/Entity/EntityTypeManager.php(106): Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery->getDefinitions()
#7 /home/web/site/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\Core\Entity\EntityTypeManager->findDefinitions()
#8 /home/web/site/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#9 /home/web/site/core/lib/Drupal/Core/Entity/EntityTypeManager.php(126): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('user', false)
#10 /home/web/site/core/lib/Drupal/Core/Entity/EntityTypeManager.php(233): Drupal\Core\Entity\EntityTypeManager->getDefinition('user')
#11 /home/web/site/core/lib/Drupal/Core/Entity/EntityTypeManager.php(169): Drupal\Core\Entity\EntityTypeManager->getHandler('user', 'storage')
#12 /home/web/site/core/lib/Drupal/Core/Entity/EntityManager.php(64): Drupal\Core\Entity\EntityTypeManager->getStorage('user')
#13 /home/web/site/core/modules/user/src/EventSubscriber/UserRequestSubscriber.php(54): Drupal\Core\Entity\EntityManager->getStorage('user')
#14 /home/web/site/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\user\EventSubscriber\UserRequestSubscriber->onKernelTerminate(Object(Symfony\Component\HttpKernel\Event\PostResponseEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#15 /home/web/site/vendor/symfony/http-kernel/HttpKernel.php(79): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.terminat...', Object(Symfony\Component\HttpKernel\Event\PostResponseEvent))
#16 /home/web/site/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Component\HttpFoundation\Response))
#17 /home/web/site/core/lib/Drupal/Core/DrupalKernel.php(630): Stack\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Component\HttpFoundation\Response))
#18 /home/web/site/index.php(22): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Component\HttpFoundation\Response))
#19 {main}
现在已经恢复正常 
我的参数是
[opcache]
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=64
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.revalidate_freq=60
opcache.save_comments=1
opcache.load_comments=1
opcache.enable_file_override=1
opcache.fast_shutdown=1
opcache.consistency_checks=0
;opcache.optimization_level=0
错误已经消失
apc.rfc1867还是没有开启成功
安装的扩展   开启配置文件无效  是否因为没有本机编译 如果有知情的告之  
有人说可能是一键环境包 php7 下不正常 可以降低版本
参考过:
https://github.com/ryantenney/php7/blob/master/ext/apc/INSTALL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
如何重装:
删除 /sites/default/settings.php 重新访问
~~~~~~~~~~~~关于安装后奇慢无比的一些解释:~~~~~~~
~~~~~~~~~~~~~为什么还是在纠结?~~~~~~~~~~~~~~~~~

非凡网 博客

我只是帮你筛选价值。

你也许喜欢

发表评论