Editor crashes: Call to a member function dbField() on null

Editor crashes: Call to a member function dbField() on null

rf1234rf1234 Posts: 2,991Questions: 87Answers: 421
edited April 2018 in Editor

A rather complex Editor instance that has worked for a long time suddenly crashes. I am not even aware of having made any changes. Unfortunately the message is so unspecific that I have no chance to find the problem myself.

This is what I get (running it locally with xampp, but same error is in www as well):

I use Editor 1.7.3

Error: Call to a member function dbField() on null in E:\xampp\htdocs\lgf\DataTables\php\Editor\Editor.php on line 1887

Call Stack

Time Memory Function Location

1 0.0018 513472 {main}( ) ...\actions.php:0
2 0.0841 5622664 tblContractCred( ) ...\actions.php:662
3 0.0950 6141440 DataTables\Editor->process( ) ...\tblContractCred.php:262
4 0.0950 6141912 DataTables\Editor->_process( ) ...\Editor.php:694
5 0.0957 6141864 DataTables\Editor->_prepJoin( ) ...\Editor.php:887

Is there any way to get more information on what field is null? I can't figure this out. debug sql doesn't work either. Can't see any SQL.

Answers

  • rf1234rf1234 Posts: 2,991Questions: 87Answers: 421

    ok found the problem; due to broken test data a session variable wasn't set. So the problem is fixed.

    But I would still have the question: Is there a way to get a more specific error message for this problem? I can see where Editor crashes but I have no idea why it happens in these cases. How can I identify the field that causes the problem?

  • rf1234rf1234 Posts: 2,991Questions: 87Answers: 421

    @allan , any idea?

This discussion has been closed.