Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Creating a receipt does nothing #4

Closed
Adventurousdonut opened this issue Aug 8, 2022 · 4 comments
Closed

BUG: Creating a receipt does nothing #4

Adventurousdonut opened this issue Aug 8, 2022 · 4 comments

Comments

@Adventurousdonut
Copy link

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
Copy link
Owner

mikygee commented Aug 8, 2022

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
Copy link
Owner

mikygee commented Aug 8, 2022

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
Copy link
Author

Hey,

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

@mikygee
Copy link
Owner

mikygee commented Aug 13, 2022

I close this issue here, I have opened this one
Darkjeff#83

@mikygee mikygee closed this as completed Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants