PDF Template modify sample error

Hi

I am trying to modify a PDF template sample file, eg. samples/smpl_Invoice_Sample.php

After the change is saved I cannot create or edit PDF templates, just an empty screen comes.

The Apache error log shows:

“[Tue Oct 22 14:34:28 2013] [error] [client 127.0.0.1] PHP Fatal error: Class ‘smpl_Invoice_Sample.php~’ not found in /var/www/euspv/modules/AOS_PDF_Templates/views/view.edit.php on line 29, referer: http://localhost/euspv/index.php?module=AOS_PDF_Templates&action=index

Regards
Pedro

Hi berriop,

Which changes did you make? Can you attach the original file and your modified version?

Thanks,

Will.

It happens with any change you make, for example I just changed the table width from 100% to 80% on smpl_Invoice_Sample.php

<table style="width: 80%; font-family: ....

berriop,

From the error message it appears SuiteCRM is trying to load the backup file after your edit: smpl_Invoice_Sample.php~

Remove it and it should be ok.

1 Like

Solved :slight_smile: Yes, it was the backup file.

(Auto-backup off on editor settings)

Thanks!