I have created a custom module called ‘EXPEN_Expenses’ and would like to print PDF’s from it. I’ve already added my module to the PDF template drop down.
Since my module did not have the ‘view.detail.php’ file I copied it across from AOS_Quotes and changed it to reference my custom module.
However, when I try to load the detail view I get this error: ‘There was an error processing your request, please try again at a later time.’
I have attached the log of when I try to load the detail view.
I have also found another topic that suggested to turn of Ajax, but this just loads a blank page.
After searching some more topics I found another suggestion and created a new ‘view.detail.php’ file and have put this in there:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.detail.php');
class EXPEN_ExpensesViewDetail extends ViewDetail {
require_once('modules/AOS_PDF_Templates/formLetter.php');
formLetter::DVPopupHtml('EXPEN_Expenses');
But I still get the same error.
Any ideas where I might be going wrong?