VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: DaggaTora on August 22, 2012, 13:33:13 PM

Title: [SOLVED] Superuser strange messages
Post by: DaggaTora on August 22, 2012, 13:33:13 PM
Hi!

all superusers in our shop keep getting strange messages like:

Info: weigth_countries _weightCond orderWeight:0 method->weight_start: method->weight_stop: result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:0 result:1
weigth_countries _orderamountCond cart_amount:19.999997 method->orderamount_start:0 method->orderamount_stop:0 result:
weigth_countries _zipCond zip:28023

Normal users don't recieve these messages.

any idea?

Thanks!
Title: Re: Superuser strange messages
Post by: DaggaTora on August 22, 2012, 13:41:36 PM
and in cart appears this:

Info: weigth_countries _weightCond orderWeight:0 method->weight_start: method->weight_stop: result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:0 result:1
weigth_countries _orderamountCond cart_amount:19.999997 method->orderamount_start:0 method->orderamount_stop:0 result:
weigth_countries _zipCond zip:28023
Info: weigth_countries _weightCond orderWeight:0 method->weight_start: method->weight_stop: result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:0 result:1
weigth_countries _orderamountCond cart_amount:19.999997 method->orderamount_start:0 method->orderamount_stop:0 result:
weigth_countries _zipCond zip:28023
Info: weigth_countries _weightCond orderWeight:0 method->weight_start: method->weight_stop: result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:0 result:1
weigth_countries _orderamountCond cart_amount:19.999997 method->orderamount_start:0 method->orderamount_stop:0 result:
weigth_countries _zipCond zip:28023
Info: weigth_countries _weightCond orderWeight:0 method->weight_start: method->weight_stop: result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:0 result:1
weigth_countries _orderamountCond cart_amount:19.999997 method->orderamount_start:0 method->orderamount_stop:0 result:
weigth_countries _zipCond zip:28023
Title: Re: Superuser strange messages
Post by: bytelord on August 22, 2012, 13:41:45 PM
Hello,

This is normal because some debugging information messages are activated by default for vm admin users that login in the frontend.
If you disable automatic shipment this message will not appear, if you need automatic shipment select you will have that message.

btw, only to admin users that debug information shows up :)

Title: Re: Superuser strange messages
Post by: DaggaTora on August 22, 2012, 15:35:01 PM
Thanks for the info bytelord!

is there any way to deactivate only that debug info?

Title: Re: Superuser strange messages
Post by: bytelord on August 22, 2012, 16:33:15 PM
Hello,

May be i am wrong but i think is located under your_joomla_site\plugins\vmshipment\weight_countries\weight_countries.php
around line 275 comment the following line

vmdebug('checkConditions '.$method->name.' does not fit');


Please test it and report back if that solve your issue.

If you featured upgrade VM AIO extensions you will have to comment that line again.

Hopes that is the line :)

Regards.
Title: Re: Superuser strange messages
Post by: DaggaTora on August 22, 2012, 16:48:21 PM
Thanks but it doesn't work!  >:( admin life is so hard...

;D
Title: Re: Superuser strange messages
Post by: bytelord on August 22, 2012, 16:57:57 PM
hello,

I am sure where is exactly, is sure at the core but maybe you shouldn't comment it...
in admin's life is a common thing debug messages enabled by default and comes all around ... :)
Title: Re: Superuser strange messages
Post by: DaggaTora on August 22, 2012, 18:18:18 PM
  ;)

Thanks for your time!

If anyone knows a solution it will be great!
Title: Re: Superuser strange messages
Post by: Milbo on August 22, 2012, 18:53:32 PM
It is only a message for superusers. It does not harm your store, because there should anyway only one superuser and you should also test your store NOT as admin or superuser.
Title: Re: Superuser strange messages
Post by: DaggaTora on August 22, 2012, 19:10:26 PM
Again you are completly right Milbo, but boss want to be superadmin and have the same view as mortals  ;D
Title: Re: Superuser strange messages
Post by: bytelord on August 22, 2012, 19:18:29 PM
You can place boss as a standard shopper user. Tell him after that this is the an admin account! Easy
Title: Re: Superuser strange messages
Post by: Milbo on August 22, 2012, 20:20:58 PM
you can also just change the vmAdminInfo function in the BE/helpers/config.php
Title: Re: Superuser strange messages
Post by: DaggaTora on August 23, 2012, 09:30:32 AM
mmm I'm not really sure about changing functions. Wouldn't know where to start but thanks :)

About what you said bytelord about placing boss as a standar shopper he is actually like stardar but he doesn't have the (2). In shoppers regular clients are "shopper / (2)" superadmins "shopper / ()" and me "admin / (deprecated)". I've tried to add the (2) to superadmins but is something about DB 2=register; 8=superadmins...
Title: Re: Superuser strange messages
Post by: dinoide on August 31, 2012, 11:23:24 AM
Quote from: bytelord on August 22, 2012, 19:18:29 PM
You can place boss as a standard shopper user. Tell him after that this is the an admin account! Easy

It is not my case. The stupid messages appears for all users in the virtuemart.
Why didn't fix before... there are a lot of releses with the same problem. It's agly to see these messages for normal user.!
Title: Re: Superuser strange messages
Post by: dinoide on August 31, 2012, 11:26:27 AM
could you specify the solution please?

What is BE?

If you know the solution, why are you delivering new releses with the same problem.
It is a headadrake to fix all stupid messages after install a new update.
Please, YOU fix it and deliver a new update with the corrections.

Thanks.

Title: Re: Superuser strange messages
Post by: bytelord on September 17, 2012, 18:15:58 PM
Hello,
Please took a look over here. Just to mention that in the next release vmadmininfo will be removed.
http://forum.virtuemart.net/index.php?topic=106247.msg357983#msg357983
Title: Re: Superuser strange messages
Post by: DaggaTora on October 18, 2012, 11:11:33 AM
Thanks bytelord!!