Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Миграция на новые комментарии #1134

Closed
yupe opened this issue Jul 31, 2013 · 3 comments
Closed

Миграция на новые комментарии #1134

yupe opened this issue Jul 31, 2013 · 3 comments

Comments

@yupe
Copy link
Owner

yupe commented Jul 31, 2013

andrey@andrey-pc:/var/www/yupe/protected$ php ./yiic ymigratetonestedsets
Checking for 'm130704_095200_comment_nestedsets' migration -> [OK]
Selecting models which contains comments -> [OK]
PHP Error[8]: Trying to get property of non-object
in file /var/www/yupe/protected/modules/yupe/extensions/nested-set-behavior/NestedSetBehavior.php at line 325
#0 unknown(0): NestedSetBehavior->appendTo()
#1 /var/www/yupe/framework/base/CComponent.php(261): call_user_func_array()
#2 /var/www/yupe/framework/db/ar/CActiveRecord.php(227): Comment->__call()
#3 /var/www/yupe/protected/commands/YMigrateToNestedSetsCommand.php(154): Comment->__call()
#4 /var/www/yupe/protected/commands/YMigrateToNestedSetsCommand.php(154): Comment->appendTo()
#5 /var/www/yupe/protected/commands/YMigrateToNestedSetsCommand.php(28): YMigrateToNestedSetsCommand->_buildNestedSetsTree()
#6 unknown(0): YMigrateToNestedSetsCommand->actionIndex()
#7 /var/www/yupe/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#8 /var/www/yupe/framework/console/CConsoleCommandRunner.php(71): YMigrateToNestedSetsCommand->run()
#9 /var/www/yupe/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#10 /var/www/yupe/framework/base/CApplication.php(180): CConsoleApplication->processRequest()
#11 /var/www/yupe/framework/yiic.php(33): CConsoleApplication->run()
#12 /var/www/yupe/protected/yiic.php(7): require_once()
#13 /var/www/yupe/protected/yiic(4): require_once()

@yupe
Copy link
Owner Author

yupe commented Jul 31, 2013

Раза с третьего все же все отмигрировалось, но при заходе на страничку поста с комментариями получаю вот что:

php notice

@ghost ghost assigned idexter Jul 31, 2013
@yupe
Copy link
Owner Author

yupe commented Jul 31, 2013

@dexterHD если будет время - посмотри, пожалуйста....

@idexter
Copy link
Collaborator

idexter commented Jul 31, 2013

Окей, завтра посмотрю. Сделаю логинг комментариев при конвертации, может получится еще какую-нибудь информацию извлечь по ошибке. Такое ощущение, что либо комментарий "какой то не такой" попадает на вход функции NestedSetBehavior->appendTo();

@idexter idexter closed this as completed in 2db0d55 Oct 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants