VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: MelvinDistudios on November 19, 2014, 10:36:55 AM

Title: Double error/system messages
Post by: MelvinDistudios on November 19, 2014, 10:36:55 AM
I get double error/system messages. This happens with nearly all system messages.
I looked on the forum and found an old thread of about two years ago, and tried applying it.
http://forum.virtuemart.net/index.php?topic=101761.0

But since the file described by one of the members is now changed this cannot be applied.
Currently on Joomla 3.3.3, VirtueMart 2.9.9.4.
Title: Re: Double error/system messages
Post by: AH on November 19, 2014, 12:23:30 PM
For all system messages or just a specific one?
Title: Re: Double error/system messages
Post by: MelvinDistudios on November 19, 2014, 14:25:19 PM
A few specific ones, as example "Please fill in an address first" when someone doesn't have a product added and is not logged in while visiting the shopping cart will appear twice,
And apart from that I also have a required shopper field. If you don't fill it in it will also appear twice.

I also have various other system messages which will appear just once. I don't know the reason for this to happen.
Title: Re: Double error/system messages
Post by: GJC Web Design on November 19, 2014, 17:43:20 PM
can only assume the code snippet that generates the message is looped thru twice..

in good old J2.5 you could manipulate the message que to prevent dupes etc -- sadly that is now against the j3 'philosophy'...

you need to find a specific lang var in the code and see why it would be triggered twice - or if it is triggered twice in 2 different places
Title: Re: Double error/system messages
Post by: MelvinDistudios on November 20, 2014, 09:07:41 AM
Where should I be able to find them? I really don't know where I'd have to look.
Sorry but I'm completely new to this. Is there a specific files where these lines are coming from?
Title: Re: Double error/system messages
Post by: GJC Web Design on November 20, 2014, 11:38:35 AM
of course not - they will be in what ever function that fails that then throws this error..

But this is really basic stuff .. work backwards from the message to find it's source
Title: Re: Double error/system messages
Post by: andrielipaz on March 30, 2015, 17:25:23 PM
I think is not a bug..
The value of COM_VIRTUEMART_CART_ENTER_ADDRESS_FIRST is called twice on view.html.php for shipment method and payment method because of this the message is duplicated...
In my case I changed the messages....
Title: Re: Double error/system messages
Post by: AH on March 30, 2015, 22:17:45 PM
As far as I can tell this behaviour will change in the next release of VM