PARINetwork / pari

Django/Wagtail based PARI webapp
http://ruralindiaonline.org
BSD 3-Clause "New" or "Revised" License
36 stars 11 forks source link

Internal server error on article #400

Open siddadel opened 5 years ago

siddadel commented 5 years ago
  1. An internal server error shows up when I try to access the following article on wagtail - ‘Even in the heat, there is some guilt if I drink the water…’. Below is a screen shot of the same.

  2. The live version on the website opens without any error message.

  3. The old version of this article accessible through revisions is editable. The revision on current version is not. Screen shot below.

Please, let me know why this happens :)

Screenshot 2019-06-03 at 11 17 03 Screenshot 2019-06-03 at 11 17 19 Screenshot 2019-06-03 at 11 03 16

charl3sj commented 5 years ago

Try deleting all those extra "amp;"s in the Youtube URL.

Screenshot 2019-06-18 at 10 29 03 PM

Seems to be a bug in Wagtail where the '&' in& gets escaped and generates extra amp;s while saving. Interestingly, this becomes a problem when an article is saved many times (in other words, many revisions) thereby causing the string length to increase and overshoot db column capacity.