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

Bought this. Does not work #31

Closed
Mimanolis opened this issue Feb 19, 2023 · 5 comments
Closed

Bought this. Does not work #31

Mimanolis opened this issue Feb 19, 2023 · 5 comments

Comments

@Mimanolis
Copy link

Is there an issue with the add-on we should be aware? My installaton of humhub does not produce previews in any link. Are there dependencies that should be taken care of before installation?

@luke-
Copy link
Contributor

luke- commented Feb 20, 2023

Did you activated the module? Are there any error in the logs? "Administration -> Informations -> Logging"?

@Mimanolis
Copy link
Author

Mimanolis commented Feb 20, 2023

image
Yes I did, placed the license key and activated (It's in Greek, it means activated)

This is the error that appears in the logs searching for linkpreview
Error: Class "DOMDocument" not found in /var/www/snapup/protected/modules/linkpreview/vendor/symfony/dom-crawler/Crawler.php:1166
Stack trace:
#0 /var/www/snapup/protected/modules/linkpreview/vendor/symfony/dom-crawler/Crawler.php(1289): Symfony\Component\DomCrawler\Crawler->parseXhtml()
#1 /var/www/snapup/protected/modules/linkpreview/vendor/symfony/dom-crawler/Crawler.php(198): Symfony\Component\DomCrawler\Crawler->parseHtmlString()
#2 /var/www/snapup/protected/modules/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(93): Symfony\Component\DomCrawler\Crawler->addHtmlContent()
#3 /var/www/snapup/protected/modules/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(79): Fusonic\OpenGraph\Consumer->extractOpenGraphData()
#4 /var/www/snapup/protected/modules/linkpreview/controllers/IndexController.php(52): Fusonic\OpenGraph\Consumer->loadHtml()
#5 [internal function]: humhub\modules\linkpreview\controllers\IndexController->actionFetch()
#6 /var/www/snapup/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#7 /var/www/snapup/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#8 /var/www/snapup/protected/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#9 /var/www/snapup/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction()
#10 /var/www/snapup/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest()
#11 /var/www/snapup/index.php(25): yii\base\Application->run()
#12 {main}

Does this mean that the extension DOM is not enabled in my php?

@luke-
Copy link
Contributor

luke- commented Feb 20, 2023

Oh yes, the DOM extension seems to be missing. We are going to add the Module Requirements here.

@Mimanolis
Copy link
Author

Thanks for the reply. Yes please add the requirements it would be very helpful

@luke-
Copy link
Contributor

luke- commented Feb 21, 2023

Thanks, i've updated the requirement. It will be available in the next version release.

@luke- luke- closed this as completed Feb 21, 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

2 participants