Page 1 of 1

Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 7:36 am
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

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 11:27 am
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.

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 11:40 am
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

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 11:42 am
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.

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 11:53 am
by stevenf
This is on server in file

function outputAttachmentIdHolder(value, id) {
$('#attachment-holder-' + id).append('<input type="hidden" name="attachment-ids[]" value="' + value + '">');
}

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 12:00 pm
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.

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 12:03 pm
by stevenf
Yes, I got this after typing function in console.

VM434:1 Uncaught ReferenceError: outputAttachmentIdHolder is not defined

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 12:04 pm
by mkoch227
Ok clear the CloudFlare cache for that JS file, as CloudFlare is caching the old version.

Re: Cannot upload attachment from admin

Posted: Wed Jul 27, 2016 1:34 pm
by stevenf
Didn't helped yet.

Re: Cannot upload attachment from admin

Posted: Thu Jul 28, 2016 6:50 am
by stevenf
Still don't work.