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

Current Situation of the share feature #2

Closed
vipul1994 opened this issue Aug 31, 2016 · 5 comments
Closed

Current Situation of the share feature #2

vipul1994 opened this issue Aug 31, 2016 · 5 comments

Comments

@vipul1994
Copy link

Hey,
Just wanted to know the current status of share feature on humhub and what else need to be done. So I can contribute on this repository.
Thanks.

@cebe
Copy link
Contributor

cebe commented Sep 1, 2016

You can install it and try it out in your humhub installation. Basic sharing functionality is already working.

@vipul1994
Copy link
Author

Can you add a brief readme to add this module in humhub

@cebe
Copy link
Contributor

cebe commented Sep 8, 2016

go to your humhub installation folder, then

cd protected/modules
git clone https://github.com/humhub/humhub-modules-sharebetween sharebetween

after that it should show up in admin -> modules where you can click "install"

@vipul1994
Copy link
Author

Thanks a lot for this.
Btw getting an error

Error: Call to a member function getPolymorphicRelation() on null in /var/www/html/humhub/protected/humhub/modules/sharebetween_share/widgets/views/streamEntry.php:1
Stack trace:
#0 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php(325): require()
#1 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php(247): yii\base\View->renderPhpFile('/var/www/html/h...', Array)
#2 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/var/www/html/h...', Array, Object(humhub\modules\sharebetween\widgets\StreamEntry))
#3 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Widget.php(192): yii\base\View->render('streamEntry', Array, Object(humhub\modules\sharebetween\widgets\StreamEntry))
#4 /var/www/html/humhub/protected/humhub/modules/sharebetween_share/widgets/StreamEntry.php(17): yii\base\Widget->render('streamEntry', Array)
#5 /var/www/html/humhub/protected/humhub/modules/content/widgets/WallEntry.php(109): humhub\modules\sharebetween\widgets\StreamEntry->run()
#6 /var/www/html/humhub/protected/humhub/modules/content/components/ContentActiveRecord.php(124): humhub\modules\content\widgets\WallEntry->renderWallEntry()
#7 /var/www/html/humhub/protected/humhub/modules/content/components/actions/Stream.php(259): humhub\modules\content\components\ContentActiveRecord->getWallOut()
#8 [internal function]: humhub\modules\content\components\actions\Stream->run()
#9 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Action.php(92): call_user_func_array(Array, Array)
#10 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(154): yii\base\Action->runWithParams(Array)
#11 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Module.php(454): yii\base\Controller->runAction('stream', Array)
#12 /var/www/html/humhub/protected/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('user/profile/st...', Array)
#13 /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(humhub\components\Request))
#14 /var/www/html/humhub/index.php(25): yii\base\Application->run()
#15 {main}

@vipul1994
Copy link
Author

vipul1994 commented Sep 8, 2016

It worked finally.
Few problem were like

  1. No method canView used in $content->canView() @ ShareController.php.
  2. Content does not have contentcontainer_id in its table. gave error in content.contentcontainer_id @ Share.php
  3. public $wallEntryLayout = "@sharebetween/widgets/views/wallEntry.php"; was not working in StreamEntry.php . Resolved by making it
        public $wallEntryLayout = "wallEntry.php";
    

Thanks for the module though. :)

@luke- luke- closed this as completed Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants