Page 1 of 1

horizontal_bar_chart()

PostPosted: Wed Jul 18, 2012 5:23 am
by boybawang
Hi Guys,

I recently updated one of the servers I have to VERSION: 2.6-372a BUILD: 120713-2123 just now and when I do a detail view of a campaign or just add a new in group i get these warnings:


Code: Select all
Warning: Missing argument 8 for horizontal_bar_chart(), called in /var/www/vicidial/admin.php on line 25294 and defined in /var/www/vicidial/functions.php on line 106

Warning: Missing argument 9 for horizontal_bar_chart(), called in /var/www/vicidial/admin.php on line 25294 and defined in /var/www/vicidial/functions.php on line 106



This werent present on version 2.6-371

Re: horizontal_bar_chart()

PostPosted: Wed Jul 18, 2012 7:57 am
by williamconley
Did you update your DB?

Re: horizontal_bar_chart()

PostPosted: Tue Oct 16, 2012 2:17 pm
by kizond
New to vicidial, having same issue ,

version
2.6-375a

Got the following error after creating a campaign and clicking on the submit botton.


Warning: Missing argument 8 for horizontal_bar_chart(), called in /var/www/vicidial/admin.php on line 21023 and defined in /var/www/vicidial/functions.php on line 106

Warning: Missing argument 9 for horizontal_bar_chart(), called in /var/www/vicidial/admin.php on line 21023 and defined in /var/www/vicidial/functions.php on line 106

Please kindly assist

Re: horizontal_bar_chart()

PostPosted: Tue Oct 16, 2012 8:14 pm
by williamconley
1) Welcome to the party! 8-)

2) when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3) If you are also a "scratch install" person ... both of you should post your installation instructions link because it may have a "flaw" in it.

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 4:02 am
by kizond
Thanks williams ,please see below my configuration.

Vicidial VERSION: 2.6-375a BUILD: 120831-1523 | Asterisk Asterisk 1.4.27.1-vici|single server| No Digium/Sangoma Hardware | No Extra Software After installation | Ubuntu Server 8.0.4.3 LTS 64 bit| Intel(R) Celeron(R) M processor 1.50GHz
Followed the installation steps for Ubuntu VICIDIAL Install found on the site.

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 7:01 am
by DomeDan
You can ignore that, its just a warning about missing arguments in the function that draws a bar in detail campaign view.

this is line 21026:
horizontal_bar_chart($campaign_id,'8','campaign',$link,'total_calls','call count',1);
and this is the function:
function horizontal_bar_chart($campaign_id,$days_graph,$title,$link,$metric,$metric_name,$more_link,$END_DATE,$download_link)

I posted this to the issue tracker, hopefully it will be looked at http://www.vicidial.org/VICIDIALmantis/view.php?id=609

a quick fix is to add ,'','' to the function call, like this:
horizontal_bar_chart($campaign_id,'8','campaign',$link,'total_calls','call count',1,'','');
that needs to be done on line 21026, 33308, 33312, 33316
BUILD: 120831-1523

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 8:34 am
by kizond
Thanks Dome.

I intend doing a fresh installation using version 2.4 (astguiclient_2.4rc2.zip) file rather that using the Subversion (or) SVN server since using svn downloads the latest 2.6-375a BUILD, Please will I have same problem with version 2.4?

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 8:52 am
by DomeDan
This is no real problem, the function will still work. You can ignore the warning!

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 9:14 am
by kizond
I tried editing the file /var/www/vicidial/functions.php,ine 106 but it did not appear like the one you sent. Mine has a total of 286 line,did not see line 21026, 33308, 33312, 33316.

see mine below

function horizontal_bar_chart($campaign_id,$days_graph,$title,$link,$metric,$metric_name,$more_link,$END_DATE,$download_link)

Thanks

Re: horizontal_bar_chart()

PostPosted: Wed Oct 17, 2012 11:10 am
by DomeDan
Its the file /var/www/vicidial/admin.php you need to edit if you really cant stand those warnings :wink:
and btw, do a backup of the file before you edit it

Re: horizontal_bar_chart()

PostPosted: Wed Oct 24, 2012 4:23 am
by DomeDan
This has been fixed in the trunk (Admin build: 121019-0520)
r1866 | mattf | 2012-10-22 22:07:17 +0200 (mån, 22 okt 2012) | 1 line

small fixes for voicemail message chooser and admin.php horizontal bars function