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

When trying to edit Super Admin Profile (Attempt to read property "emp_date" on null) #34

Closed
jvivas-rock opened this issue Nov 3, 2021 · 5 comments

Comments

@jvivas-rock
Copy link

That happens while I'm logged with Super Admin account and I just tried to edit the profile because photo is not working and while I press that option, that exception is happening

@yungifez
Copy link

yungifez commented Nov 3, 2021

Can you post a full screenshot of the error to know where exactly the error is coming from

@jvivas-rock
Copy link
Author

Can you post a full screenshot of the error to know where exactly the error is coming from

src: /resources/views/pages/support_team/users/edit.blade.php
image

@yungifez
Copy link

yungifez commented Nov 4, 2021

Ok I have found the problem which is not really a REAL WORLD problem

on seeding, some staff are added but associated staff records are not made with those staff

same case with students etc

but the code tries to look for those properties

Now there's no solution to this problem except to create another staff you'll test with instead of the default staff added during seeding

Try creating a new set of users and students that you'll perform your tests on instead of the seeded ones

you might also encounter problems like these when you try to batch fix students exam records and so on

@yungifez
Copy link

yungifez commented Nov 4, 2021

sorry for the late reply

@4jean
Copy link
Owner

4jean commented Dec 4, 2021

Ok I have found the problem which is not really a REAL WORLD problem

on seeding, some staff are added but associated staff records are not made with those staff

same case with students etc

but the code tries to look for those properties

Now there's no solution to this problem except to create another staff you'll test with instead of the default staff added during seeding

Try creating a new set of users and students that you'll perform your tests on instead of the seeded ones

you might also encounter problems like these when you try to batch fix students exam records and so on

that;s correct the seeders had partial data. just create a new user, however issue fixed in edit.blade.php 8f8d922

@4jean 4jean closed this as completed Dec 4, 2021
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

3 participants