Having issue with grocery crud enterprise 3 version while updating old version to new

Hello @ondigit ,

Actually there is an error that can’t be displayed for some reason. Can you please try to display all errors and see if this will show it? If you still can’t show the error maybe to share with us the function with the setRelation that you use?

Regards
Johnny

We are using the simple setrelation function

$crud->setRelation(‘groupid’,‘tbluser_group’,‘name’,array(‘status’ => ‘1’));

we also tried with this

$crud->setRelation(‘groupid’,‘tbluser_group’,‘name’, [‘status’ => ‘1’])

but still having the same issue

I will check in my local. Till then can you please check if you have the same with:

$crud->setRelation(‘groupid’,‘tbluser_group’,‘name’);

So without the where statement?

Regards
Johnny

Even if we remove the status from array and use this

$crud->setRelation(‘groupid’,‘tbluser_group’,‘name’);

Then also it does not work can you please let us know

Hello @ondigit,

Unfortunately I can’t reproduce the issue. Can you please try to show the errors so we can see what error occurs into your end? What framework are you using? Maybe I can help you out with this. Seems that there is a fatal error somewhere. Also what PHP version are you using?

Regards
Johnny

Can you insert a new record from an admin screen? For example from phpPgAdmin? == yes, i already tried this by inserting record through admin and from admin the record gets inserted correctly.