Advanced Attachment System (AAS) [Deleted]

Sometimes I got this error.
Probably because attachment image is smaller than watermark image.
Could you manage to exclude watermark image on images less than X pixel, or to manage that watermark image resize in X% of image size?

Thanks

Code:
Server Error Log
Error Info
ErrorException: imagecreatetruecolor(): Invalid image dimensions - library/phc/AttachmentPlus/Helper/Watermark.php:306
[/QUOTE]


fixed for the next release!
 
fixed for the next release!
Sometimes I got this error.
Probably because attachment image is smaller than watermark image.
Could you manage to exclude watermark image on images less than X pixel, or to manage that watermark image resize in X% of image size?

Thanks

Code:
Server Error Log
Error Info
ErrorException: imagecreatetruecolor(): Invalid image dimensions - library/phc/AttachmentPlus/Helper/Watermark.php:306
Generated By: Unknown Account, Yesterday at 05:29
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'imagecreatetrue...', '/home/nginx/dom...', 306, Array)
#1 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Helper/Watermark.php(306): imagecreatetruecolor(1, 0.15)
#2 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Helper/Watermark.php(152): phc_AttachmentPlus_Helper_Watermark->_imagescale(Resource id #16, 1, 0.15, Array)
#3 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Helper/Watermark.php(75): phc_AttachmentPlus_Helper_Watermark->generateWatermarkImage()
#4 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Attachment.php(48): phc_AttachmentPlus_Helper_Watermark->__construct(Array)
#5 /home/nginx/domains/pijanitvor.com/public/library/SV/ReportImprovements/XenForo/ControllerPublic/Attachment.php(8): phc_AttachmentPlus_Extend_XenForo_ControllerPublic_Attachment->actionIndex()
#6 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(351): SV_ReportImprovements_XenForo_ControllerPublic_Attachment->actionIndex()
#7 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/nginx/domains/pijanitvor.com/public/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(55) "https://www.pijanitvor.com/attachments/clear-png.96037/"
  ["_GET"] => array(1) {
    ["/attachments/clear-png_96037/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

fixed for the next release!

Hi @au lait
Any news when new version will be out?
I got several of server errors every day.
Thanks
 
Is there any plan to make some changes so that is extend the attachment handler of xf?

So that it works with the add-ons that are using xf standards to add attachment process ?

For example we use @Bob 's add-ons that all let us attach files. All also are using xf's core. But features of your add-ons doesn't affect on attachments of those add-ons.

To be honest, most of activities of our sites are in 3rd party add-ons. not the forums.
 
@au lait ,

got a little problem with this new 2.1 version addon . Whenever I click on a "Show QR Code", all I get is this:
View attachment 149699

XF and server error-logs are empty. No problems with server limits (outmaxed). Any idea how to solve that issue?
au lait was able to identify this issue. It seems that it is related to https-URIs which aren´t handled correctly via the servers cURL. au lait was able to solve that in his addon with a custom bypass for the https-handling.

Really fast and reliable - nearly instant - support. Much appreciated. Thanks, au lait!
 
Can this add-on be used to view the list of attachments uploaded by User? Another option adds a link to the Attachment Manager into the user's pop down menu and into the left navigation area of the UAP (User Account Panel) of each user you allow to use view own all attachments in one page.

Example:

attman_full_view-png.39170
 
@au lait , I have some Features Suggestions. Please add this Features.

1. Post count need to upload/download Attachments
2. Like / Reply to View Attachment
3. Attachment Statistics (Stats block on the ACP and forum home page. It's showing the number of attachments and the amount of disk space they are using)
 
Server Error:
Code:
ErrorException: Undefined index: ld_allow_view_links - library/phc/AttachmentPlus/Model/ATPModel.php:442
 
@au lait same error here

Code:
Server Error Log
Error Info
ErrorException: Undefined index: ld_allow_view_links - library/phc/AttachmentPlus/Model/ATPModel.php:442
Generated By: Sunka, Today at 03:23
Stack Trace
#0 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Model/ATPModel.php(442): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 442, Array)
#1 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php(12): phc_AttachmentPlus_Model_ATPModel->canViewUserAttachments(Array)
#2 /home/nginx/domains/pijanitvor.com/public/library/Bookmarks/ControllerPublic/Member.php(18): phc_AttachmentPlus_Extend_XenForo_ControllerPublic_Member->actionMember()
#3 /home/nginx/domains/pijanitvor.com/public/library/SV/ModEss/XenForo/ControllerPublic/Member.php(8): Bookmarks_ControllerPublic_Member->actionMember()
#4 /home/nginx/domains/pijanitvor.com/public/library/SV/WarningImprovements/XenForo/ControllerPublic/Member.php(9): SV_ModEss_XenForo_ControllerPublic_Member->actionMember()
#5 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(351): SV_WarningImprovements_XenForo_ControllerPublic_Member->actionMember()
#6 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /home/nginx/domains/pijanitvor.com/public/index.php(13): XenForo_FrontController->run()
#8 {main}
Request State
array(3) {
  ["url"] => string(50) "https://www.pijanitvor.com/members/skeleton.20282/"
  ["_GET"] => array(1) {
    ["/members/skeleton_20282/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
@au lait Installed the latest version just now. Got two errors in ACP.

Code:
erver Error Log
Error Info
ErrorException: Undefined index: user - library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php:12
Generated By: EstherBvK, 17 minutes ago
Stack Trace
#0 /home/axel/public_html/forum/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php(12): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/axel/publ...', 12, Array)
#1 /home/axel/public_html/forum/library/bdMedal/Extend/ControllerPublic/Member.php(7): phc_AttachmentPlus_Extend_XenForo_ControllerPublic_Member->actionMember()
#2 /home/axel/public_html/forum/library/XenForo/FrontController.php(351): bdMedal_Extend_ControllerPublic_Member->actionMember()
#3 /home/axel/public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/axel/public_html/forum/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(192) "http://mainecoon.nl/forum/members/estherbvk.13966/?card=1&&_xfRequestUri=%2Fforum%2F&_xfNoRedirect=1&_xfToken=13966%2C1490865904%2Cc3948e0b039423146c6fad3255356d8e0633868d&_xfResponseType=json"
  ["_GET"] => array(5) {
    ["card"] => string(1) "1"
    ["_xfRequestUri"] => string(7) "/forum/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(57) "13966,1490865904,c3948e0b039423146c6fad3255356d8e0633868d"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

Code:
Server Error Log
Error Info
TypeError: Argument 1 passed to phc_AttachmentPlus_Model_ATPModel::canViewUserAttachments() must be of the type array, null given, called in /home/axel/public_html/forum/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php on line 12 - library/phc/AttachmentPlus/Model/ATPModel.php:426
Generated By: EstherBvK, 16 minutes ago
Stack Trace
#0 /home/axel/public_html/forum/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php(12): phc_AttachmentPlus_Model_ATPModel->canViewUserAttachments(NULL)
#1 /home/axel/public_html/forum/library/bdMedal/Extend/ControllerPublic/Member.php(7): phc_AttachmentPlus_Extend_XenForo_ControllerPublic_Member->actionMember()
#2 /home/axel/public_html/forum/library/XenForo/FrontController.php(351): bdMedal_Extend_ControllerPublic_Member->actionMember()
#3 /home/axel/public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/axel/public_html/forum/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(192) "http://mainecoon.nl/forum/members/estherbvk.13966/?card=1&&_xfRequestUri=%2Fforum%2F&_xfNoRedirect=1&_xfToken=13966%2C1490865904%2Cc3948e0b039423146c6fad3255356d8e0633868d&_xfResponseType=json"
  ["_GET"] => array(5) {
    ["card"] => string(1) "1"
    ["_xfRequestUri"] => string(7) "/forum/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(57) "13966,1490865904,c3948e0b039423146c6fad3255356d8e0633868d"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Error on upgrade (newest version)

Code:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate column name 'atp_show_downloads' - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Sunka, 2 minutes ago
Stack Trace
#0 /home/nginx/domains/pijanitvor.com/public/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/nginx/domains/pijanitvor.com/public/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/nginx/domains/pijanitvor.com/public/library/phc/AttachmentPlus/Install.php(78): Zend_Db_Adapter_Abstract->query('\r\n             ...')
#3 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/AddOn.php(214): phc_AttachmentPlus_Install::Install(Array, Array, Object(SimpleXMLElement))
#4 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/AddOn.php(169): XenForo_Model_AddOn->installAddOnXml(Object(SimpleXMLElement), 'phc_AttachmentP...')
#5 /home/nginx/domains/pijanitvor.com/public/library/XenForo/ControllerAdmin/AddOn.php(237): XenForo_Model_AddOn->installAddOnXmlFromFile('/tmp/php2A4xgZ', 'phc_AttachmentP...')
#6 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(351): XenForo_ControllerAdmin_AddOn->actionUpgrade()
#7 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/nginx/domains/pijanitvor.com/public/admin.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(71) "https://www.pijanitvor.com/admin.php?add-ons/phc_AttachmentPlus/upgrade"
  ["_GET"] => array(1) {
   ["add-ons/phc_AttachmentPlus/upgrade"] => string(0) ""
  }
  ["_POST"] => array(3) {
   ["server_file"] => string(0) ""
   ["_xfConfirm"] => string(1) "1"
   ["_xfToken"] => string(8) "********"
  }
}
 
I think I have the same error message with the patch version:
Code:
Server Error Log
Error Info
ErrorException: Undefined index: atp_show_downloads - library/phc/AttachmentPlus/Model/ATPModel.php:442
Generated By: EstherBvK, 54 minutes ago
Stack Trace
#0 /home/axel/public_html/forum/library/phc/AttachmentPlus/Model/ATPModel.php(442): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/axel/publ...', 442, Array)
#1 /home/axel/public_html/forum/library/phc/AttachmentPlus/Extend/XenForo/ControllerPublic/Member.php(13): phc_AttachmentPlus_Model_ATPModel->canViewUserAttachments(Array)
#2 /home/axel/public_html/forum/library/bdMedal/Extend/ControllerPublic/Member.php(7): phc_AttachmentPlus_Extend_XenForo_ControllerPublic_Member->actionMember()
#3 /home/axel/public_html/forum/library/XenForo/FrontController.php(351): bdMedal_Extend_ControllerPublic_Member->actionMember()
#4 /home/axel/public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/axel/public_html/forum/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(50) "http://mainecoon.nl/forum/members/sneeuwkat.13090/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
No Problem! Just leave everything so;)

I have seen in your forum. In the ACP is everything so far ok!
The Add-On works now perfect ;)
 
Last edited:
Top Bottom