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: Cannot Assign Member to Group #6807

Closed
bja2u opened this issue Jan 6, 2024 · 7 comments
Closed

Bug: Cannot Assign Member to Group #6807

bja2u opened this issue Jan 6, 2024 · 7 comments

Comments

@bja2u
Copy link

bja2u commented Jan 6, 2024

Description

When going to a member profile and selecting "Assign New Group" application does not show list of groups available; displays as "No results found".

  • ChurchCRM version: 5.4.3
  • PHP version is the server running: 8.2
  • DB Server and Version are you running: MySQL (dreamhost)

Steps To Reproduce

  1. Go to member profile
  2. Click on "assign new group"
  3. select dropdown for group
  4. See error "No results Found"

Expected behavior

Listing of available groups to assign

Screenshots and/or logs

Screenshot 2024-01-06 085549

Debugging Steps

 _PHP Fatal error:  Uncaught Error: Call to a member function setUser() on null in /home/ChurchCRM/model/ChurchCRM/Base/User.php:3609
Stack trace:
#0 /home/ChurchCRM/model/ChurchCRM/User.php(35): ChurchCRM\model\ChurchCRM\Base\User->getPerson()
#1 /home/ChurchCRM/Authentication/AuthenticationProviders/LocalAuthentication.php(180): ChurchCRM\model\ChurchCRM\User->getName()_

Desktop (please complete the following information):

  • OS: [e.g. iOS] windows
  • Browser [e.g. chrome, safari] chrome
  • Version [e.g. 22] 120
@bja2u bja2u added the bug label Jan 6, 2024
@DAcodedBEAT
Copy link
Contributor

I was unable to reproduce this on the latest code on the master branch.

@bja2u
Copy link
Author

bja2u commented Jan 12, 2024

I don't get the error on a new install, when I restore from backup and then the message appears to upgrade DB, and then when I log back in once restored I cannot populate group and see no results.

@DAcodedBEAT
Copy link
Contributor

@bja2u this sounds like an issue with the data in your database then. Can you look at your database and see the person which your user_usr record is associated with? Does this value line up with a person_per record?

@bja2u
Copy link
Author

bja2u commented Jan 15, 2024

yes mu user_usr and all the users assigned in the DB line up with a personper record. I downgraded back to 5.1.1 (last version used prior to upgrading) and I don't have this issue.

@MrClever
Copy link
Collaborator

MrClever commented Jan 15, 2024

Please review the rollback/restore from back instructions on our wiki here: https://github.com/ChurchCRM/CRM/wiki/Rollback#restoring-a-broken-database-from-backup

Specifically step 2 which states: "Restore the database over the existing one. This is ONLY possible if you are restoring a database backup from the SAME version of ChurchCRM."

In other words, don't restore a database and the use a different application version. Restotre the database, install the SAME application version, then attempt the application upgrade.

@bja2u
Copy link
Author

bja2u commented Jan 15, 2024

Yes I still had my backup of my db from 5.1.1 and I reinstalled churchcrm from that version as well.

@bja2u
Copy link
Author

bja2u commented Jan 19, 2024

YES YES YES!!! Issue resolved with 5.5.0 new release! Tested all functionality I mostly use and found no issues. Thank you!!!!

@bja2u bja2u closed this as completed Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants