hi,
I've been noticing this ever since I've installed Drigg 1.20, but it was on my lower priorities, so I didn't report immediately.
Basically, if you try to do something wrong (e.g. submit a URL that already exists, or something like that) , The Error messages above the screen will often appear twice! Like this:
Story's URL: The URL has already been submitted!
Story's URL: The URL has already been submitted!
(but in the usual error "red box")
I have recently installed jquery update module, but in the /misc folder I use the renamed jquery1.2.1 file that comes with the Extra Voting Forms (I'm not sure if it has anything to do with it
Comments
Comment #1
mercmobily commentedHi,
I can't reproduce this. I frankly have no idea why this would be happening.
I am asking Sicjoy, who knows Javascript. However, I tend to think that this is a theme problem...
Merc.
Comment #2
drupalina commentedYou're right -- it does seem like a theme issue. This problem does not occur in Drigg_theme.
I'm changing this to "support request"
Does anyone know what is it in drigg that forces the theme to display the error message twice? and what is it in drigg_theme that corrects it and displays it only one?
If you point me at the exact lines in the theme, that would be great!
thanks
Comment #3
mercmobily commentedHi,
Anthony? Sicjoy? Mat? :-D
Merc.
P.S.
I am not being lazy. I gave it a go, but I really have no idea...
Comment #4
sikjoy commentedI'm unable to repeat the error. I tried your example of duplicate URLs, but only got one error message. Can you give me more details about the circumstances causing the double message?
--sicjoy
Comment #5
drupalina commentedHi sicjoy,
I don't know what exactly to include in the list of circumstances causing the double message.
My theme is based on Marinelli. I then added all the bits from drigg installation guide at drigg-code.org
I have jquery-update module installed (for my Lightbox to work) ....
Everything else in this theme works fine as if it was drigg_theme ... except for the double messages.
Would you like me to e-mail you the address of my live website with admin username and password??? And you could perhaps have a look...
or... Would you like me to paste my page.tpl or node.tpl here?
Comment #6
drupalina commentedhi sicjoy and merc,
The message now appears only once!
[i guess this is one of those jquery uncompatibility hickups]
Here's what I did: After fully installing the jquery-update module, I deleted the lines
AND I also deleted the files collapse-fix.js and compat-1.0.js from the /misc directory *BAD*
I think this is what what causing the hickup
I now pasted these 2 files back into the /misc folder (even though jquery-update module is installed, and those 2 line in the pagetpl are deleted), and it seems like those error messages are being displayed only once! *GOOD*
Very Weird... but it works
[I still have hickups with the way that similar Tags are being fetched from the database, but that's a different issue]
(quite frankly I still find those instructions in drigg-code.org relating to what to do when jquery-update module _is not_ installed ... and what to do when it _is_ actually installed, a bit confusing)
I'm not marking this as Fixed yet. Please check and let me know if I did something wrong. Or if there's a more correct procedure for when the jquery-update module is actually installed.
cheers
Comment #7
mercmobily commentedHi,
I get confused myself by the jquery and jquery-update issues :-D
Drupal 6 will fix all this... and we'll port it in the next few months.
If it works... it's all good. Marking as fixed!
Merc.
Comment #8
drupalina commentedha - ha ... I thought this was over, I thought my solution outlined in #6 had sorted it ... far from it! It had created a new set of problems:
Most notably the Extra Voting Forms (EVF) stopped working (I would press the buttons, the kurma number would dim out and then would return as the same number).
So the choice that I was left with was either to have a working EVF or to have error message display twice. For now I chose the first, and the issue of double error messages is still there!!!
This is my current configuration:
-- Jquery-update module is installed (because my Lightbox requires it)
-- the Jquery file in my /misc is the renamed jquery-1.2.1.pack.js file from EVF folder (because of this in Status Report it keeps telling me that my Jquery is not up to date, but I ignore that)
-- in my page.tpl I still have the following lines
--in my /misc folder I have deleted the collapse-fix.js and compat-1.0.js files
I can already hear you say "that's a weird and wrong combination" -- but that's what I have, in order to get my EVF working together with autocomplete and message-box resizing (while the double-error-message problem is still there)
Here's a hint: for some reason this issue of double messages does not appear in drigg_theme, which means that there is something in drigg_theme that is not mentioned in http://www.drigg-code.org/pages/download_and_install , which prevents it from displaying the error messages twice.
I attach my theme in case it helps.
From my Firebug I can see that it prints the message twice: once under "help" and one more time under "messages". But who knows where this is coming from?
Comment #9
mercmobily commentedComment #10
mercmobily commentedHi,
Sorry, unless this can be replicated, I will have to mark it as "won't fix" since it seems to be a theme-related issue.
Merc.