Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
64 stars 33 forks source link

admin panel throwing error while editing project with socials added #4759

Open divine-comedian opened 2 months ago

divine-comedian commented 2 months ago

"When you update the socials in the frontend side then go to the admin and edit a project an error is thrown"

divine-comedian commented 1 month ago

@CarlosQ96 still needs time to investigate

kkatusic commented 1 month ago

@WhyldWanderer please can you find time try again to add social link end edit project insdie adminJS? thx ; cc @CarlosQ96

WhyldWanderer commented 1 month ago

I have tested and Im still receiving this error when trying to edit a project in the AdminBro when they have social media links attached to their project. image

Im unsure how to get more information about the error when it comes up. @kkatusic

Currently, any project that has added social media links to their profile is not editable for me in the AdminBro.

kkatusic commented 1 month ago

@WhyldWanderer can you provide me one project, I checked few and seems to ok on my side, thx

WhyldWanderer commented 1 month ago

Sure! It happens for me anytime that project has social media links on their project page: image

such as these projects: https://giveth.io/project/the-giveth-community-of-makers https://giveth.io/project/defend-roman-storm https://giveth.io/project/skatehive-skateboarding-community https://giveth.io/project/soildao-steward-platform

If the project has no social media accounts attached, it works perfectly fine with no errors.

kkatusic commented 1 month ago

@WhyldWanderer I checked project that you provided inside AdminJS and didn't see any errors, also asked @CarlosQ96 to check and same on his side, no errors. I will ask you now to clear you cache or try in incognito/private browser window or another browser to check does error persist on your side. If errors occur again we can have a call and I can check on your screen. Thx

divine-comedian commented 2 weeks ago

@WhyldWanderer were you able to re-test this issue?

CarlosQ96 commented 1 week ago

I was able to reproduce the issue. Seems to be a index error. Ill check out why the admin tries to reinsert same records of socials. It's posible a custom component or relationship is being loaded to memory when it shouldn't.