blank page when creating PDF Template. Upgraded from sugarCRM CE

Recently I have upgrade from sugarCRM CE.

In the about:
Versión 7.1.4
Sugar Versión 6.5.18 (Build 1110)

When I create a PDF Template I get a blank page below the main menu.

The reapair and rebuild does not solve the problem.

I have no subversion system.

I think the file persmissions are OK.

In apache error log I get this:

[Tue Dec 02 20:17:43 2014] [error] [client 10.28.43.51] PHP Notice: Undefined index: type in /var/www/sugarcrm/modules/AOS_PDF_Templates/views/view.edit.php on line 91, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView
[Tue Dec 02 20:17:43 2014] [error] [client 10.28.43.51] PHP Notice: Undefined index: type in /var/www/sugarcrm/modules/AOS_PDF_Templates/views/view.edit.php on line 91, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView
[Tue Dec 02 20:17:43 2014] [error] [client 10.28.43.51] PHP Notice: Undefined index: UDIMA_UD_RegEntrada in /var/www/sugarcrm/modules/AOS_PDF_Templates/views/view.edit.php on line 87, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView
[Tue Dec 02 20:17:43 2014] [error] [client 10.28.43.51] PHP Fatal error: Class name must be a valid object or a string in /var/www/sugarcrm/modules/AOS_PDF_Templates/views/view.edit.php on line 88, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView
[Tue Dec 02 20:17:44 2014] [error] [client 10.28.43.51] PHP Notice: Undefined index: modlink in /var/www/sugarcrm/themes/Suite7/css/colourSelector.php on line 72, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView
[Tue Dec 02 20:17:44 2014] [error] [client 10.28.43.51] PHP Notice: Undefined index: custom in /var/www/sugarcrm/themes/Suite7/css/colourSelector.php on line 97, referer: https://crm_pruebas.udima/index.php?module=AOS_PDF_Templates&action=EditView&return_module=AOS_PDF_Templates&return_action=DetailView

Some idea what is happening.

go into the dropdown editor in admin and look for the dropdown ‘pdf_template_type_dom’, I am guessing you had a old version of aos so this may be wrong

look for quotes and invoices and delete them and re-add them using the key AOS_Quotes for Quotes and AOS_Invoices for Invoices, if they are not already like this

They are like this… I have removed and later I have added but the problem persists.

Previously to remove and add I saw differences in Spanish dropdown and English dropdown. In the english version there were an AOS_Contracts that was missing in the spanish version. After remove the AOS_Quotes and AOS_Invoices in the spanish version the AOS_Contracts has gone out.

I attach the captures previous the edition.

I am having the same white screen issue, upgraded from SugarCE to SuiteCRM, white page with error 500 in the dev console.

if I install it from scratch in a subfolder it works but I don’t have my data, I’m thinking there is something in the database that did not get a proper schema update.

Thoughts?

@jevans have you check you php error log?

@isaacmarco it looks like you may have a module ‘UDIMA_UD_RegEntrada’ which is not added itself to the beanlist, which PDF Templates cannot currently handle

potentially you could fix it by alter the line 86 in modules/AOS_PDF_Templates/views/view.edit.php by changing it from :-

                    if(isset($module_arr['module']) &&  $module_arr['module'] != '' && $module_arr['module'] != 'EmailAddress'){

to

                    if(isset($module_arr['module']) &&  $module_arr['module'] != '' && $module_arr['module'] != 'EmailAddress' && isset($beanList[$module_arr['module']])){

if not we will address this is the next release

Print to PDF Function spawns this error set:

error.log


[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: name in /PATH/html/data/SugarBean.php
on line 2048, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: name in /PATH/html/data/SugarBean.php
on line 2048, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: name in /PATH/html/data/SugarBean.php
on line 2048, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: name in /PATH/html/data/SugarBean.php
on line 2048, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 4416, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 4416, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 4416, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 4416, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 2355, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 2355, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 2355, referer: https://CRMPATH/index.php?action=ajaxui
[Wed Dec 03 10:50:34 2014] [error] [client MYCOMPUTER] PHP Notice:  Undefined index: type in /PATH/html/data/SugarBean.php
on line 2355, referer: https://CRMPATH/index.php?action=ajaxui

additionally in sugarcrm.log (unrelated)

Wed Dec  3 10:46:51 2014 [658460][ed69246b-65b5-c735-55cb-51e04d5fd318][FATAL] meetings for aos_contracts_meetings failed to load

Wed Dec  3 10:46:51 2014 [658460][ed69246b-65b5-c735-55cb-51e04d5fd318][FATAL] calls for aos_contracts_calls failed to load

Wed Dec  3 10:46:51 2014 [658460][ed69246b-65b5-c735-55cb-51e04d5fd318][FATAL] emails for emails_aos_contracts_rel failed to load

Wed Dec  3 10:46:51 2014 [658460][ed69246b-65b5-c735-55cb-51e04d5fd318][FATAL] aor_reports for aor_report_aor_fields failed to load

Wed Dec  3 10:46:51 2014 [658460][ed69246b-65b5-c735-55cb-51e04d5fd318][FATAL] aor_reports for aor_report_aor_conditions failed to load

nothing of note there, do you have any access to the system or is just a white screen?

at the /index.php?entryPoint=generatePdf page I receive an error 500 in console and a white screen

is there any debugging I can enable? I’m not super familiar with sugar’s back-end system.

ah ok, if you go into admin->system setting, at the bottom of the screen set the Log Level to ‘debug’

have you run a quick repair and rebuild?

It was simpler to start with a good install of SuiteCRM fresh, move the config.php and move the uploaods directory.

I also had to login with a local user and disable/reenabled LDAP, otherwise this seems more stable then the attempts to batch a botched upgrade.

@Matt

Your patch for the modules/AOS_PDF_Templates/views/view.edit.php works for me. Thank you very much.

I think the module UDIMA_UD_RegEntrada was made in Studio in a test site and later imported in the production site. I’m not sure if it’s possible to fix my module to be added itself to the beanlist or if it is OK with your patch. I’m would not like to have problems on the future…

Thank you.