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

Fatal error in commonobject.class.php (6.0.3) #7733

Closed
sbschumacher opened this issue Oct 29, 2017 · 5 comments
Closed

Fatal error in commonobject.class.php (6.0.3) #7733

sbschumacher opened this issue Oct 29, 2017 · 5 comments
Labels
Bug or PR need more information This bug or PR needs more information (answer to a question or more accurate description)

Comments

@sbschumacher
Copy link

Bug

Fatal error: Uncaught Error: Cannot access empty property in /[…]/core/class/commonobject.class.php:2673 Stack trace: #0 /[…]/core/class/html.form.class.php(5506): CommonObject->fetchObjectLinked() #1 /[…]/fourn/facture/card.php(2858): Form->showLinkedObjectBlock(Object(FactureFournisseur), '\n \t\t<dl clas...') #2 {main} thrown in /[…]/core/class/commonobject.class.php on line 2673

Expected and actual behavior

After upgrading from 6.0.2 to 6.0.3

Steps to reproduce the behavior

Supplier -> Settle purchase orders
Select and confirm several purchase orders

@eldy
Copy link
Member

eldy commented Nov 6, 2017

Can you provide more information on how to reproduce the pb.
When you say "Supplier -> Settle purchase orders". Which menu are you taking about ?

@eldy eldy added the Bug or PR need more information This bug or PR needs more information (answer to a question or more accurate description) label Nov 6, 2017
@sbschumacher
Copy link
Author

Hi eldy,

I will try to explain how to reproduce the error:

Please choose a supplier and create a new supplier order and then set this supplier order as "completely received".

Afterwards you can try to reproduce the bug:

  1. Open the Third party page of an supplier
  2. Click on "Supplier"
  3. Scroll down and click on the "Bill orders"-button
  4. Then choose one or more of the orders on the page "List of supplier orders - Products received" and click on "Generate invoice"
  5. On the "New invoice" page guess a "Ref. supplier" number and click on "Create draft"

Now you can already see the first error message below the "Linked files" section:
1

  1. Now you can validate the supplier invoice by clicking on "Validate" and then "Yes" in the pop-up window.

After clicking on "Yes" there is a "full page" error message:
2

The only way to proceed is the "go back"-button of the internet browser. Then the Supplier invoice page will be displayed, showing still the "validate invoice"-popup but already a valid reference number instead of "Draft". After closing this pop-up with a click on the "x" at the right corner, you can proceed as usual, despite of the error message, which is still present below the "Linkes files"-section.

@BebZ
Copy link

BebZ commented Nov 7, 2017

Bill orders of supplier is not a function of dolibarr core i guess since 6.0
"List of supplier orders - Products received" especially this one, may be an ATM module ?

@sbschumacher
Copy link
Author

/**
 * \file htdocs/fourn/commande/orderstoinvoice.php
 * \ingroup commande
 * \brief Page to invoice multiple supplier orders
 */

@atm-maxime
Copy link
Member

Too old version, please upgrade and reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug or PR need more information This bug or PR needs more information (answer to a question or more accurate description)
Projects
None yet
Development

No branches or pull requests

4 participants