Error when trying to create a PDF Template

HI,

New to Suite CRM, I am getting the below error when trying to create a PDF Template. Is it possible for anyone to assist in solving this error?

Fatal error: Uncaught Error: Class name must be a valid object or a string in /home/ehportal/public_html/crm/modules/AOS_PDF_Templates/views/view.edit.php:105 Stack trace: #0 /home/ehportal/public_html/crm/modules/AOS_PDF_Templates/views/view.edit.php(32): AOS_PDF_TemplatesViewEdit->setFields() #1 /home/ehportal/public_html/crm/include/MVC/View/SugarView.php(211): AOS_PDF_TemplatesViewEdit->display() #2 /home/ehportal/public_html/crm/include/MVC/Controller/SugarController.php(435): SugarView->process() #3 /home/ehportal/public_html/crm/include/MVC/Controller/SugarController.php(375): SugarController->processView() #4 /home/ehportal/public_html/crm/include/MVC/SugarApplication.php(113): SugarController->execute() #5 /home/ehportal/public_html/crm/index.php(52): SugarApplication->execute() #6 {main} thrown in /home/ehportal/public_html/crm/modules/AOS_PDF_Templates/views/view.edit.php on line 105

Please see line 105 in the view.edit.php

$relate_module = new $relate_module_name();

Thank you in advance.

Kind Regards

Hi, welcome.

What is your version of SuiteCRM?

And PHP?

Hi

Thank you for your response.

I am using SuiteCRM Version: 7.10.12
Sugar Version 6.5.25 (Build 344)

PHP version: php7.3.3

Thanks

Can you please tell me which module you are creating the Template for, and which variable is actually causing the problem?

I think it is some variable from a related module. If you can try removing a few variables, see if it works, until you figure out exactly which one is breaking the template.

I have exactly same error with suitecrm version 7.11.3, php 7.2.15, Apache2 2.4.29, serveur Ubuntu 18.04.1

All work correcty until a few days ago.

I have already created template for Invoices and Quotes.

If I would like edit these, I have also blank page. But if I edit fields one per one, all work correctly.

Thanks for your help

Same error is there fix ?

Version 7.11.6

Sugar Version 6.5.25 (Build 344)

Fatal error: Uncaught Error: Class name must be a valid object or a string in /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/modules/AOS_PDF_Templates/views/view.edit.php:103 Stack trace: #0 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/modules/AOS_PDF_Templates/views/view.edit.php(27): AOS_PDF_TemplatesViewEdit->setFields() #1 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/include/MVC/View/SugarView.php(226): AOS_PDF_TemplatesViewEdit->display() #2 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/include/MVC/Controller/SugarController.php(435): SugarView->process() #3 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/include/MVC/Controller/SugarController.php(375): SugarController->processView() #4 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/include/MVC/SugarApplication.php(113): SugarController->execute() #5 /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/index.php(52): SugarApplication->execute() #6 {mai in /home/clients/c04e971e73295380f107cb85fa890da2/web/crm.ndlab.fr/modules/AOS_PDF_Templates/views/view.edit.php on line 103

Anyone here to help on this ?

Thanks,

Hi,

Unfortunately no. I did a reinstall of the crm. Dropped to version 7.10.18. No issues since.

Kind Regards

Is there an open Issue for this on Github? Which one?

If there isn’t, it’s never going to be fixed…