PDF template create

Version 7.11.8

Sugar Version 6.5.25 (version de construction 344)

I get this message when trying create a new pdf template

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

any idea ??

same thing when I try to modify an existing template

I have the same issue.
Some body can help ??
Trying to create a template :
Fatal error : Uncaught Error: Class name must be a valid object or a string in /modules/AOS_PDF_Templates/views/view.edit.php:104 Stack trace: #0 /…/modules/AOS_PDF_Templates/views/view.edit.php(31): AOS_PDF_TemplatesViewEdit->setFields() #1 /…/include/MVC/View/SugarView.php(226): AOS_PDF_TemplatesViewEdit->display() #2/…/include/MVC/Controller/SugarController.php(435): SugarView->process() #3 /…/include/MVC/Controller/SugarController.php(375): SugarController->processView() #4 /…/include/MVC/SugarApplication.php(113): SugarController->execute() #5/…/index.php(52): SugarApplication->execute() #6 {main} thrown in //…/modules/AOS_PDF_Templates/views/view.edit.php on line 104

Version 7.11.13

Sugar Version 6.5.25 (Build 344)

Does this workaround solve your problem?

1 Like

Yes it does. Working perfectly fine.

@nitishpandey I know it solves the problem for you, I am asking if it also solves the problem for @DamRom and @dahmanib :slight_smile:

By the way, to anyone coming into this thread - I think the real solution to this problem is to ensure you have the mbstring PHP extension installed and enabled in your PHP.

It is a requirement for SuiteCRM, and is used in many other places.

I tried. No change at all.

How to check that t he mbstring PHP extension installed and enabled ?

You can figure it out with php -m (using the cli) or by creating a phpinfo(); file.

I confirm the mbstring PHP extension is installed and enabled ! :frowning:

Any other idea ?

How did you check this?

Two ways. First with the webhoster tool
then with a phpinfo file as suggested. to be sure.

Where I am trying to get at is: did you serve the phpinfo through the web server, or through CLI? These are two different brands of PHP, and people often confuse the two.

The correct way to check is either

  1. phpinfo file, accessed through web server
    OR
  2. Admin / Diagnostics / phpinfo - from here you can see your effective PHP modules, and confirm your php.ini path, etc.