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

UI does not resemble interface of DEMO UI. #6795

Closed
bja2u opened this issue Dec 30, 2023 · 22 comments
Closed

UI does not resemble interface of DEMO UI. #6795

bja2u opened this issue Dec 30, 2023 · 22 comments
Labels
Milestone

Comments

@bja2u
Copy link

bja2u commented Dec 30, 2023

Description

I just noticed after updating my UI does not match whats shown in the DEMO and neither does some of the other features. It did when I first upgraded as I dropped all my tables, but when i restored my DB from backup the UI changed to the prior look I had installed. 5.1.1 although the version in the DB is still 5.4.1. How do i update the user interface to display latest dashboard and latest features.

  • ChurchCRM version: 5.4.1.
  • PHP version is the server running: 8.2
  • DB Server and Version are you running: Mysql

Steps To Reproduce

  1. New install of churchcrm
  2. Restore DB from Backup

Expected behavior

latest version of UI - Sunday School class group dashboard functionality to work; Deposit view on dashboard Homepage

Debugging Steps

No errors or warning messages after upgrade

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome
  • Version 120
@bja2u bja2u added the bug label Dec 30, 2023
@DawoudIO
Copy link
Contributor

can you share a screenshot

@bja2u bja2u changed the title UI does not resemble interface of GUI. UI does not resemble interface of DEMO UI. Dec 30, 2023
@bja2u
Copy link
Author

bja2u commented Dec 31, 2023

SundaySchool

When I look at the DEMO, the sunday school feature is working and I have data here that should be visible

@bja2u
Copy link
Author

bja2u commented Dec 31, 2023

Dashboard

On the main Dashboard in the demo there is a "Deposit" snapshot view present but I do not see it once i restored my database after upgrade

@bja2u
Copy link
Author

bja2u commented Dec 31, 2023

groupAssign

When I attempt to assign someone to a group it shows "No Results" , however i do have groups created

@bja2u
Copy link
Author

bja2u commented Dec 31, 2023

students
On students page it shows only 1 student like this versus other details and all students like the Demo

@DAcodedBEAT
Copy link
Contributor

Dashboard On the main Dashboard in the demo there is a "Deposit" snapshot view present but I do not see it once i restored my database after upgrade

@bja2u Can you try check that the bEnabledFinance System Setting is enabled and that you are either logging in as the admin user or have the finance flag set for the current user (usr_finance if you are looking in the db)

@DAcodedBEAT
Copy link
Contributor

groupAssign

When I attempt to assign someone to a group it shows "No Results" , however i do have groups created

This also looks related to the slim upgrade - I contributed this fix (e6c99c9) in #6796

@DAcodedBEAT
Copy link
Contributor

@bja2u Can you please upgrade and see if your issues are resolved?

@bja2u
Copy link
Author

bja2u commented Jan 3, 2024

Sure. I'll upgrade today and see if it works. Thanks

@bja2u
Copy link
Author

bja2u commented Jan 3, 2024

I attempted with the auto-upgrade and get the following errors. I will try with manual upgrade as well.
ERROR1
ERROR2

@bja2u
Copy link
Author

bja2u commented Jan 3, 2024

From Logs:

[2024-01-03T10:23:35.072199-06:00] slim-app.ERROR: Slim Application Error Type: TypeError Code: 0 Message: ChurchCRM\Slim\Request\SlimUtils::renderJSON(): Argument #2 ($obj) must be of type array, string given, called in /home/api/routes/system/system-upgrade.php on line 21 File: /home/ChurchCRM/Slim/SlimUtils.php Line: 29 Trace: #0 /home/api/routes/system/system-upgrade.php(21): ChurchCRM\Slim\Request\SlimUtils::renderJSON(Object(Laminas\Diactoros\Response), 'success') #1 /home/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Closure->{closure}(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response), Array) #2 /home/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response), Array) #3 /home/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle(Object(Laminas\Diactoros\ServerRequest)) #4 /home/Slim/Middleware/Request/Auth/BaseAuthRoleMiddleware.php(29): Slim\MiddlewareDispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #5 /home/vendor/slim/slim/Slim/MiddlewareDispatcher.php(168): ChurchCRM\Slim\Middleware\Request\Auth\BaseAuthRoleMiddleware->__invoke(Object(Laminas\Diactoros\ServerRequest), Object(Slim\MiddlewareDispatcher)) #6 /home/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest)) #7 /home/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #8 /home/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run(Object(Laminas\Diactoros\ServerRequest)) #9 /home/ChurchCRM/Slim/Middleware/VersionMiddleware.php(14): Slim\Routing\RouteRunner->handle(Object(Laminas\Diactoros\ServerRequest)) #10 /homevendor/slim/slim/Slim/MiddlewareDispatcher.php(168): ChurchCRM\Slim\Middleware\VersionMiddleware->__invoke(Object(Laminas\Diactoros\ServerRequest), Object(Slim\Routing\RouteRunner)) #11 /homeChurchCRM/Slim/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest)) #12 /home/vendor/slim/slim/Slim/MiddlewareDispatcher.php(168): ChurchCRM\Slim\Middleware\AuthMiddleware-

@DAcodedBEAT
Copy link
Contributor

I attempted with the auto-upgrade and get the following errors. I will try with manual upgrade as well.
ERROR1
ERROR2

Thanks for reporting this issue! While unrelated to the original ticket, the recently reported issue with updating was fixed in 5.4.3 (https://github.com/ChurchCRM/CRM/releases/tag/5.4.3)

@bja2u
Copy link
Author

bja2u commented Jan 4, 2024

Thanks, I was trying to upgrade to see if UI issue was resolved but couldn't confirm with the latest error. I will note to add a new bug for such cases going forward.

I will update to 5.4.3, but in 5.4.2 I am still seeing the blank screens versus the graphs for the Sunday school dashboard and classes.

@bja2u
Copy link
Author

bja2u commented Jan 4, 2024

I ran the bootstrapper and executed the SundaySchool Dashboard and Class; this is what was captured in the Logs:

[04-Jan-2024 09:36:06 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117
[04-Jan-2024 09:37:13 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117
[04-Jan-2024 12:49:33 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117
[04-Jan-2024 12:50:04 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117
[04-Jan-2024 13:29:40 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117

@bja2u
Copy link
Author

bja2u commented Jan 12, 2024

I did a new install in my dev environment and manually imported only the tables I use for the db directly in mysql; bypassing the need to run the restore and upgrading the db. By doing this I can see the deposit view and also some of the Sunday school features but the main dashboard graphs for the Sunday School do not populate.

@DAcodedBEAT
Copy link
Contributor

@bja2u Have you done any Debugging Steps yet for the Sunday School dashboard graphs?

Debugging Steps

ℹ️ If you need help debugging, please refer to the wiki for guidance: https://github.com/ChurchCRM/CRM/wiki/Logging-and-Diagnostics.

  • What has been done to debug the issue so far?
  • Have you looked at the browser's developer tools to see if an error is thrown / network request failed?
  • Are there any associated error logs on the backend that get emitted when you attempt to do this action?

@bja2u
Copy link
Author

bja2u commented Jan 16, 2024

Yes. It just shows a document 500 error in the developer tools from the browser. see attachments:
Screenshot 2024-01-14 210106

Screenshot 2024-01-15 202627

@bja2u
Copy link
Author

bja2u commented Jan 16, 2024

Logs:

PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}

thrown in /ChurchCRM/utils/MiscUtils.php on line 117
[15-Jan-2024 20:24:31 America/Chicago] PHP Fatal error: Uncaught Exception: unexpected error in /home/ChurchCRM/utils/MiscUtils.php:117
Stack trace:
#0 /home/ChurchCRM/utils/MiscUtils.php(78): ChurchCRM\Utils\MiscUtils::birthDate(NULL, '0', '0')
#1 /home/sundayschool/SundaySchoolClassView.php(239): ChurchCRM\Utils\MiscUtils::formatAge(0, 0, NULL)
#2 {main}
thrown in /home/ChurchCRM/utils/MiscUtils.php on line 117

@DAcodedBEAT
Copy link
Contributor

DAcodedBEAT commented Jan 16, 2024

ok, this looks like the same issue as reported earlier (reported with this comment, resolved in this PR #6806) . Be on the look out for release 5.5.0

@DAcodedBEAT DAcodedBEAT added this to the 5.5.0 milestone Jan 18, 2024
@DAcodedBEAT
Copy link
Contributor

@bja2u release 5.5.0 has been released! feel free to try that out https://github.com/ChurchCRM/CRM/releases/tag/5.5.0

@bja2u
Copy link
Author

bja2u commented Jan 19, 2024

Will try it now! What better to do when snowed in! :-)

@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!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants