When you submit a scoop you get error messages that display when you enter a duplicate URL or enter a title that is too short or too long, etc.

However, these messages do not display when you make these errors when editing a scoop.

For example, if you edit a scoop that has already been submitted and you accidentally make the title too short, the title will go red but no message displays telling you what the error is.

Comments

sikjoy’s picture

Assigned: Unassigned » sikjoy

Just to be clear, are you using 5.x-2.x-dev or 5.x-1.x-dev?

I checked the 5.x-1.x-dev version and error messages on the create scoop form are working properly. One important caveat, if you have not updated jQuery, it will not work. See http://www.drigg-code.org/pages/download_and_install section 3c for details.

--sicjoy

mercmobily’s picture

Hi,

Sicjoy, actually, I am getting this very problem in http://www.drigg.org ...

It only happens if you edit a story, and then have the description too short. The field becomes red, but the error at the top won't show up!

Merc.

sikjoy’s picture

I was able to duplicate this problem on a fresh Drigg installation. However, as soon as I upgraded jQuery using the jQuery Update module (5.x-2.x-dev), the problem was fixed.

mercmobily’s picture

Hi,

Which version of jquery has this problem?
This is happening on http://www.drigg.org ... is www.drigg.org not using the right version of jquery? Can you please check?

Merc.

sikjoy’s picture

Status: Active » Closed (fixed)

I have confirmed that installing the jquery update module ver. 5.x-2.x-dev fixes this problem. I have also confirmed that following section 3c of http://www.drigg-code.org/pages/download_and_install fixes this problem as well.

mercmobily’s picture

Hi,

Sicjoy, what version of jquery is installed by installing jquery_update 5.x-2-dev?

Also, how come the problem is not there with drigg-distr, and it's there in drigg.org and fsdaily.com?

Merc.

sikjoy’s picture

Status: Closed (fixed) » Fixed

Ultimately it was a javascript issue. The javascript was looking for a tag, <div class="help">, that was present when submitting a scoop, but absent when editing a scoop. It would try insert error messages immediately after this tag.

There just so happens to be another tag that is present in both cases, <form class="node-form">. I changed the javascript to insert error messages immediately before this tag. Since <div class="help"> is immediately followed by <form class="node-form">, the error messages show up in the same location on the page.

--sicjoy

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.