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

Cat Avatar Generator usable for administrators only #10314

Closed
Tealk opened this issue May 24, 2021 · 19 comments · Fixed by friendica/friendica-addons#1129 or #10440
Closed

Cat Avatar Generator usable for administrators only #10314

Tealk opened this issue May 24, 2021 · 19 comments · Fixed by friendica/friendica-addons#1129 or #10440
Assignees
Milestone

Comments

@Tealk
Copy link

Tealk commented May 24, 2021

  • [ x ] I have searched open and closed issues for duplicates

Bug Description

User can not generate random cat, only as admin the function works. I have also tried it on another instance there I have the same problem.

Steps to Reproduce

  1. enable Cat Avatar Generator - 1.1
  2. got to Settings -> Addons -> Cat Profile Picture Settings
  3. click on random cat

Actual Result:

No error is displayed, not even in the console

Expected Result:

When you click on the button a new cat should appear

Platform Info

Friendica Version:

Friendica Source: 'Siberian Iris' 2021.04 - 1413

PHP version: 7.4.18

SQL version: 10.5.10-MariaDB-1:10.5.10+maria~buster

@nupplaphil
Copy link
Collaborator

fixed with friendica/friendica-addons#1129

@Tealk
Copy link
Author

Tealk commented May 29, 2021

when i apply the changes it looks like this and still does not work
image

@nupplaphil
Copy link
Collaborator

Mhmmm... I tried it with private mode and a new created user, I'll have another look

@nupplaphil nupplaphil reopened this May 30, 2021
@AlfredSK
Copy link

AlfredSK commented May 30, 2021

I checked it with 2021.06-rc. And it worked as expected.

Logged in as normal user (old test account)
Go to Addons
Open the Catavatar accordion
Click on Random Cat -> Cat changed to another cat
Click on Use this cat as profile pic -> Profile pic changed successfully to the new cat

The provided screenshot looks weird. Maybe the template isn't loaded correctly.

@Tealk Could you try to refresh your browser cache, please? Or simply do a Shift+Reload?

With Frio custom color theme:

image

@nupplaphil
Copy link
Collaborator

Maybe theme specific? What theme do you use?

@Tealk
Copy link
Author

Tealk commented May 30, 2021

I use Frio too

but i only use the cat avatar generator addon in version 2021.06-rc the instance is still on 2021.04
i thought that the add-ons can be updated independently

@MrPetovan
Copy link
Collaborator

As a rule the addon version should match the Friendica core version, we can't guarantee compatibility any other way (older addons or older core)

@nupplaphil
Copy link
Collaborator

@Tealk did it work with the cache cleanup? I'm still able to use it properly with a "normal" user and frio ..

@Tealk
Copy link
Author

Tealk commented May 30, 2021

also with cleared cache it doesn't work, but maybe it's like @MrPetovan says it's a problem because i'm still using version 2021.04 for the instance

@nupplaphil
Copy link
Collaborator

I see, so I'll close this issue again and please have a look after the upcoming 2021.06 release if the bug is still there and plz reopen this bug again in that case

@Tealk
Copy link
Author

Tealk commented Jun 6, 2021

have update to i have just updated to 2021.06-rc but changing the image still only works for administrators
also on the instant https://friendica.utzer.de it does not work

@AlfredSK
Copy link

AlfredSK commented Jun 6, 2021

I can only assume that this issue is some add-on interoperability error. I use catavatar on my nodes and it works as expected.

Maybe there is some hint/error in the browser console or in the Friendica log?

This is my list of add-ons:

advancedcontentfilter
blockbot
blockem
catavatar
fromapp
geocoordinates
ifttt
impressum
js_upload
langfilter
markdown
newmemberwidget
notifyall
nsfw
openstreetmap
phpmailer
showmore
startpage
superblock
tumblr
twitter
unicode_smilies
wppost

When there is no error in the logs and in the browser console you can try to disable the add-ons one by one to find the possibly problematic one.

@Tealk
Copy link
Author

Tealk commented Jun 6, 2021

i use these:
advancedcontentfilter, blockem, catavatar, cookienotice, diaspora, forumdirectory, fromapp, highlightjs, ifttt, impressum, infiniteimprobabilitydrive, js_upload, leistungsschutzrecht, morepokes, newmemberwidget, nsfw, openstreetmap, phpmailer, qcomment, securemail, showmore, startpage, superblock

@Tealk
Copy link
Author

Tealk commented Jun 6, 2021

Secure Mail is the problem.

@nupplaphil
Copy link
Collaborator

A great! Thanks for the hint!

@nupplaphil nupplaphil reopened this Jun 6, 2021
@nupplaphil
Copy link
Collaborator

Got the issue
grafik

If there's any mandatory field inside the whole addon settings, all other addons are blocked as well.
The root cause is that we use one form for the whole settings page, which causes this side effect

@AlfredSK
Copy link

A quick fix for the upcoming releases would be to make this field non-mandatory and to extend the description that the user must insert the pubkey there.

@nupplaphil
Copy link
Collaborator

nupplaphil commented Jun 27, 2021

I added the quick fix like @AlfredSK said, but I didn't had to add a description, because the mandatory field was a bug :D .. It wasn't intended by the code.

And I added a followup task for the next release: #10439

@Tealk
Copy link
Author

Tealk commented Jun 29, 2021

works great the current commit a44a9e7
thanks to all

@MrPetovan MrPetovan self-assigned this Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment