Giter Club home page Giter Club logo

Comments (9)

MrClever avatar MrClever commented on June 12, 2024 1

@MrClever I forgot to follow up, did you get to check if this is resolved in the master branch?

I haven't had a chance to check it yet. Will add this to my to-do list.

from crm.

DAcodedBEAT avatar DAcodedBEAT commented on June 12, 2024

Looks like the fix to this was merged in 5.4.3 (https://github.com/ChurchCRM/CRM/releases/tag/5.4.3) - if this looks good to you, feel free to close out this issue.

from crm.

MrClever avatar MrClever commented on June 12, 2024

After being punted back to the login screen a few times, I managed to coax the following error from 5.3.4 which is getting thrown by ChurchCRM/dto/Photo.php:83

Slim Application Error
The application could not run because of the following error:

Details

Type: TypeError
Code: 0
Message: DateTimeImmutable::sub(): Argument #1 ($interval) must be of type DateInterval, bool given
File: /path/to/ChurchCRM/ChurchCRM/dto/Photo.php
Line: 83
Trace

#0 /path/to/ChurchCRM/ChurchCRM/dto/Photo.php(83): DateTimeImmutable->sub(false)
#1 /path/to/ChurchCRM/ChurchCRM/dto/Photo.php(105): ChurchCRM\dto\Photo->shouldRefreshPhotoFile('/home1/grayneta...')
#2 /path/to/ChurchCRM/ChurchCRM/dto/Photo.php(28): ChurchCRM\dto\Photo->photoHunt()
#3 /path/to/ChurchCRM/ChurchCRM/model/ChurchCRM/Person.php(338): ChurchCRM\dto\Photo->__construct('Person', 1)
#4 /path/to/ChurchCRM/v2/templates/people/family-view.php(234): ChurchCRM\model\ChurchCRM\Person->getPhoto()
#5 /path/to/ChurchCRM/vendor/slim/php-view/src/PhpRenderer.php(215): include('/home1/grayneta...')
#6 /path/to/ChurchCRM/vendor/slim/php-view/src/PhpRenderer.php(183): Slim\Views\PhpRenderer->protectedIncludeScope('templates/peopl...', Array)
#7 /path/to/ChurchCRM/vendor/slim/php-view/src/PhpRenderer.php(152): Slim\Views\PhpRenderer->fetchTemplate('family-view.php', Array)
#8 /path/to/ChurchCRM/vendor/slim/php-view/src/PhpRenderer.php(49): Slim\Views\PhpRenderer->fetch('family-view.php', Array, true)
#9 /path/to/ChurchCRM/v2/routes/family.php(113): Slim\Views\PhpRenderer->render(Object(Laminas\Diactoros\Response), 'family-view.php', Array)
#10 /path/to/ChurchCRM/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): viewFamily(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response), Array)
#11 /path/to/ChurchCRM/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke('viewFamily', Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Diactoros\Response), Array)
#12 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle(Object(Laminas\Diactoros\ServerRequest))
#13 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle(Object(Laminas\Diactoros\ServerRequest))
#14 /path/to/ChurchCRM/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle(Object(Laminas\Diactoros\ServerRequest))
#15 /path/to/ChurchCRM/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run(Object(Laminas\Diactoros\ServerRequest))
#16 /path/to/ChurchCRM/ChurchCRM/Slim/Middleware/VersionMiddleware.php(14): Slim\Routing\RouteRunner->handle(Object(Laminas\Diactoros\ServerRequest))
#17 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(168): ChurchCRM\Slim\Middleware\VersionMiddleware->__invoke(Object(Laminas\Diactoros\ServerRequest), Object(Slim\Routing\RouteRunner))
#18 /path/to/ChurchCRM/ChurchCRM/Slim/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest))
#19 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(168): ChurchCRM\Slim\Middleware\AuthMiddleware->__invoke(Object(Laminas\Diactoros\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#20 /path/to/ChurchCRM/vendor/slim/slim/Slim/Middleware/BodyParsingMiddleware.php(64): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest))
#21 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\BodyParsingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#22 /path/to/ChurchCRM/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest))
#23 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#24 /path/to/ChurchCRM/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Laminas\Diactoros\ServerRequest))
#25 /path/to/ChurchCRM/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle(Object(Laminas\Diactoros\ServerRequest))
#26 /path/to/ChurchCRM/vendor/slim/slim/Slim/App.php(183): Slim\App->handle(Object(Laminas\Diactoros\ServerRequest))
#27 /path/to/ChurchCRM/v2/index.php(42): Slim\App->run()
#28 {main}

from crm.

MrClever avatar MrClever commented on June 12, 2024

Ok - looks like the code breaks when external/remote images are used (Google/Gravitar). So with this turned off, I now have rendered initials or a photo if one has been uploaded.

from crm.

jimmymarbles avatar jimmymarbles commented on June 12, 2024

image

Does the system need to be restarted in order for the images to reappear?

from crm.

MrClever avatar MrClever commented on June 12, 2024

Does the system need to be restarted in order for the images to reappear?

No - save the setting and then the images/initials will reappear.

from crm.

DAcodedBEAT avatar DAcodedBEAT commented on June 12, 2024

@MrClever I forgot to follow up, did you get to check if this is resolved in the master branch?

from crm.

github-actions avatar github-actions commented on June 12, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from crm.

MrClever avatar MrClever commented on June 12, 2024

Fixed in master

from crm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.