Unable to generate invoice pdf since upgrade to 7.1.1

As the title states, I am unable to generate a pdf of an invoice since the upgrade. I get a 500 server error. Here are the last lines of the log after trying to generate a pdf from an invoice:

[Tue Apr 08 13:00:10.573826 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer: http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.611790 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/modules/Meetings/Ext/Vardefs//vardefs.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer: http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.611871 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1830, referer: http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.611897 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.633488 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/modules/SM_Products/Ext/Vardefs//vardefs.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.633573 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1830, referer: http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.633599 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.640015 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/modules/SM_Contracts/Ext/Vardefs//vardefs.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.640104 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1830, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.640130 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.641546 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/modules/SM_Quotes/Ext/Vardefs//vardefs.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.641621 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1830, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.641646 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.680369 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/modules/Prospects/Ext/Vardefs//vardefs.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.680452 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1830, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:10.680477 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1831, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:32.891491 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fopen(custom/application/Ext/TableDictionary//tabledictionary.ext.php): failed to open stream: Permission denied in /var/www/suitecrm/include/utils/sugar_file_utils.php on line 111, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:32.891588 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1865, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:32.891618 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm/ModuleInstall/ModuleInstaller.php on line 1866, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=Upgrade
[Tue Apr 08 13:00:36.069107 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Notice: Undefined index: modlink in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 70, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=repair
[Tue Apr 08 13:00:36.069192 2014] [:error] [pid 5864] [client xxx.xxx.xxx.xxx:1025] PHP Notice: Undefined index: custom in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 95, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=repair
[Tue Apr 08 13:01:05.168983 2014] [:error] [pid 5885] [client xxx.xxx.xxx.xxx:1027] PHP Notice: Undefined index: modlink in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 70, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=repair
[Tue Apr 08 13:01:05.169103 2014] [:error] [pid 5885] [client xxx.xxx.xxx.xxx:1027] PHP Notice: Undefined index: custom in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 95, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=repair
[Tue Apr 08 13:01:19.404626 2014] [:error] [pid 5618] [client xxx.xxx.xxx.xxx:1033] PHP Notice: Undefined index: modlink in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 70, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=index
[Tue Apr 08 13:01:19.404711 2014] [:error] [pid 5618] [client xxx.xxx.xxx.xxx:1033] PHP Notice: Undefined index: custom in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 95, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?module=Administration&action=index
[Tue Apr 08 13:01:26.708035 2014] [:error] [pid 5915] [client xxx.xxx.xxx.xxx:1031] PHP Notice: Undefined index: modlink in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 70, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?action=ajaxui
[Tue Apr 08 13:01:26.708137 2014] [:error] [pid 5915] [client xxx.xxx.xxx.xxx:1031] PHP Notice: Undefined index: custom in /var/www/suitecrm/themes/Suite7/css/colourSelector.php on line 95, referer:http://xxx.xxx.xxx.xxx/suitecrm/index.php?action=ajaxui

Anyone?

Hello…! Thanks for mentioning the problem but apparently there’s nobody confronted with this. Sadly, I’m with the same problem. Since upgrade to 7.1 (update to 7.1.1. didn’t solve it) I can’t create PDFs from my offers and quotes anymore - which is a bit annoying cause I would have to urgently.

So: help would be really awesome! :slight_smile:

Theribor, Your not alone I have just seen that I also not can create PDF’s anymore.

I don’t see any errors in the logs.

@Will can you help us ?

I see following errors
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (opportunity_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (contact_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (aos_product_category_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (contact_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (aos_product_category_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (contact_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (aos_product_category_id)
Tue Apr 15 15:03:09 2014 [8533][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (opportunity_id)

Hi guys,

There was an issue in 7.1 which had an extra file which was not required and broke generating PDF’s. This file should be removed when you upgrade to 7.1.1 - given you set the correct permissions.

Thanks,

Will.

Nice - not in my case but - Will solved the issue again. :slight_smile:

In fact: there was a problem after the update. And it did NOT appear in a new installation of 7.1.1 cause I made the comparision.
So just start the Repair-Tool (Admin/System) and the CRM makes itself work again. :slight_smile: Mea culpa, the solution couldn’t have been more obvious - so to say.

Greetings from Austria
Thomas

Upgraded not to 7.1.1
The PDF creation for Invoices works but not for Quotes, I see following in my logs:
Already done a Quick repair and Rebuild

Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean[AOS_Quotes].load_relationships, Loading relationship (opportunity_id).
Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (opportunity_id)
Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean[AOS_PDF_Templates].load_relationships, Loading relationship (assigned_user_id).
Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)
Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean[AOS_PDF_Templates].load_relationships, Loading relationship (assigned_user_id).
Tue Apr 15 15:56:44 2014 [8527][7026c0fd-c7d8-8786-997f-5090ef55979e][DEBUG] SugarBean.load_relationships, Error Loading relationship (assigned_user_id)

just to complete my thread: in my case there’s nothing wrong again after Quick Repair and Rebuild. Apparently everything works fine with my Offers and with my Quotes.

I had already run the quick repair in the admin section, and it is still not producing the pdf in invoices. What file was supposed to be removed with the upgrade to 7.1.1?

In my (!) case - I did not remove any file at all. Nothing.
I just let repair the CRM by itself and PDF-Export worked as used to.

if you are looking for what files should have been removed, check this out

Removed those two files and did the quick repair, and still getting a 500 internal server error when generating a pdf in invoices.