sfu-dhil / mvm

GNU General Public License v2.0
0 stars 3 forks source link

Error editing person records #135

Closed ubermichael closed 3 years ago

ubermichael commented 3 years ago

Describe the bug As reported by @angelawachowich: I’m generally having problems making changes to certain People entries on the database (specifically changes to Birth Date/ Death Dates and Descriptions). For example, when I try to change Honour Mary Blandford’s Death Date to 1802, I get the following message:

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dhil.lib.sfu.ca/mvm/person/261/edit
  2. Save the form without making any changes.

Expected behavior Server error.

Screenshots 2021-09-07T10:55:20-07:00 174.7.183.0 GET https://dhil.lib.sfu.ca/mvm/person/261/edit https://dhil.lib.sfu.ca/mvm/person/261/edit 500 - TypeError Argument 1 passed to Nines\MediaBundle\Entity\Link::setUrl() must be of the type string, null given, called in /var/www/mvm/releases/101/vendor/ubermichael/nines/MediaBundle/Form/Mapper/LinkableMapper.php on line 73 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0

Additional context Add any other context about the problem here.

ubermichael commented 3 years ago

Fixed with a composer update.