Skip to content

Conversation

@tacruc
Copy link
Collaborator

@tacruc tacruc commented Jan 20, 2020

Including allready PR #241

Signed-off-by: Arne Hamann <kontakt+github@arne.email>
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
@tacruc
Copy link
Collaborator Author

tacruc commented Jan 23, 2020

If you change Photos in your could, the next cron job throws the errors discribed in #247.
They should be gone with this PR.

after installing i get following Error Message in Nextcloud:


[cron] Error: Error: Call to a member function getUserFolder() on null at <<closure>>

0. /var/www/nextcloud/lib/public/BackgroundJob/Job.php line 79
   OCA\Maps\BackgroundJob\UpdatePhotoByFileJob->run({fileId: 2531470,userId: "larsNC"})
1. /var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php line 48
   OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
2. /var/www/nextcloud/cron.php line 125
   OCP\BackgroundJob\QueuedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2020-01-19T06:45:10+00:00

and

[PHP] Error: Undefined property: OCA\Maps\BackgroundJob\UpdatePhotoByFileJob::$root at /var/www/nextcloud/apps/maps/lib/BackgroundJob/UpdatePhotoByFileJob.php#43

at 2020-01-19T06:30:02+00:00

i`m on Nextcloud 18.0.0, Ubuntu Server and PHP7.3-fpm with Nginx .

@Happyfeet01
Copy link

I have manually changed the files. It works, Cronjob and Maps. Also the Map loads faster.

@e-alfred
Copy link

Can confirm, after applying the changes of this PR Cron works again.

@jancborchardt jancborchardt merged commit 96aacd1 into master Jan 27, 2020
@jancborchardt jancborchardt deleted the fixed-updatePhotoByFileJob branch January 27, 2020 05:18
@jancborchardt
Copy link
Member

Thanks for testing @Happyfeet01 @e-alfred! :) Would you like to be added to the Nextcloud Maps team here on Github?

@Happyfeet01
Copy link

Thanks for testing @Happyfeet01 @e-alfred! :) Would you like to be added to the Nextcloud Maps team here on Github?

Would be really nice, but I must learning coding.. :-)

@jancborchardt
Copy link
Member

@Happyfeet01 reviewing pull requests is just as important. :)

@Happyfeet01
Copy link

Sure I do it :-)

@e-alfred
Copy link

You can add me as well to this repository.

@guillebot
Copy link

Can confirm, after applying the changes of this PR Cron works again.

Me too. Thanks guys.

@e-alfred
Copy link

This is a serious bug, so it would be good to have a new official release now on the app store so the fix is pushed to all installations out there.

@tacruc
Copy link
Collaborator Author

tacruc commented Feb 14, 2020

Its planed, see #254

@andrewdunndev
Copy link

It looks like if we wait for #254 it could be a while. This needs a release quickly as it's broken everyone's installs who uses this app. This is a "Featured" app now, breaking the entire instances background processing should be an immediate an urgent fix.

@e-alfred
Copy link

Well, if #217 is left out (optional anyways) then only a minor fix (#281) and a cosmetic issue (#253) remains which could be merged rather easily.

@e-alfred e-alfred mentioned this pull request Feb 14, 2020
@guillebot
Copy link

guillebot commented Feb 14, 2020 via email

@lftsy
Copy link

lftsy commented Mar 22, 2020

Thank you for the fix, I confirm it is now working. Best Regards. You can close this ticket or there is something else to do ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants