sfu-dhil / wphp

Women's Print History Project database front end.
https://womensprinthistoryproject.com/
GNU General Public License v2.0
1 stars 8 forks source link

PDF Upload Function Bug #340

Closed kkatemoffatt closed 1 year ago

kkatemoffatt commented 1 year ago

What isn’t working as expected on the website?

We are unable to upload PDFs using the PDF button on the blog posts.

If you encountered an error message, please copy the relevant details or take a screenshot and paste it below.

2023-01-26T15:15:28-08:00 104.37.60.121 GET https://womensprinthistoryproject.com/blog/post/16/new_pdf https://womensprinthistoryproject.com/blog/post/16/new_pdf 500 - Symfony\Component\HttpFoundation\File\Exception\FileException Unable to create the "/var/www/wphp/releases/278/data/prod/pdf" directory. Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

What is the URL of the page where you encountered the bug?

https://womensprinthistoryproject.com/blog/post/16/new_pdf

What steps did you take before you encountered the bug?

  1. Click "Podcast" in top header while logged in
  2. Click "All Announcements" at the bottom of the drop-down menu
  3. Go to page 4 of results
  4. Scroll down to "The WPHP Monthly Mercury: Episode 1, 'Jane Austen Adjacent'" and click it
  5. Scroll to bottom of the blog post and click the "Add PDF" button
  6. Clicked browse and attached this PDF S1E1 Jane Austen Adjacent TEST PDF.pdf
  7. Type "Test" in the description field
  8. Type "Test" in the license field
  9. Hit "Create"

What browser, operating system, and device were you using when you encountered the error?

Firefox, Windows 10, laptop

Additional information

No response

andrew-gardener commented 1 year ago

Note: seems like a server file permission issue (works locally)

andrew-gardener commented 1 year ago

@kkatemoffatt you should now be able to upload pdfs again without the permission issue