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

Avatars does not shown #5

Open
ayyilmaz opened this issue Jan 28, 2024 · 9 comments
Open

Avatars does not shown #5

ayyilmaz opened this issue Jan 28, 2024 · 9 comments

Comments

@ayyilmaz
Copy link

Avatars does not shown at users list or discussions. I have a few users. There is no error on console.

image

image

image

PHP flarum info output

Flarum core: 1.8.5
PHP version: 8.2.15
MySQL version: 10.6.16-MariaDB-1:10.6.16+maria~ubu2004
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imagick, imap, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, pspell, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache
+--------------------------------------+---------+--------+
| Flarum Extensions                    |         |        |
+--------------------------------------+---------+--------+
| ID                                   | Version | Commit |
+--------------------------------------+---------+--------+
| flarum-flags                         | v1.8.0  |        |
| flarum-tags                          | v1.8.0  |        |
| flarum-approval                      | v1.8.1  |        |
| flarum-suspend                       | v1.8.1  |        |
| flarum-mentions                      | v1.8.3  |        |
| flarum-subscriptions                 | v1.8.0  |        |
| afrux-forum-widgets-core             | v0.1.7  |        |
| fof-user-directory                   | 1.3.3   |        |
| fof-follow-tags                      | 1.2.2   |        |
| fof-pages                            | 1.0.8   |        |
| fof-oauth                            | 1.6.6   |        |
| fof-impersonate                      | 1.1.1   |        |
| fof-byobu                            | 1.3.5   |        |
| flarum-sticky                        | v1.8.0  |        |
| v17development-user-badges           | v1.1.0  |        |
| v17development-seo                   | v1.8.0  |        |
| sycho-profile-cover                  | v1.3.5  |        |
| michaelbelgium-discussion-views      | v7.2.1  |        |
| justoverclock-welcomebox             | 2.0.2   |        |
| justoverclock-last-registered-users  | 0.1.5   |        |
| justoverclock-feedback               | 0.1.9   |        |
| ianm-synopsis                        | 1.3.2   |        |
| ianm-syndication                     | 1.3.4   |        |
| ianm-log-viewer                      | 0.1.1   |        |
| ianm-level-ranks                     | 1.1.1   |        |
| ianm-html-head                       | 1.2.3   |        |
| ianm-follow-users                    | 1.4.4   |        |
| ianm-boring-avatars                  | 1.0.0   |        |
| fof-user-bio                         | 1.3.2   |        |
| fof-upload                           | 1.5.4   |        |
| fof-subscribed                       | 1.1.4   |        |
| fof-split                            | 1.1.1   |        |
| fof-socialprofile                    | 1.1.6   |        |
| fof-sitemap                          | 2.2.1   |        |
| fof-share-social                     | 1.1.3   |        |
| fof-recaptcha                        | 1.3.2   |        |
| fof-profile-image-crop               | 1.1.6   |        |
| fof-polls                            | 2.1.2   |        |
| fof-nightmode                        | 1.5.3   |        |
| fof-moderator-notes                  | 1.2.2   |        |
| fof-merge-discussions                | 1.4.1   |        |
| fof-masquerade                       | 2.1.4   |        |
| fof-links                            | 1.2.2   |        |
| fof-ignore-users                     | 1.2.1   |        |
| fof-formatting                       | 1.0.3   |        |
| fof-filter                           | 1.1.3   |        |
| fof-drafts                           | 1.2.10  |        |
| fof-disposable-emails                | 1.0.0   |        |
| fof-discussion-language              | 1.3.5   |        |
| fof-cookie-consent                   | 1.1.2   |        |
| fof-bbcode-details                   | 1.1.2   |        |
| fof-anti-spam                        | 1.1.2   |        |
| flarum-statistics                    | v1.8.0  |        |
| flarum-markdown                      | v1.8.0  |        |
| flarum-lock                          | v1.8.0  |        |
| flarum-likes                         | v1.8.0  |        |
| flarum-lang-turkish                  | 1.25.0  |        |
| flarum-extension-manager             | v1.0.1  |        |
| flarum-emoji                         | v1.8.0  |        |
| flarum-bbcode                        | v1.8.0  |        |
| dem13n-discussion-cards              | 0.3.8   |        |
| davwheat-session-keepalive           | 1.1.0   |        |
| datlechin-posted-on                  | v0.2.1  |        |
| datlechin-link-preview               | v1.4.0  |        |
| datlechin-discussion-count           | v0.1.0  |        |
| datlechin-copy-links                 | v1.0.1  |        |
| clarkwinkelmann-shadow-ban           | 1.1.0   |        |
| clarkwinkelmann-post-bookmarks       | 1.0.0   |        |
| clarkwinkelmann-mailing              | 1.1.0   |        |
| clarkwinkelmann-group-list           | 1.0.0   |        |
| clarkwinkelmann-discussion-bookmarks | 2.0.1   |        |
| clarkwinkelmann-author-change        | 1.0.3   |        |
| blomstra-mark-unread                 | 0.2.0   |        |
| askvortsov-moderator-warnings        | v0.6.3  |        |
| afrux-top-posters-widget             | v0.1.4  |        |
| afrux-online-users-widget            | v0.1.6  |        |
| afrux-news-widget                    | v0.1.1  |        |
| afrux-forum-stats-widget             | v0.1.1  |        |
| acpl-mobile-tab                      | 1.4.1   |        |
+--------------------------------------+---------+--------+
Base URL: https://domain.com
Installation path: /home/user/web/domain.com/public_html
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: Not active
Mail driver: smtp
Debug mode: off
@DavideIadeluca
Copy link

Anything in the Flarum Logs?

@ayyilmaz
Copy link
Author

ayyilmaz commented Jan 29, 2024

Anything in the Flarum Logs?

@DavideIadeluca there is no log for yesterday,

You can test it from this link also
Link

but api link shows avatar

api-link

@maisen20
Copy link

maisen20 commented Apr 25, 2024

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

@DavideIadeluca
Copy link

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.

@maisen20
Copy link

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.

@DavideIadeluca
Copy link

@maisen20 Okay strange, in my environment your described cases worked as expected.

@ayyilmaz
Copy link
Author

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

@maisen20
Copy link

@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
Copy link
Author

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

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

No branches or pull requests

3 participants