HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
https://unit3d.dev
GNU Affero General Public License v3.0
1.93k stars 372 forks source link

[Bug] Wiki page and Wiki Categories page is blank #3987

Open Abhishekkataria16 opened 1 month ago

Abhishekkataria16 commented 1 month ago

UNIT3D Version

8.1.3

PHP & Platform

8.3.9 - Ubuntu 22.04.4 LTS x64

Laravel verion

11.5.0

Have you done this?

Expectation

Wikis page and Wiki Categories page to show something like pages or add option to add content in wiki and wiki categories

Description

Hi, I recently installed Unit3D on my server and but later while reviewing all the available options in unit3d site, i found out that there is no way to add content into Wiki page and into Wiki Categories page.

Please suggest what i should do to debug this issue or tell me the fix.

Thank you

Here are some screenshots :

image image

Stack trace & logs

No response

Upvote & Fund

Fund with Polar

Roardom commented 1 month ago

Looks to be caused by Laravel thinking an empty section is non-existent even if it exists (empty for loop):

https://github.com/laravel/framework/blob/75d7b47191beeaa3cb3b59eeb5a3142561a9cb29/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php#L137

https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/8665ce08483cc30badc5c879aff74bfd32dbf327/resources/views/layout/default.blade.php#L48

Easiest temporary workaround would be for you to append a /create to the url, which will bring you to the new wiki category page. Upon submitting the form to add a new category, the ui will appear on the main page to manage the wikis.

Abhishekkataria16 commented 1 month ago

Looks to be caused by Laravel thinking an empty section is non-existent even if it exists (empty for loop):

https://github.com/laravel/framework/blob/75d7b47191beeaa3cb3b59eeb5a3142561a9cb29/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php#L137

https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/8665ce08483cc30badc5c879aff74bfd32dbf327/resources/views/layout/default.blade.php#L48

Easiest temporary workaround would be for you to append a /create to the url, which will bring you to the new wiki category page. Upon submitting the form to add a new category, the ui will appear on the main page to manage the wikis.

Thanks, The solution worked!!

Roardom commented 1 month ago

Ideally the sidebar should still show if no wikis exist, so I'll reopen this until it's fixed.