Jump to content

Support Manager Not Importing/fetching Attachments


eXtremeSHOK

Recommended Posts

Blesta 3.5.1

Support Manager 2.9.1

 

Sales Department is set to import/fetch emails from IMAP, which it is doing. 

 

Currently none of the attachments are imported/fetched. Only the message body is.

 

WHMCS will import the email and its attachments.

 

In the example below, its a payment notification.. without the attachments (PDF) the email/ticket is completely useless.

 

post-10819-0-44585700-1437478779_thumb.p

Link to comment
Share on other sites

They are writable, does the support manager use a different directory ?

 

You should have some directories within your "uploads" directory as defined in your screenshot, including:

  • 1/
  • 1/support_manager_files/
  • system/

All of these should be writable, and the support_manager_files directory should be writable by your web server, cron user, and your email server username if mail is being piped in. 

Link to comment
Share on other sites

The uploads/1/support_manager_files directory is not being created.

 

I suggest the module should try re-creating this directory if it does not exist.

 

A better error message would also be helpful, eg. The file could not be written to directory /uploads/1/support_manager_files

Link to comment
Share on other sites

@licensecart .. maybe when its sorted it still doesn't work ;-P

 

Invoice logo, geoip etc all working correctly before. Only support manager had issues.

 

When did you sort the uploads folder after you imported or before, and when did you add the geoip and invoice logo?

Link to comment
Share on other sites

The uploads/1/support_manager_files directory is not being created.

 

I suggest the module should try re-creating this directory if it does not exist.

 

A better error message would also be helpful, eg. The file could not be written to directory /uploads/1/support_manager_files

 

I agree that it should attempt to create the directory again, if it does not exist, when attempting to write an attachment to disk. I've added CORE-1753 to address that.

 

Regarding the error message, I'm not so sure. While including the directory path would be beneficial to admins, displaying such an error to clients would leak the server path to them which could be considered a security issue.

Link to comment
Share on other sites

Maybe adding it to the log or only if the user is the super admin

 

Thanks for the help and quick response.

 

@licensecart , the dirs and permissions are created, latest blesta files are extracted and copied, the dirs and permissions are checked/set, blesta installer is run, invoice logo was upload, geoip was enabled, support manager was enabled.. support manager failed to allow files to upload.

Link to comment
Share on other sites

... Oooh, so that's why that wasn't working... I'd been wondering why the attachments directory wasn't working, because I'd tried to give it different locations and it just wouldn't take. Now it makes sense because I was unaware I'd need to manually create the 1/support_manager_files directory.

 

I've rectified the issue on my server.

Link to comment
Share on other sites

Now it makes sense because I was unaware I'd need to manually create the 1/support_manager_files directory.

 

You shouldn't have to create the directory manually. The directory was attempted to have been created automatically once before, but may not have been writable at that time, which accounts for why it didn't exist. The task Paul added would simply attempt to create the directory before writing attachments to it if the directory does not already exist. In either case, if the directory is not writable, an error would still be encountered and the attachments would not be added.

Link to comment
Share on other sites

You shouldn't have to create the directory manually. The directory was attempted to have been created automatically once before, but may not have been writable at that time, which accounts for why it didn't exist. The task Paul added would simply attempt to create the directory before writing attachments to it if the directory does not already exist. In either case, if the directory is not writable, an error would still be encountered and the attachments would not be added.

 

Ah.

 

Well... sometimes things just happen, when it comes to creating new directories and stuff. Obviously, issues like this shouldn't happen but if it requires me to create the directories to help make it work... that's fine by me. Hopefully when this is updated, you'll be able to add an error message saying it wasn't able to create the directories for whatever reason. I'd dearly love to have more helpful error messages like this so I can correct the issue and let it try again in creating the directories itself.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...