Attachmetnts Don't Show After Mods Install
Moderator: mkoch227
Attachmetnts Don't Show After Mods Install
I recently Added Mods for HESK Version 2.6.4 to my HESK Version 2.6.8. After doing so you cannot add attachments. It is not that I get an error but that they don't show up after submitted. Here are some things I have noticed looking into the problem.
1. The attachments get put in the attachemnts folder.
2. I don't see any new attachments being put in the database under hesk_attachments.
3. All the attachments shown in the attachments folder seem to be named incorrectly or not in the correct format according to the database.
4. The ones in the database show up as ticketid_filename
5. The saved files in attachments folder only have a name.
Can someone explain to me what I have done wrong to break it with the mod. Thanks
1. The attachments get put in the attachemnts folder.
2. I don't see any new attachments being put in the database under hesk_attachments.
3. All the attachments shown in the attachments folder seem to be named incorrectly or not in the correct format according to the database.
4. The ones in the database show up as ticketid_filename
5. The saved files in attachments folder only have a name.
Can someone explain to me what I have done wrong to break it with the mod. Thanks
Re: Attachmetnts Don't Show After Mods Install
The file names should either be a random string or the actual attachment name that was uploaded (I haven't looked at the upload file logic in a bit).esmith wrote:All the attachments shown in the attachments folder seem to be named incorrectly or not in the correct format according to the database.
Check out the hesk_temp_attachments folder. Do you see anything in there? If you're using the drag-and-drop file uploader (it has an "Add File" button across the entire box, unlike regular HESK), the attachments should go into temp_attachments until you create the ticket / KB article.esmith wrote:2. I don't see any new attachments being put in the database under hesk_attachments.
Also, check your web browser's console when trying to upload an attachment (typically accessible via "Inspect Element" in Chrome/FF) and see if any errors appear when trying to upload. Also enabling debug mode in HESK can help at times as well.
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
Thank you for the quick resposne. Here are the answers.
1. Yes I do see all the files located in the hesk_temp_attacments database table. Yes there is an Add File button across the bottom of the whole box. It gives me the option to Drag files or click Add file button. I have the ticket created already I am specificly trying to reply to a ticket and add an attachment. I have also tried adding a attachement with a new ticket submition as well.
2. Using Chrome I do get an error. This comes up as soon as I upload the file.
POST http://intranet.sbsu.com/hesk/internal- ... chment.php dropzone.min.js:1
500 (Internal Server Error)
c.uploadFiles @ dropzone.min.js:1
c.processFiles @ dropzone.min.js:1
c.processFile @ dropzone.min.js:1
c.processQueue @ dropzone.min.js:1
(anonymous function) @ dropzone.min.js:1
I have already enabled debug mode but didn't get any additional info uppon doing so.
1. Yes I do see all the files located in the hesk_temp_attacments database table. Yes there is an Add File button across the bottom of the whole box. It gives me the option to Drag files or click Add file button. I have the ticket created already I am specificly trying to reply to a ticket and add an attachment. I have also tried adding a attachement with a new ticket submition as well.
2. Using Chrome I do get an error. This comes up as soon as I upload the file.
POST http://intranet.sbsu.com/hesk/internal- ... chment.php dropzone.min.js:1
500 (Internal Server Error)
c.uploadFiles @ dropzone.min.js:1
c.processFiles @ dropzone.min.js:1
c.processFile @ dropzone.min.js:1
c.processQueue @ dropzone.min.js:1
(anonymous function) @ dropzone.min.js:1
I have already enabled debug mode but didn't get any additional info uppon doing so.
Re: Attachmetnts Don't Show After Mods Install
It looks something is happening when trying to upload. If you go to "View Message Log" under tools, is anything logged?esmith wrote:500 (Internal Server Error)
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
No I don't show anything in the logs but I am getting similar error on that log page. This is the error there.
POST http://intranet.sbsu.com/hesk/internal- ... ssage-log/ 500 (Internal Server Error) jquery-1.10.2.min.js:6
send @ jquery-1.10.2.min.js:6
ajax @ jquery-1.10.2.min.js:6
searchLogs @ view-message-log.js:26
(anonymous function) @ view-message-log.js:3
c @ jquery-1.10.2.min.js:4
fireWith @ jquery-1.10.2.min.js:4
ready @ jquery-1.10.2.min.js:4
q @ jquery-1.10.2.min.js:4
POST http://intranet.sbsu.com/hesk/internal- ... ssage-log/ 500 (Internal Server Error) jquery-1.10.2.min.js:6
send @ jquery-1.10.2.min.js:6
ajax @ jquery-1.10.2.min.js:6
searchLogs @ view-message-log.js:26
(anonymous function) @ view-message-log.js:3
c @ jquery-1.10.2.min.js:4
fireWith @ jquery-1.10.2.min.js:4
ready @ jquery-1.10.2.min.js:4
q @ jquery-1.10.2.min.js:4
Re: Attachmetnts Don't Show After Mods Install
This is what I get from my apache error log when I upload an attachement.
PHP Fatal error: Call to undefined function http_respone-code() in /srv/www/htdocs/hesk/internal-api/ticket/upload-attachment.php on line 21, referer: https://intranet.sbsu.com/hesk/admin/ad ... resh=84063
PHP Fatal error: Call to undefined function http_respone-code() in /srv/www/htdocs/hesk/internal-api/ticket/upload-attachment.php on line 21, referer: https://intranet.sbsu.com/hesk/admin/ad ... resh=84063
Re: Attachmetnts Don't Show After Mods Install
It looks like your upload-attachment.php file may have been unintentionally modified (since "http_response_code" was somehow changed to "http_respone-code"). Download this version (right-click and select "save target as...") and save it to your /internal-api/ticket folder as "upload-attachment.php". Then try again
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
I am getting the same result....
Re: Attachmetnts Don't Show After Mods Install
What version of PHP is your server running?
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
Ah... it looks like http_response_code() was introduced in PHP 5.4. Are you able to update your PHP installation by chance? If not I can try and get a quick hotfix out for you in a little bit.
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
Unfortunatley ours is limited to the OES version we have and they haven't come out with a version that has PHP 5.4 on it. A hot fix would be great. In the mean time do any of the earlier MOD versions work with php 5.3? If so I can downgrade untill we either upgrade or your hotfix comes out. Thanks for the help again!
Re: Attachmetnts Don't Show After Mods Install
You can force the attachment component to use the "legacy" attachment mode (similar to how HESK handles attachments). Open inc/view_attachment_functions.inc.php and file the following around line 307:
change that so it looks like this:
Code: Select all
uploadMultiple: false
Code: Select all
uploadMultiple: false,
forceFallback: true
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Attachmetnts Don't Show After Mods Install
That worked perfectly!