Access Denied when creating PDF

Hello
I’m running Linux Mint 22.1
SuiteCRM 8.8.0 with php8.2

I was able to assigned roles and groups to people, and they were able to view records within the group.

I have a user admin - all records are assigned to this user

user: staff

Both are in a group called “Front End”

User Staff roles for PDF Template are: Enable, List and View are set as Group

However, when selecting print as PDF from Contact. It appeared but said Access Denied upon clicking on it.

I had the same thing for Accounts and Contacts: with Enable, Edit & List & View are set as Group. And the user Staff was able to view and edit.

Could you tell me what I did wrong?

You need to set access ENABLED and then export to GROUP.

Hello. I did have it Enabled. I just set Export to Group.
However, it still gives the same problem.

Hey, Can you send a screenshot of the logs when you try Exporting pls

This is the PDF Template Role - Access Enabled with Export, View and List set as Group

This is the users with the same roles

This is the group with all the users. My username is nvu with admin access

This is the PDF Template with assigned to user nvu

When user go to print as PDF
Print as PDF

After clicking it said Access Denied.

I have same setting for Accounts and Contacts where are those records assigned to user nvu and users Staff and Team were able to view, and modified.

This is the suitecrm.log in suitecrm/logs/legacy

nothing displayed on error.log on apache2

Fri Feb 21 2025 at 15:27:51 [3036][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 15:37:48 [3408][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 15:41:37 [3434][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 15:46:16 [3779][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 15:48:18 [3434][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 15:59:32 [3904][45b089ba-44cd-5e4f-27ac-6703f1c352d7][FATAL] Exception handling in /var/www/html/suitecrm/public/legacy/include/MVC/Controller/SugarController.php:399
Fri Feb 21 2025 at 15:59:32 [3904][45b089ba-44cd-5e4f-27ac-6703f1c352d7][FATAL] Exception in Controller: There is no action by that name: record
Fri Feb 21 2025 at 16:01:19 [3902][45b089ba-44cd-5e4f-27ac-6703f1c352d7][FATAL] Exception handling in /var/www/html/suitecrm/public/legacy/include/MVC/Controller/SugarController.php:399
Fri Feb 21 2025 at 16:01:19 [3902][45b089ba-44cd-5e4f-27ac-6703f1c352d7][FATAL] Exception in Controller: There is no action by that name: record
Fri Feb 21 2025 at 16:28:13 [3902][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 16:30:22 [5288][1][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 16:31:59 [5288][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 16:34:42 [5198][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):
Fri Feb 21 2025 at 16:40:44 [5228][73ec9132-48a6-6fbf-a326-6703f168b93b][FATAL] SugarPHPMailer encountered an error: Invalid address: (to):

Can u check if in prod.log you have this error "
[2025-02-21 19:16:48] php.WARNING: Warning: Undefined array key 6 {“exception”:“[object] (ErrorException(code: 0): Warning: Undefined array key 6 at /bitnami/suitecrm/core/modules/Contacts/Statistics/ContactLastTouchPoint.php:140)”} [ ]
" because i tried in my Machine in the same version and have this error.

(post deleted by author)

Not sure at what point this applies to an Admin Account

Maybe you can do one test:

Change PHP to 8.1 and re-check the issue.

Ok, thats an interesting test, could fix it but let me try on another instance, this one is a Production one xD

haha yeah test it on the dev instance. Also remember that v8.8 supports PHP 8.3.

1 Like

I looked up in prod.log but didn’t see any error for today. There were some yesterday.

[2025-02-20 17:07:58] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: “There is currently no session available.” at HttpKernel.php line 83 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\BadRequestHttpException(code: 0): There is currently no session available. at /var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php:83, Symfony\Component\HttpFoundation\Exception\SessionNotFoundException(code: 0): There is currently no session available. at /var/www/html/suitecrm/vendor/symfony/http-foundation/RequestStack.php:107)”}