GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.35k stars 419 forks source link

[Bug]: Unable to Add Featured Image #1810

Open kernja opened 6 days ago

kernja commented 6 days ago

Operating system

Windows 11

Publii version

0.46.2 (16968)

Post editor

None

Bug description

It is not possible to add featured images to a post or page if the /input/media/posts folder does not exist. After selecting a photo, the progress spinner will loop endlessly.

If a /input/media/posts folder does not exist, one should be created automatically by Publii. The empty /input/media/posts folder was likely not created when cloning the Publii project from a GitHub repository.

Steps to reproduce

  1. In Windows Explorer, delete the /input/media/posts folder so that only /input/media exists.
  2. In Publii, try adding a featured image to a post or page.
  3. Progress spinner spins endlessly.

Steps to manually remediate

  1. In Windows Explorer, create an empty /posts folder in /input/media
  2. In Publii, try adding a featured image to a post or page
  3. Featured image gets added

Relevant log output

No logs, but was able to identify problem and solution with steps created above.