humhub / linkpreview-issues Goto Github PK
View Code? Open in Web Editor NEWIssue Tracker for LinkPreview module
Issue Tracker for LinkPreview module
There is nothing showing when pasting links
Tried
www.spotify.com
www.facebook.com
Running HumHub 1.9.2 with PHP 7.4.25
Can this be looked into please. Just purchased today.
In anticipation on the new requirements.php
support (humhub/humhub#6744), this file could be created on this module regarding the DOM Extension requirement.
@luke- if you give me access to the repository, I can create it if you want.
PS: the PHP 7.4
requirement on https://marketplace.humhub.com/module/linkpreview/manual can be removed as the module needs at least HumHub 1.12 which already requires PHP 7.4 as a minimum.
Paste this link into a humhub instance with the link preview module enabled https://www.cbsnews.com/news/climate-change-air-quality-unhealthy-wildfires-first-street/
The image from the article is displayed
This link preview will not be saved because of errors: Image should contain at most 255 characters.
Q | A |
---|---|
HumHub version | Version: 1.15.0 |
PHP version | |
Operating system | Debian |
Note: Also provide the full error stacks from
Administration --> Information --> Logging
and errors from your browser console if possible.
Note: Please use the community site for any questions on customizing HumHub.
When the preview image is a relative link, it resolves incorrectly to a URL on the HumHub site, rather than on the target site, causing the preview image to fail to load.
LinkPreview module version: 1.15.3
HumHub version: 1.8.1
Working Example URL e.g. with chinese characters: https://www.sina.com.cn/
Failing url: https://m.youtube.com/watch?v=2x5Z11Bi27w&feature=youtu.be
Hi there.
When adding a link in a post, the preview works well, but the favicon is changed by the favicon of the linked website.
That's not a big deal but it's disturbing seeing the youtube favicon instead of the good one.
Thanks for your help.
We are running an older version of HumHub and have been using LinkPreview with great success for the better part of a year. All of a sudden, LinkPreview just stopped working. We haven't upgraded anything (OS, LinkPreview, HumHub, etc). There is plenty of disk space free and no RAM issues.
None of the logs have any useful information and the specific 500 error doesn't seem to be recorded anywhere (/var/log/httpd/* or in HumHub admin logs).
Do you have any suggestions for what we might do to regain this functionality? Any other information that I could provide?
Thanks,
Bill
LinkPreview: 1.14
HumHub: 1.7.3
$ uname -a
Linux 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ httpd -v
Server version: Apache/2.4.37 (centos)
Server built: Nov 4 2020 03:20:37
$ php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Hello! Attempting to install this module, 'without account' and as 'Individual (private user)', I found that card is really the only relevant option from here in Norway. Having tried three different cards, now, two credit cards and one debit card, all three attempts resulted in a 'declined' message.
This was suprising because all three cards have more than enough money on them, and are set up to be possible to use for purchases online. The experience was unusual, as it is not uncommon for me to buy things online. Unless this is something very particular that just relates to me, you may want to contact Stripe to see if there is some technical problem that prevents people who do not have iDEAL, SEPA Direct, Alipay, SOFORT, giropay or EPS, from buying this module. Thanks
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?
Seems there are problems with links with accented letters like: ò,à,è and son on.
In paritcular when embedding links from linkedin.
Same links in the past used to works .
Is there a way to enlarge the image in the preview, is it module-based or humhub core-based of how the previews are displayed?
For security reasons the links generated by this module should at least default to rel="noopener" or to rel="noopener noreferrer nofollow" like it is with external links in posts.
Hello,
Since I've updated from 1.15.0 to 1.15.1, each time I post a message or a comment (a Simple "test message" without any links inside), I have this error message that appear at the bottom of the website :
TypeError: errors is undefinedLinkPreviewEditor.prototype.setPreviewErrors@https://www.high-score.fr/assets/94f4b1a7/js/humhub.linkpreview.js?v=1.8.1:219:16
LinkPreviewEditor.prototype.reset@https://www.high-score.fr/assets/94f4b1a7/js/humhub.linkpreview.js?v=1.8.1:158:14
LinkPreviewEditor.prototype.init/<@https://www.high-score.fr/assets/94f4b1a7/js/humhub.linkpreview.js?v=1.8.1:122:18
dispatch@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:3260
add/q.handle@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:1234
trigger@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:24991
trigger/<@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:25597
each@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:19:15968
each@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:19:14428
trigger@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:25572
i_.prototype.clear@https://www.high-score.fr/static/js/humhub-bundle.js?v=1.8.1:221:12287
j_.prototype.clear@https://www.high-score.fr/static/js/humhub-bundle.js?v=1.8.1:227:631
j.prototype.init/<@https://www.high-score.fr/static/js/humhub-bundle.js?v=1.8.1:233:1049
dispatch@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:3260
add/q.handle@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:1234
trigger@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:24991
trigger/<@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:25597
each@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:19:15968
each@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:19:14428
trigger@https://www.high-score.fr/static/js/humhub-app.js?v=1.8.1:30:25572
200@https://www.high-score.fr/static/js/humhub-bundle.js?v=1.8.1:250:5554
q/k.status/
As a french user, there are a lot of links to french websites.
Preview appears like this (minus the space ... otherwise github translate the accent correctly)
Un hommage au pilote lé ;gendaire Ayrton Senna
instead of
Un hommage au pilote légendaire Ayrton Senna
All accent and special chars are incorrect.
I guess it's a UTF-8 encoding issue...
With version 2.0.0-beta.1, I often get:
Error: Call to a member function __toString() on null in
/usr/www/humhub/protected/modules/linkpreview/controllers/IndexController.php:73
Stack trace:
#0
/usr/www/humhub/protected/modules/linkpreview/controllers/IndexController.php(48):
humhub\modules\linkpreview\controllers\IndexController->parseMetaImage()
#1 [internal function]:
humhub\modules\linkpreview\controllers\IndexController->actionFetch()
#2
/usr/www/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57):
call_user_func_array()
#3
/usr/www/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(178):
yii\base\InlineAction->runWithParams()
#4
/usr/www/humhub/protected/vendor/yiisoft/yii2/base/Module.php(552):
yii\base\Controller->runAction()
#5
/usr/www/humhub/protected/vendor/yiisoft/yii2/web/Application.php(103):
yii\base\Module->runAction()
#6
/usr/www/humhub/protected/vendor/yiisoft/yii2/base/Application.php(384):
yii\web\Application->handleRequest()
#7
/usr/www/humhub/index.php(25):
yii\base\Application->run()
#8 {main}
The bug is here:
$imageUrls = $info->getMetas()->get('og:image:url') ?: $info->getMetas()->get('og:image') ?: [$info->image->__toString()];
As $info->image
can be null.
[Zend\Http\Exception\InvalidArgumentException] Zend\Uri\Exception\InvalidUriPartException: Scheme "mailto" is not valid or is not accepted by Zend\Uri\Http in /srv/humhub/protected/vendor/zendframework/zend-uri
Stack trace:
#0 /srv/humhub/protected/vendor/zendframework/zend-uri/src/Uri.php(284): Zend\Uri\Uri->setScheme('mailto')
#1 /srv/humhub/protected/vendor/zendframework/zend-uri/src/Http.php(214): Zend\Uri\Uri->parse('mailto:some-...')
#2 /srv/humhub/protected/vendor/zendframework/zend-uri/src/Uri.php(142): Zend\Uri\Http->parse('mailto:some-...')
#3 /srv/humhub/protected/vendor/zendframework/zend-http/src/Request.php(203): Zend\Uri\Uri->__construct('mailto:some-...')
#4 /srv/humhub/protected/vendor/zendframework/zend-http/src/Client.php(317): Zend\Http\Request->setUri('mailto:some-...')
#5 /srv/humhub/protected/vendor/zendframework/zend-http/src/Client.php(143): Zend\Http\Client->setUri('mailto:some-...')
#6 /srv/www/htdocs/suse/modules/linkpreview/controllers/IndexController.php(37): Zend\Http\Client->__construct('mailto:some-...', Array)
#7 [internal function]: humhub\modules\linkpreview\controllers\IndexController->actionFetch()
#8 /srv/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /srv/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#10 /srv/humhub/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('fetch', Array)
#11 /srv/humhub/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('linkpreview/ind...', Array)
#12 /srv/humhub/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(humhub\components\Request))
For example, this link Not work
https://sharing.kptncook.com/H0v9pC5qNjb
The plugin loads direct under the textfield as expected but after 3s its disapear und nö previews was created
I've recently installed the linkpreview module v1.15.3. I'm running HH v1.8.2 community edition on a hosted server.
Initially the module worked reasonably well (the thumbnail was a bit small). After a few days it now seems to work only sporadically.
Some sites produce no link at all: https://bbc.co.uk https://twitter.com/
Some sites generate a text preview, but no image: https://www.google.co.uk/ https://www.amazon.co.uk/
And some sites generate a thumbnail and text, as expected: https://www.independent.co.uk/ https://www.humhub.com/en
I've tried including other text in the post, before or after the link.
Any ideas?
When posting links to Humhub calendar entries into Humhub spaces there is no preview.
When posting links to (public) Humhub posts into spaces there is no preview.
Replace Zend\Http\Client with Yii2 HTTP Client.
It works great from my computer but it doesn't do anything from a mobile.
Would you please do something for that.
Thanks
LinkPreview : 1.16.1
Humhub : 1.12.0
Browser :
It is more wonderful if a link preview was automatically created in conjunction with the post creation API, or linked to the post with the link preview API.
If a link preview record fails validation, for example because a URL is longer than 255 characters, the preview is silently discarded upon submitting the post.
This can be especially bewildering if the troublesome URL is for the preview image, over which the user has no control.
Submit a search on the global search page.
The results should display and no JavaScript errors should result.
The following JavaScript warning:
[Warning] Required a non initialized module: linkpreview.LinkPreview (humhub-app.js:17094)
Also, the following JavaScript error:
[Error] ERROR - root: Could not initialize module: humhub.modules.ui.modal
TypeError: null is not an object (evaluating 'a.global.$')
m — humhub-app.js:18891
r — humhub-app.js:17210:138
(anonymous function) — humhub-app.js:17203
each — humhub-app.js:728
(anonymous function) — humhub-app.js:17202
l — humhub-app.js:1850
(anonymous function) — humhub-app.js:1857
(anonymous function) (humhub-app.js:17537)
(anonymous function) (humhub-app.js:17524:425)
(anonymous function) (humhub-app.js:17517)
r (humhub-app.js:17573)
r (humhub-app.js:17212)
(anonymous function) (humhub-app.js:17203)
each (humhub-app.js:728)
(anonymous function) (humhub-app.js:17202)
l (humhub-app.js:1850)
(anonymous function) (humhub-app.js:1857)
Q | A |
---|---|
HumHub version | 1.6.0 |
PHP version | 7.3.19 |
Operating system | Debian |
Note: Also provide the full error stacks from
Administration --> Information --> Logging
and errors from your browser console if possible.
Note: Please use the community site for any questions on customizing HumHub.
Would it be possible to add the link preview title and description to the search index so that the content the link is attached to can be found through those keywords?
Hi,
Would it be possible to find a way to have a preview on a peertube video link, with the LinkPreview plugin?
Then, this great opensource social platform would be supporting an opensource video platform :)
Thanks!
Dear all
I’m using HumHub Version : 1.8.0
LinkPreview : Version : 1.15.6
but, when I share youtube video with arabic description, video is displayed like this
�ا تر� بعد ا�بعاد ا��ش��ة
could you help pls?
regards
If error_reporting
is set to E_ALL
, the previewing doesn't work.
I didn't take time to investigate. Perhaps a composer update
would solve the problem, the the composer.json
is not present, so I cannot test.
Error log:
yii\base\ErrorException: During inheritance of IteratorAggregate: Uncaught yii\base\ErrorException: Return type of Fusonic\Linq\Linq::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/linq/src/Fusonic/Linq/Linq.php:728
Stack trace:
#0 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/linq/src/Fusonic/Linq/Linq.php(36): yii\web\ErrorHandler->handleError(code: '...', message: '...', file: '...', line: '...')
#1 /var/www/hhdev/protected/vendor/composer/ClassLoader.php(571): ::unknown()
#2 /var/www/hhdev/protected/vendor/composer/ClassLoader.php(428): ::Composer\Autoload\includeFile(file: '...')
#3 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(101): Composer\Autoload\ClassLoader->loadClass(class: '...')
#4 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(79): Fusonic\OpenGraph\Consumer->extractOpenGraphData(content: '...')
#5 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/controllers/IndexController.php(52): Fusonic\OpenGraph\Consumer->loadHtml(html: '...', fallbackUrl: '...')
#6 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): humhub\modules\linkpreview\controllers\IndexController->actionFetch()
#7 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): ::call_user_func_array:{/var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php:57}(callback: '...', args: '...')
#8 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(params: '...')
#9 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Module.php(552): humhub\modules\linkpreview\controllers\IndexController->runAction(id: '...', params: '...')
#10 /var/www/hhdev/protected/vendor/yiisoft/yii2/web/Application.php(103): humhub\components\Application->runAction(route: '...', params: '...')
#11 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Application.php(384): humhub\components\Application->handleRequest(request: '...')
#12 /var/www/hhdev/index.php(26): humhub\components\Application->run()
#13 {main} in /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/linq/src/Fusonic/Linq/Linq.php:36
Stack trace:
#0 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/ErrorHandler.php(0): yii\web\ErrorHandler->handleFatalError()
#1 /var/www/hhdev/protected/vendor/composer/ClassLoader.php(571): ::unknown()
#2 /var/www/hhdev/protected/vendor/composer/ClassLoader.php(428): ::Composer\Autoload\includeFile(file: '...')
#3 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(101): Composer\Autoload\ClassLoader->loadClass(class: '...')
#4 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/vendor/fusonic/opengraph/src/Consumer.php(79): Fusonic\OpenGraph\Consumer->extractOpenGraphData(content: '...')
#5 /var/www/hhdev/protected/modulesnoncuzy/linkpreview/controllers/IndexController.php(52): Fusonic\OpenGraph\Consumer->loadHtml(html: '...', fallbackUrl: '...')
#6 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): humhub\modules\linkpreview\controllers\IndexController->actionFetch()
#7 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): ::call_user_func_array:{/var/www/hhdev/protected/vendor/yiisoft/yii2/base/InlineAction.php:57}(callback: '...', args: '...')
#8 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(params: '...')
#9 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Module.php(552): humhub\modules\linkpreview\controllers\IndexController->runAction(id: '...', params: '...')
#10 /var/www/hhdev/protected/vendor/yiisoft/yii2/web/Application.php(103): humhub\components\Application->runAction(route: '...', params: '...')
#11 /var/www/hhdev/protected/vendor/yiisoft/yii2/base/Application.php(384): humhub\components\Application->handleRequest(request: '...')
#12 /var/www/hhdev/index.php(26): humhub\components\Application->run()
#13 {main}
When copy/paste from the mobile PWA; the preview is not triggered.
(the same link work as expected from web)
thx!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.