VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: steevithak on July 18, 2012, 21:02:54 PM

Title: How to turn off debug/info messages?
Post by: steevithak on July 18, 2012, 21:02:54 PM
I've installed VirtueMart 2.08e on Joomla 2.5.6 according to the instructions here:

http://dev.virtuemart.net/projects/virtuemart/wiki/Easy_VirtueMart_2_Install_Instructions

I then installed the sample data according to the instructions found here:

http://forum.virtuemart.net/index.php?topic=97646.msg321830#msg321830

Everything seems to work except that all VirtueMart screens are dumping what looks like debug information at the top; the store, the cart, everywhere. I've verified that debug mode is turned off in both Joomla and VirtueMart but I can't get rid of the stuff. How does one turn it off? Or is this an indication that something went wrong with my install? I've search the forum for solutions without any luck and checked the FAQ, so I'm assuming it isn't a common problem. Here's a sample of the gibberish being displayed at the top of every VirtueMart screen:

        * Info: weigth_countries _weightCond orderWeight:10 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:24.854775 method->orderamount_start:0 method->orderamount_stop:0 result:
        * weigth_countries _zipCond zip:55555
        * Info: weigth_countries _weightCond orderWeight:10 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:24.854775 method->orderamount_start:0 method->orderamount_stop:0 result:
        * weigth_countries _zipCond zip:55555
        * Info: weigth_countries _weightCond orderWeight:10 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:24.854775 method->orderamount_start:0 method->orderamount_stop:0 result:
        * weigth_countries _zipCond zip:55555
Title: Re: How to turn off debug/info messages?
Post by: jenkinhill on July 18, 2012, 22:58:00 PM
That suggests you are seeing the front end while logged in as admin. http://forum.virtuemart.net/index.php?topic=104887.msg349126#msg349126
Title: Re: How to turn off debug/info messages?
Post by: steevithak on July 18, 2012, 23:45:33 PM
Thanks, the fix suggested in that post worked for me, though the line numbers changed. I just searched for and commented out all calls to the vmAdminInfo() function in the file: /plugins/vmshipment/weight_countries/weight_countries.php

Has anyone filed a bug report on this? It looks like it would be useful information to have displayed under some circumstances but it should only be there when the debug option is turned on.