• The website will be temporarily unavailable next night. Reason are The hoster moves our account to another server. Unfortunately, this also has the disadvantage that the IP changes. Between 2 and 6 o'clock.
  • Please do NOT PM me for support. For login data or problems/questions not intended for the public use the "Your private forum".

Fixed The watermark doesn't work on my website

N

nhatkymua

Member
XenForo License
Hi @au lait
I just bought the addon, but its doesn't seen to work, I did trying Watermark-Type: Image and Watermark-Type: Text.
I also enable display watermark in user group. I am using xf v2.1.0 Beta 5. But i dont have Imagick
Thank you
 
SyTry

SyTry

Well-Known Member
XenForo License
Hello,

I think the watermark is not added to the existing images but only to those added after the add-on.

Maybe I'm wrong but you can ask @au lait ! ;)

Regards, SyTry
 
SyTry

SyTry

Well-Known Member
XenForo License
No Problem

Error Logs? Can U Post a Screenshot from the permissions and config


No.

Watermark add on the fly. for every image.
Ah ok , after installation with CRON or something else ? Because I don't see that during my test on a subdomain
 
au lait

au lait

Administrator
Staff member
XenForo License
watermark is generated when needed. in the fly
 
N

nhatkymua

Member
XenForo License
No Problem

Error Logs? Can U Post a Screenshot from the permissions and config


No.

Watermark add on the fly. for every image.
Thank for reply

4855

Code:
<?php
$config['db']['host'] = 'xxxxxxxxxx';
$config['db']['port'] = 'xxxxxxxxxxx';
$config['db']['username'] = 'xxxxx';
$config['db']['password'] = 'xxxxxxxxx';
$config['db']['dbname'] = 'xxxxxxxxxx';
$config['fullUnicode'] = true;
$s3 = function()
{ return new \Aws\S3\S3Client([ 'credentials' => [ 'key' => 'xxxxxxxxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxxxxx' ], 'region' => 'xxxxxxxxxxxxx', 'version' => 'latest', 'endpoint' => 'https://s3.us-east-1.amazonaws.com' ]);
};
$config['fsAdapters']['data'] = function() use($s3)
{ return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), 'data.thich.com', 'data');
};
$config['externalDataUrl'] = function($externalPath, $canonical)
{ return 'https://data.thich.com/data/' . $externalPath;
};
$config['fsAdapters']['internal-data'] = function() use($s3)
{ return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), 'data.thich.com', 'internal_data');
};
 
N

nhatkymua

Member
XenForo License
I also using the amazon s3 addon for my data. Here is the addon
 
N

nhatkymua

Member
XenForo License
i got error too
  • InvalidArgumentException: Accessed unknown getter '1' on XF:User[1]
  • src/XF/Mvc/Entity/Entity.php:188
Code:
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get(1)
#1 internal_data/code_cache/widgets/_68_pagehome.php(7): XF\Mvc\Entity\Entity->offsetGet(1)
#2 src/XF/Template/Templater.php(6577): XF\SubContainer\Widget->{closure}(Object(AL\ThreadThumbnail\XF\Template\Templater), Array, Array)
#3 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#4 src/XF/Template/Templater.php(1612): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#5 internal_data/code_cache/templates/l2/s1/public/forum_list.php(216): XF\Template\Templater->widgetPosition('forum_list_abov...', Array)
#6 src/XF/Template/Templater.php(1293): XF\Template\Templater->{closure}(Object(AL\ThreadThumbnail\XF\Template\Templater), Array)
#7 src/addons/AL/ThreadFilter/XF/Template/Templater.php(108): XF\Template\Templater->renderTemplate('forum_list', Array, true)
#8 src/addons/AL/ThreadThumbnail/XF/Template/Templater.php(76): AL\ThreadFilter\XF\Template\Templater->renderTemplate('public:forum_li...', Array, true)
#9 src/XF/Template/Template.php(24): AL\ThreadThumbnail\XF\Template\Templater->renderTemplate('public:forum_li...', Array)
#10 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#11 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Forum\\Listin...', 'public:forum_li...', Array)
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(392): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
 
Terror

Terror

Active Member
XenForo License
have you tried default storage? the addon is working fine on one of my sites.
 
SyTry

SyTry

Well-Known Member
XenForo License
i got error too
  • InvalidArgumentException: Accessed unknown getter '1' on XF:User[1]
  • src/XF/Mvc/Entity/Entity.php:188
Code:
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get(1)
#1 internal_data/code_cache/widgets/_68_pagehome.php(7): XF\Mvc\Entity\Entity->offsetGet(1)
#2 src/XF/Template/Templater.php(6577): XF\SubContainer\Widget->{closure}(Object(AL\ThreadThumbnail\XF\Template\Templater), Array, Array)
#3 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#4 src/XF/Template/Templater.php(1612): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#5 internal_data/code_cache/templates/l2/s1/public/forum_list.php(216): XF\Template\Templater->widgetPosition('forum_list_abov...', Array)
#6 src/XF/Template/Templater.php(1293): XF\Template\Templater->{closure}(Object(AL\ThreadThumbnail\XF\Template\Templater), Array)
#7 src/addons/AL/ThreadFilter/XF/Template/Templater.php(108): XF\Template\Templater->renderTemplate('forum_list', Array, true)
#8 src/addons/AL/ThreadThumbnail/XF/Template/Templater.php(76): AL\ThreadFilter\XF\Template\Templater->renderTemplate('public:forum_li...', Array, true)
#9 src/XF/Template/Template.php(24): AL\ThreadThumbnail\XF\Template\Templater->renderTemplate('public:forum_li...', Array)
#10 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#11 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Forum\\Listin...', 'public:forum_li...', Array)
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(392): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
Are you sure this error is generate by Watermark ? Because I see AL/ThreadFilter & AL/ThreadThumbnail ;)
 
au lait

au lait

Administrator
Staff member
XenForo License
I'm still testing! This add-on was never designed to work with Cloud. But it's my turn to work out a solution.
 
au lait

au lait

Administrator
Staff member
XenForo License
You got a test version by PN. Please test if everything works.
 
Last edited:
N

nhatkymua

Member
XenForo License
its the error show

Code:
League\Flysystem\FileNotFoundException: File not found at path: stwm_watermarks/1/1381-660260cc38cda4db83095ca72062f70d.data in src/vendor/league/flysystem/src/Filesystem.php at line 388
League\Flysystem\Filesystem->assertPresent() in src/vendor/league/flysystem/src/Filesystem.php at line 297
League\Flysystem\Filesystem->getTimestamp()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 220
League\Flysystem\EventableFilesystem\EventableFilesystem->getTimestamp() in src/vendor/league/flysystem/src/MountManager.php at line 407
League\Flysystem\MountManager->getTimestamp() in src/addons/xenMade/STWM/Util/Watermark.php at line 76
xenMade\STWM\Util\Watermark->__construct() in src/addons/xenMade/STWM/Util/Helper.php at line 59
xenMade\STWM\Util\Helper::generateWatermark() in src/addons/xenMade/STWM/XF/ControllerPlugin/Attachment.php at line 13
xenMade\STWM\XF\ControllerPlugin\Attachment->displayAttachment() in src/XF/Pub/Controller/Attachment.php at line 43
XF\Pub\Controller\Attachment->actionIndex() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 392
XF::runApp() in index.php at line 20
and this one

Code:
League\Flysystem\FileNotFoundException: File not found at path: stwm_watermarks/1/1381-660260cc38cda4db83095ca72062f70d.data src/vendor/league/flysystem/src/Filesystem.php:388
Tạo ra bởi: Đạt 22/12/18 lúc 07:16
Stack trace
#0 src/vendor/league/flysystem/src/Filesystem.php(297): League\Flysystem\Filesystem->assertPresent('stwm_watermarks...')
#1 [internal function]: League\Flysystem\Filesystem->getTimestamp('stwm_watermarks...', Array)
#2 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('parent::getTime...', Array)
#3 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(395): League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod('getTimestamp', Array)
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(220): League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall('getTimestamp', Array)
#5 src/vendor/league/flysystem/src/MountManager.php(407): League\Flysystem\EventableFilesystem\EventableFilesystem->getTimestamp('stwm_watermarks...')
#6 src/addons/xenMade/STWM/Util/Watermark.php(76): League\Flysystem\MountManager->getTimestamp('stwm_watermarks...')
#7 src/addons/xenMade/STWM/Util/Helper.php(59): xenMade\STWM\Util\Watermark->__construct(Object(AL\ThreadThumbnail\XF\Entity\Attachment))
#8 src/addons/xenMade/STWM/XF/ControllerPlugin/Attachment.php(13): xenMade\STWM\Util\Helper::generateWatermark(Object(AL\ThreadThumbnail\XF\Entity\Attachment))
#9 src/XF/Pub/Controller/Attachment.php(43): xenMade\STWM\XF\ControllerPlugin\Attachment->displayAttachment(Object(AL\ThreadThumbnail\XF\Entity\Attachment))
#10 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Attachment->actionIndex(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Index', Object(XF\Mvc\RouteMatch), Object(AL\ThreadThumbnail\XF\Pub\Controller\Attachment), NULL)
#12 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(AL\ThreadThumbnail\XF\Pub\Controller\Attachment), NULL)
#13 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#15 src/XF.php(392): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
array(4) { ["url"] => string(62) "/attachments/1-jpg.1369/?hash=7ee1db3edff27836657eef3220b85e6a" ["referrer"] => string(77) "https://thich.com/threads/c-n-d-i-tac-d-u-tu-cu-i-nam-th-truong-hang-hoa.678/" ["_GET"] => array(1) { ["hash"] => string(32) "7ee1db3edff27836657eef3220b85e6a" } ["_POST"] => array(0) { }
}
 
au lait

au lait

Administrator
Staff member
XenForo License
Yes, my mistakes, see it now! Sorry! Fix Fix is coming!
 
au lait

au lait

Administrator
Staff member
XenForo License
You got a test version by PN. PLease test it again...
 
Top