marinafink / noshcuisine

Nosh Cuisine is a semester project by Marina Fink which includes an interactive website where users can create a profile, search for recipes and upload their own recipes.
1 stars 0 forks source link

Image missing in error message for add favorites in recipe detailview #29

Open marinafink opened 1 year ago

marinafink commented 1 year ago

Description: If a user wants to add a recipe to his favorites on a recipe detail page (recipe_detailview.php) while logged out, he gets an error message that this is only possible while logged in. On the page with the error message (add_favorite_detail.php), however, no image is displayed under the message as actually intended, but only the alt text.

Steps to Reproduce:

  1. Visit https://mars.iuk.hdm-stuttgart.de/~mf177/ueberuns.php (username: mf177, password: M5fFm67#ar)
  2. make sure that you are not logged in on the nosh cuisine website
  3. Click on the very first recipe of the index page and visit its recipe_detailview.php
  4. Try to add the recipe to your favorites by clicking on the orange heart next to the image slider (under star ratings)

Expected Result: After trying to add the recipe to favorites on recipe_detailview.php while logged out, an error message appears along with a picture of some food.

Actual Result: If you try to add a recipe to favorites on recipe_detailview.php while logged out, an error message appears. However, there is no image below the error message, only the alt text is displayed.

Image

Configuration:

marinafink commented 1 year ago

The problem was a wrong image source. This has been corrected and the image is now displayed.