News:

Support the VirtueMart project and become a member

Main Menu

Double error/system messages

Started by MelvinDistudios, November 19, 2014, 10:36:55 AM

Previous topic - Next topic

MelvinDistudios

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.

AH

For all system messages or just a specific one?
Regards
A

Joomla 4.4.5
php 8.1

MelvinDistudios

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MelvinDistudios

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?

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

andrielipaz

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....

AH

As far as I can tell this behaviour will change in the next release of VM
Regards
A

Joomla 4.4.5
php 8.1