yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.9k forks source link

Баг? #3944

Closed maxyc closed 10 years ago

maxyc commented 10 years ago

Стандартная авторизация. На локалке работает. На сервере выдает ошибку. конфа одинаковая. и там и там PHP 5.4.9-4ubuntu2.4 (сервер) PHP 5.5.3-1ubuntu2.3 (dev) я не знаю куда копать.

[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP Fatal error:  Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray) in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php on line 957
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP Stack trace:
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   1. {main}() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:0
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   2. yii\\base\\Application->run() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:17
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   3. yii\\web\\Application->handleRequest() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php:367
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   4. yii\\base\\Module->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php:82
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   5. yii\\base\\Controller->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php:429
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   6. yii\\base\\InlineAction->runWithParams() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php:147
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   7. call_user_func_array() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php:54
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   8. frontend\\controllers\\SiteController->actionLogin() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php:54
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP   9. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php:0
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP  10. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP  11. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] PHP  12. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:41:22 2014] [error] [client 83.219.134.223] exception 'yii\\base\\ErrorException' with message 'Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray)' in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php:957\nStack trace:\n#0 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#1 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#2 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php(0): yii\\BaseYii::autoload()\n#3 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php(54): frontend\\controllers\\SiteController->actionLogin()\n#4 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/InlineAction.php(54): ::call_user_func_array()\n#5 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php(147): yii\\base\\InlineAction->runWithParams()\n#6 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php(429): yii\\base\\Controller->runAction()\n#7 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php(82): yii\\base\\Module->runAction()\n#8 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php(367): yii\\web\\Application->handleRequest()\n#9 /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php(17): yii\\base\\Application->run()\n#10 {main}
samdark commented 10 years ago

Какая версия Yii 2? Как заливали код?

maxyc commented 10 years ago

только только залил через компосер. Данный вопрос у меня встает уже который раз. все self-update компосеров уже делал

cebe commented 10 years ago

could be that there are two versions of yii in the vendor folder. Try remove the vendor dir and do composer install again.

maxyc commented 10 years ago

thnx

maxyc commented 10 years ago

no!

[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP Fatal error:  Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray) in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php on line 957
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP Stack trace:
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   1. {main}() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:0
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   2. yii\\base\\Application->run() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:17
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   3. yii\\web\\Application->handleRequest() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php:367
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   4. yii\\base\\Module->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php:82
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   5. yii\\base\\Controller->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php:429
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   6. yii\\web\\Controller->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php:146
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   7. yii\\base\\Controller->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Controller.php:107
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   8. yii\\base\\Component->trigger() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php:254
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP   9. call_user_func() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php:546
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  10. yii\\base\\ActionFilter->beforeFilter() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php:546
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  11. yii\\filters\\AccessControl->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/ActionFilter.php:71
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  12. yii\\filters\\AccessRule->allows() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessControl.php:117
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  13. yii\\filters\\AccessRule->matchRole() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php:103
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  14. yii\\web\\User->getIsGuest() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php:148
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  15. yii\\web\\User->getIdentity() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:298
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  16. yii\\web\\User->renewAuthStatus() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:153
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  17. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:0
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  18. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  19. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  20. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  21. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  22. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  23. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] PHP  24. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 11:59:04 2014] [error] [client 83.219.134.223] exception 'yii\\base\\ErrorException' with message 'Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray)' in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php:957\nStack trace:\n#0 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#1 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#2 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#3 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#4 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#5 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#6 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(0): yii\\BaseYii::autoload()\n#7 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(153): yii\\web\\User->renewAuthStatus()\n#8 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(298): yii\\web\\User->getIdentity()\n#9 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php(148): yii\\web\\User->getIsGuest()\n#10 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php(103): yii\\filters\\AccessRule->matchRole()\n#11 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessControl.php(117): yii\\filters\\AccessRule->allows()\n#12 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/ActionFilter.php(71): yii\\filters\\AccessControl->beforeAction()\n#13 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php(546): yii\\base\\ActionFilter->beforeFilter()\n#14 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php(546): ::call_user_func()\n#15 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php(254): yii\\base\\Component->trigger()\n#16 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Controller.php(107): yii\\base\\Controller->beforeAction()\n#17 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php(146): yii\\web\\Controller->beforeAction()\n#18 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php(429): yii\\base\\Controller->runAction()\n#19 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php(82): yii\\base\\Module->runAction()\n#20 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php(367): yii\\web\\Application->handleRequest()\n#21 /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php(17): yii\\base\\Application->run()\n#22 {main}
maxyc commented 10 years ago
maxyc@Insmart:/var/www/sites/megajob.insmart.ru/advanced# rm -r vendor/
maxyc@Insmart:/var/www/sites/megajob.insmart.ru/advanced# php composer.phar self-update
You are already using composer version ac497feabaa0d247c441178b7b4aaa4c61b07399.
maxyc@Insmart:/var/www/sites/megajob.insmart.ru/advanced# php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Installing cebe/markdown (0.9.x-dev 6a3c373)
    Cloning 6a3c3737e9c1f4670f39a771f77b536126788ad2

  - Installing ezyang/htmlpurifier (v4.6.0)
    Loading from cache

  - Installing kartik-v/bootstrap-checkbox-x (dev-master 4d45c68)
    Cloning 4d45c68f7171281c3f284dfe46e5615dfc989bed

  - Installing yiisoft/yii2-composer (dev-master 22f31f5)
    Cloning 22f31f51ef33096bc846a9a19b4ba17a7cd6346e

  - Installing yiisoft/jquery (2.1.1)
    Loading from cache

  - Installing yiisoft/jquery-pjax (dev-master 520f8c1)
    Cloning 520f8c12b5a417e21d2cd0df499fa2a4e4e9a9d6

  - Installing yiisoft/yii2 (dev-master c9251d5)
    Cloning c9251d59bc2231ec71450cb68f3d067a515f8bee

  - Installing twbs/bootstrap (dev-master c0ba462)
    Cloning c0ba4622c1f55b6b1994efc9d24401a782644ba5

  - Installing yiisoft/yii2-bootstrap (dev-master 8ad8ee9)
    Cloning 8ad8ee97f8dddbf033d3634efba396941683afd8

  - Installing kartik-v/yii2-widgets (dev-master 21b8998)
    Cloning 21b89980e630e04854f112dd96df4e6b2a30484c

  - Installing kartik-v/yii2-field-range (dev-master a857dde)
    Cloning a857dde298315e92bf1ba81d8f32e2bbe7609936

  - Installing kartik-v/dependent-dropdown (dev-master 80cf23b)
    Cloning 80cf23ba6a4b9a08d829f6d4abd359c06ef17f95

  - Installing kartik-v/bootstrap-star-rating (dev-master fdf7e35)
    Cloning fdf7e355f02be7dc1d1fea3c3fb866f232388319

  - Installing kartik-v/bootstrap-fileinput (dev-master 6d477b7)
    Cloning 6d477b7966aa94202a9d059076791bb47d8973bf

  - Installing kartik-v/yii2-slider (dev-master 5e7d469)
    Cloning 5e7d469bf8c6c4ab7e6bded2cddd4eacc1c719dc

  - Installing kartik-v/yii2-money (dev-master ee3750a)
    Cloning ee3750ad043a83880828d6ce26baaa49a0111425

  - Installing kartik-v/yii2-checkbox-x (dev-master 6652279)
    Cloning 6652279d31777cdbc449d10db32e3852e4f875f6

  - Installing kartik-v/yii2-grid (dev-master b8b0377)
    Cloning b8b03778824e39e682432bccfc447616ac253c8c

  - Installing swiftmailer/swiftmailer (dev-master 41a2d62)
    Cloning 41a2d6227dbb47c1ec28d1a9508c61646bbb30ee

  - Installing yiisoft/yii2-swiftmailer (dev-master 81fc8ed)
    Cloning 81fc8edb5110a1c833dd1d56e219c81c7330d0da

  - Installing yiisoft/yii2-codeception (dev-master a77f30b)
    Cloning a77f30b7a8655eada1e3a94a568800202ca1d9bf

  - Installing yiisoft/yii2-debug (dev-master 209534f)
    Cloning 209534ff7bd413ee058278f8df40fb84053e2cad

  - Installing phpspec/php-diff (dev-master 30e103d)
    Cloning 30e103d19519fe678ae64a60d77884ef3d71b28a

  - Installing yiisoft/yii2-gii (dev-master 88d0db7)
    Cloning 88d0db768e9c200d522989265743adc87f590d6e

Generating autoload files
maxyc@Insmart:/var/www/sites/megajob.insmart.ru/advanced#
cebe commented 10 years ago

Really weird... both methods are from ArrayableTrait btw...

cebe commented 10 years ago

try running composer update yiisoft/yii2 to get the latest version from master for the framework.

maxyc commented 10 years ago

rm vendor/yiisoft -r need?

cebe commented 10 years ago

no

maxyc commented 10 years ago
maxyc@Insmart:/var/www/sites/megajob.insmart.ru/advanced# php composer.phar  update yiisoft/yii2
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating yiisoft/yii2 dev-master (c9251d5 => adb0fd1)
    Checking out adb0fd1c2c511796845280e0dfb203567f46f059

Writing lock file
Generating autoload files
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP Fatal error:  Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray) in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php on line 921
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP Stack trace:
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   1. {main}() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:0
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   2. yii\\base\\Application->run() /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php:17
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   3. yii\\web\\Application->handleRequest() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php:367
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   4. yii\\base\\Module->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php:82
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   5. yii\\base\\Controller->runAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php:429
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   6. yii\\web\\Controller->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php:146
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   7. yii\\base\\Controller->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Controller.php:107
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   8. yii\\base\\Component->trigger() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php:254
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP   9. call_user_func() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php:546
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  10. yii\\base\\ActionFilter->beforeFilter() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php:546
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  11. yii\\filters\\AccessControl->beforeAction() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/ActionFilter.php:71
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  12. yii\\filters\\AccessRule->allows() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessControl.php:117
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  13. yii\\filters\\AccessRule->matchRole() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php:103
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  14. yii\\web\\User->getIsGuest() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php:148
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  15. yii\\web\\User->getIdentity() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:298
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  16. yii\\web\\User->renewAuthStatus() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:153
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  17. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php:0
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  18. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  19. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  20. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  21. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  22. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  23. yii\\BaseYii::autoload() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:0
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] PHP  24. include() /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php:288
[Wed Jun 18 12:09:34 2014] [error] [client 83.219.134.223] exception 'yii\\base\\ErrorException' with message 'Class yii\\base\\Model contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (yii\\base\\Arrayable::extraFields, yii\\base\\Arrayable::toArray)' in /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Model.php:921\nStack trace:\n#0 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#1 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#2 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#3 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#4 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(0): yii\\BaseYii::autoload()\n#5 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/BaseYii.php(288): ::unknown()\n#6 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(0): yii\\BaseYii::autoload()\n#7 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(153): yii\\web\\User->renewAuthStatus()\n#8 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/User.php(298): yii\\web\\User->getIdentity()\n#9 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php(148): yii\\web\\User->getIsGuest()\n#10 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessRule.php(103): yii\\filters\\AccessRule->matchRole()\n#11 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/filters/AccessControl.php(117): yii\\filters\\AccessRule->allows()\n#12 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/ActionFilter.php(71): yii\\filters\\AccessControl->beforeAction()\n#13 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php(546): yii\\base\\ActionFilter->beforeFilter()\n#14 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Component.php(546): ::call_user_func()\n#15 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php(254): yii\\base\\Component->trigger()\n#16 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Controller.php(107): yii\\base\\Controller->beforeAction()\n#17 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Controller.php(146): yii\\web\\Controller->beforeAction()\n#18 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Module.php(429): yii\\base\\Controller->runAction()\n#19 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/web/Application.php(82): yii\\base\\Module->runAction()\n#20 /var/www/sites/megajob.insmart.ru/advanced/vendor/yiisoft/yii2/base/Application.php(367): yii\\web\\Application->handleRequest()\n#21 /var/www/sites/megajob.insmart.ru/advanced/frontend/web/index.php(17): yii\\base\\Application->run()\n#22 {main}
maxyc commented 10 years ago

http://megajob.insmart.ru/info.php

server: http://paste.ubuntu.com/7663388/ dev: http://pastebin.com/BZTNviQv

maxyc commented 10 years ago

PHP API 20100412 its my http://www.php.net/ChangeLog-5.php#5.4.9 22 Nov 2012

maxyc commented 10 years ago

А есть ли какое либо временное решение проблемы? у меня горит очень сильно. уже несколько раз звонили.

samdark commented 10 years ago

Можно попробовать обновиться до 5.5 или до последней версии 5.4.

maxyc commented 10 years ago

этого и боялся. у меня около 15 сайтов вертятся. и битриксы и фреймворки. боязно блин. вобщем бекапы сделал... попробуем

maxyc commented 10 years ago

обновил до PHP 5.4.9-4ubuntu2.4 (cli) (built: Dec 12 2013 04:29:20) и заработало

samdark commented 10 years ago

Странно. Вроде версия PHP осталась прежней. 5.4.9...

maxyc commented 10 years ago

судя по данным 3 года разницы получилось )