Author Topic: Double error/system messages  (Read 4456 times)

MelvinDistudios

  • Beginner
  • *
  • Posts: 12
Double error/system messages
« 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.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
Re: Double error/system messages
« Reply #1 on: November 19, 2014, 12:23:30 pm »
For all system messages or just a specific one?
Regards
A

Joomla 3.9.27
php 7.4

MelvinDistudios

  • Beginner
  • *
  • Posts: 12
Re: Double error/system messages
« Reply #2 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10354
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Double error/system messages
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MelvinDistudios

  • Beginner
  • *
  • Posts: 12
Re: Double error/system messages
« Reply #4 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10354
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Double error/system messages
« Reply #5 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

andrielipaz

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Double error/system messages
« Reply #6 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....

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
Re: Double error/system messages
« Reply #7 on: March 30, 2015, 22:17:45 pm »
As far as I can tell this behaviour will change in the next release of VM
Regards
A

Joomla 3.9.27
php 7.4