デバッグモード画面
Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Declaration of DoctrineProxies_CG_\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, bool $doReindexImmediately = true)
コンソール画面
PHP Fatal error: Declaration of DoctrineProxies_CG_\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, bool $doReindexImmediately = true) in インストールディレクトリ/application/config/doctrine/proxies/_CG__ConcreteCoreEntitySiteSite.php on line 535
Whoops\Exception\ErrorException: Declaration of DoctrineProxies_CG\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, bool $doReindexImmediately = true) in file インストールディレクトリ/application/config/doctrine/proxies/__CG__ConcreteCoreEntitySiteSite.php on line 535
Stack trace:
Whoops\Exception\ErrorException->() インストールディレクトリ/application/config/doctrine/proxies/_CG__ConcreteCoreEntitySiteSite.php:535
| array(1) {
| [0]=>
| string(200) "Declaration of DoctrineProxies_CG\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, bool $doReindexImmediately = true)"
| }
Whoops\Run->handleError() インストールディレクトリ/concrete/vendor/filp/whoops/src/Whoops/Run.php:486
| array(4) {
| [0]=>
| int(64)
| [1]=>
| string(200) “Declaration of DoctrineProxies_CG_\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, bool $doReindexImmediately = true)”
| [2]=>
| string(122) “インストールディレクトリ/application/config/doctrine/proxies/__CG__ConcreteCoreEntitySiteSite.php”
| [3]=>
| int(535)
| }
Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Declaration of DoctrineProxies\__CG__\Concrete\Core\Entity\Site\Site::clearAttribute($ak) must be compatible with Concrete\Core\Entity\Site\Site::clearAttribute($ak, $doReindexImmediately = true)
I do not speak Japanese, but I had the same issue upgrading from 8.5.7 to 8.5.9. The way I solved it is… pretty odd…
Before the upgrade from 8.5.7 to 8.5.9, I visited 2 pages: The homepage, and a different page. Like the contact page or the about us page.
After the upgrade, I got the same error as you.
This is what fixed this for me:
concrete/bin/concrete5 orm:generate-proxies
Then I visited both the contact page, and the home page. I got 6 errors saying ““continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?” I’ve edited all “continue” to “continue 2” and the websites worked again.