Some additional email issues with 8.9.1

After (finally) fixing my suitecrm I am having a number of new issues with 8.9.1.

My most immediate issue is that when I try to send email, my attachment upload does not work at all.

I can select a file, but when I press “Open” normally it should upload a file, but this does not happen (no error is reported).

Within my suitecrm.log file I see following errors (a lot of them, I see other people have this issue but it does not appear to be fatal in any way and likely not related to this ssue at all, when I try to select my template, it will choose it and apply to email content correctly):

Wed Dec 10 2025 at 11:14:31 [64144][50beb248-a414-03f1-dbb5-6474472762e3][ERROR] Unable to find relationship emails_email_templates
Wed Dec 10 2025 at 11:14:35 [52674][50beb248-a414-03f1-dbb5-6474472762e3][ERROR] Unable to find relationship projects_contacts_resources
Wed Dec 10 2025 at 11:14:35 [52674][50beb248-a414-03f1-dbb5-6474472762e3][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

also my php sessions folder includes this warnings (this also does not appear to be an issue, I am monitoring this folder non stop and it creates and deletes files regulary, files there are owned by www-data:www-data which is in my opinion correct:

[2025-12-10 11:14:58] php.WARNING: Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) {“exception”:“[object] (ErrorException(code: 0): Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) at /var/www/suitecrm/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:87)”}

Based on documentation with 8.9 there are different locations for uploaded documents

I am thinking that possibly location of email attachment is one of those directories, but I do not have this folders created anywhere on my system (I have /var/www/suitecrm**/public/legacy/upload**) .

It is working in the demo version.

Did you delete Language and metadata folders from your /custom/modules/Email?

  • Run QR&R
  • Run symfony clear cache

Hello,

the new email attachment feature will upload the attachments into the folder:

/uploads/documents/[YEAR]/[MONTH]

e.g.: /uploads/documents/2025/12
I do have the folder already, since I’m using the new attachment fields in this instance.
If you don’t use them yet, can you try to manually create some / all of the folder and see whether it’s working then?
The www-data user should be able to read/write.

uploads/documents/2025# ls -alh
total 16K
drwxr-sr-x 4 www-data www-data 4.0K Dec 11 02:04 .
drwxr-sr-x 3 www-data www-data 4.0K Nov 8 03:56 ..
drwxr-sr-x 2 www-data www-data 4.0K Nov 22 04:25 11
drwx–S— 2 www-data www-data 4.0K Dec 11 02:06 12

1 Like

As for the sessions: It’s “just” a warning from the garbage collector. It’s annoying but doesn’t influence a working system.
You can get rid of this but setting up your sessions:

1 Like

Yes, I have tried to delete this files too and nothing changes.

I did quick repair and cleared symfony cache, also nothing changed.

Simply, when I slect file to upload as attachment - nothing happens.

We are talking about /var/www/suitecrm/public/legacy path (just to be sure)?

Within this location I have my upload location where Documents module files are uploaded, but there is no directory “uploads”.

I have created this directory and subfolder documents to test, but nothing changes. Upload still does not work (and again, I am confused since there is no error anywhere).

Oh,

Really stupid issue. In my apache2 mod_rewrite was not enabled. Now everything works ok.

p.s. if you recall, because of my crashing suitecrm I moved everything to completely new ubuntu machine and I likely did not enable mod_rewrite (and apparently suitecrm does not check that before installation)

1 Like

Nope, that’s already the “new” path.
/var/www/suitecrm/uploads/documents

From the new 8.9 attachment / field types:

Ah, perfect - great that it works now :slight_smile:

1 Like