mikygee / immobilier

module dolibarr estate rent
GNU General Public License v3.0
0 stars 1 forks source link

BUG: Creating a receipt does nothing #4

Closed Adventurousdonut closed 2 years ago

Adventurousdonut commented 2 years ago

grafik

After creating a new receipt and pressing "Create" once all the data has been put it in creates a blank page like shown above.

mikygee commented 2 years ago

The white page is probably because you don't display PHP errors. I have an error too. I don't remember what I did to create receipts, I think one field is messing up.

mikygee commented 2 years ago

Hello,

So in one case I'm able to create a receipt, it's when I have a thirdparty configured image

I should have found out quicker because the error message Fatal error: Uncaught Error: Call to a member function getNomUrl() on null in /.../htdocs/ultimateimmo/receipt/immoreceipt_card.php:992 Stack trace: #0 {main} thrown in /.../htdocs/ultimateimmo/receipt/immoreceipt_card.php on line 992 leads me to line 992 $morehtmlref .= '<br>' . $langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1, 'renter'); and there we do see the word thirdparty

Coming back to the error message we see that it complains about something being null

Probably a if statement should be added before this line.

Adventurousdonut commented 2 years ago

Hey,

Oh i didn't try that. Thanks for finding the bug!

mikygee commented 2 years ago

I close this issue here, I have opened this one https://github.com/Darkjeff/immobilier/issues/83