Cannot upload attachment from admin

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Cannot upload attachment from admin

Post by stevenf »

Hello,

after upgrading to version 2.6.3. I cannot anymore upload attachment from admin. Can somebody give some advice? Also to note, on another server, same mode version, everything works fine.

Is this somehow server related? But that would be strange as did work with 2.5.5. version of mods.

Also, this is what I got in console

Blocked loading mixed active content "http://www.alarmanlage-eimsig.de/unters ... chment.php"
https://ajax.cloudflare.com/cdn-cgi/nex ... are.min.js line 4 > eval line 1 > eval
Line 1
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Cannot upload attachment from admin

Post by mkoch227 »

2.6.0 added support for drag-and-drop file attachments, which uses AJAX to upload the files. It sounds like you're accessing your helpdesk via https://, but your HESK settings have the helpdesk URL set to http://. If you are accessing your helpdesk via https, make sure that your helpdesk URL in your settings is also set to https.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Re: Cannot upload attachment from admin

Post by stevenf »

Hello again,

thank you for replying. That works, but now after I put attachment, submit button become blank and I cannot send reply.

In console i see this error:

ReferenceError: outputAttachmentIdHolder is not defined
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Cannot upload attachment from admin

Post by mkoch227 »

stevenf wrote:ReferenceError: outputAttachmentIdHolder is not defined
Make sure that you have the latest of modsForHesk-javascript.js. You should have a function called "outputAttachmentIdHolder" at line 258. If you don't, I recommend re-copying all of the Mods for HESK files, as it sounds like you may have missed one or two somehow.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Re: Cannot upload attachment from admin

Post by stevenf »

This is on server in file

function outputAttachmentIdHolder(value, id) {
$('#attachment-holder-' + id).append('<input type="hidden" name="attachment-ids[]" value="' + value + '">');
}
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Cannot upload attachment from admin

Post by mkoch227 »

That should be good then. If you're using CloudFlare, try clearing the CloudFlare cache for the JavaScript as well; it might be caching up the old version. You can also try opening your console and type in "outputAttachmentIdHolder" and see if either a function is returned, or if you get back "undefined". If you get "undefined" then you need to clear the cache.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Re: Cannot upload attachment from admin

Post by stevenf »

Yes, I got this after typing function in console.

VM434:1 Uncaught ReferenceError: outputAttachmentIdHolder is not defined
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Cannot upload attachment from admin

Post by mkoch227 »

Ok clear the CloudFlare cache for that JS file, as CloudFlare is caching the old version.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Re: Cannot upload attachment from admin

Post by stevenf »

Didn't helped yet.
Last edited by stevenf on Thu Jul 28, 2016 6:50 am, edited 1 time in total.
stevenf
Posts: 24
Joined: Wed Jun 15, 2016 9:37 am

Re: Cannot upload attachment from admin

Post by stevenf »

Still don't work.
Post Reply