Open ayyilmaz opened 10 months ago
Anything in the Flarum Logs?
@ayyilmaz Execute the following command in the folder of your flarum installaition:
php flarum boringavatars:generate
It worked for me. I checked the code and then found this command.
I think this command should be executed automatically or there should be at least one button in the admin area to execute it. Would that be a solution or am I misunderstanding something @imorland ?
When enabling the extension the avatars for all users are generated automatically. @ayyilmaz I just noticed that you don't have something like blomstra/horizon
installed, which as far as I understand is required because it used the redis queue.
So there is a problem somewhere. Because the avatars for users who didn't have one were never generated. I had to generate them manually with this command. If I also change the type to a different avatar, the avatars of the users are not regenerated.
However, I no longer use this extension as I have no use for it.
@maisen20 Okay strange, in my environment your described cases worked as expected.
When enabling the extension the avatars for all users are generated automatically. @ayyilmaz I just noticed that you don't have something like
blomstra/horizon
installed, which as far as I understand is required because it used the redis queue.
Yes I use redis queue,
Thank you very much @maisen20 , your command solved my problem. You are genius :D
@ayyilmaz so you've been waiting for a solution since January, since your initial post here?
Well, I just checked in the code how/when the images are created and then came very quickly to this command. But apparently the extension is supposed to do this on its own, but in some cases it doesn't do that. Also, in my case, no new avatars are generated after changing the avatar type.
And during my quick check of the code, I didn't see how the extension knows which avatars were generated and which were uploaded by the user. If you change the avatar type, an avatar uploaded by the user should not be overwritten.
For these reasons, I did not pursue this extension any further, as it was not so important to me.
But I'm glad I could help. However, this may not completely solve your problems if it does not generate the avatars automatically. Then this is more of a current workaround.
@ayyilmaz so you've been waiting for a solution since January, since your initial post here?
Well, I just checked in the code how/when the images are created and then came very quickly to this command. But apparently the extension is supposed to do this on its own, but in some cases it doesn't do that. Also, in my case, no new avatars are generated after changing the avatar type.
And during my quick check of the code, I didn't see how the extension knows which avatars were generated and which were uploaded by the user. If you change the avatar type, an avatar uploaded by the user should not be overwritten.
For these reasons, I did not pursue this extension any further, as it was not so important to me.
But I'm glad I could help. However, this may not completely solve your problems if it does not generate the avatars automatically. Then this is more of a current workaround.
I had stopped looking for solutions when I don't solve at that time. You write comment under the issue and I get notifications, so I tried your solutions. My coding skill is not enough for detect this :D
Thank you very much again.
Avatars does not shown at users list or discussions. I have a few users. There is no error on console.
PHP flarum info output