Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Error when trying to create a PDF Template

Error when trying to create a PDF Template 1 month 2 weeks ago #80146

  • Mogbb
  • Mogbb's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
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
The administrator has disabled public write access.

Error when trying to create a PDF Template 1 month 2 weeks ago #80169

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9910
  • Thank you received: 1475
  • Karma: 350
Hi, welcome.

What is your version of SuiteCRM?

And PHP?

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Error when trying to create a PDF Template 1 month 2 weeks ago #80177

  • Mogbb
  • Mogbb's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
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
The administrator has disabled public write access.

Error when trying to create a PDF Template 1 month 1 week ago #80222

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9910
  • Thank you received: 1475
  • Karma: 350
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.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Error when trying to create a PDF Template 1 month 1 week ago #82087

  • lachinaj
  • lachinaj's Avatar
  • Offline
  • New Member
  • Posts: 10
  • Thank you received: 2
  • Karma: 1
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
The administrator has disabled public write access.
Time to create page: 0.045 seconds
Powered by Kunena Forum