Iām trying to add a custom record action following this tutorial:
Iām using the bitnami suitecrm image with suitecrm 8.5.1.
Iāve modified the files according to my needs, but in principle Iāve just changed the module and action name. Everything seems to work up until the moment when I select a Quote in the modal, then I get UI: Unexpected error when calling action Response:
Unfortunately, despite logging on debug level (I get all the other debug and info messages in public/legacy/suitecrm.log), there is no further info to be found in suitecrm.log or the apache error log.
Ivāe created the following files (please find them via the dropbox link):
/opt/bitnami/suitecrm/extensions/defaultExt/config/modules/Accounts/recordview/actions/create-pdf.php
/opt/bitnami/suitecrm/extensions/defaultExt/modules/Accounts/Process/Service/RecordActions/CreatePdfAction.php
/opt/bitnami/suitecrm/public/legacy/custom/Extension/modules/Accounts/Ext/Language/en_us.create_pdf.php
If you still have problems after the cache:clear, the way to get better messages is to go in .env file and change APP_ENV to dev.
Then, if everything starts crashing (usually itās a Doctrine fatal error), you need to run a composer install to get the dev packages.
After that it should all work again; and you can reproduce your error, and in the browser developer tools, network tab, you will find helpful stack traces in one of the grapql calls (you have to look around to find each one).
I think you just need to fix your logging code. If youāre not in legacy mode, you shouldnāt be looking for the LoggerManager, and much less if youāre looking for it under defaultExtā¦ itās a core file.
If youāre not in legacy mode, just use the āmodernā side of logging, as a randomly-selected example, copy what you find in this file.