horizontal_bar_chart()

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

horizontal_bar_chart()

Postby boybawang » Wed Jul 18, 2012 5:23 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: horizontal_bar_chart()

Postby williamconley » Wed Jul 18, 2012 7:57 am

Did you update your DB?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: horizontal_bar_chart()

Postby kizond » Tue Oct 16, 2012 2:17 pm

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
kizond
 
Posts: 4
Joined: Tue Oct 16, 2012 2:07 pm

Re: horizontal_bar_chart()

Postby williamconley » Tue Oct 16, 2012 8:14 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: horizontal_bar_chart()

Postby kizond » Wed Oct 17, 2012 4:02 am

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.
kizond
 
Posts: 4
Joined: Tue Oct 16, 2012 2:07 pm

Re: horizontal_bar_chart()

Postby DomeDan » Wed Oct 17, 2012 7:01 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: horizontal_bar_chart()

Postby kizond » Wed Oct 17, 2012 8:34 am

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?
kizond
 
Posts: 4
Joined: Tue Oct 16, 2012 2:07 pm

Re: horizontal_bar_chart()

Postby DomeDan » Wed Oct 17, 2012 8:52 am

This is no real problem, the function will still work. You can ignore the warning!
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: horizontal_bar_chart()

Postby kizond » Wed Oct 17, 2012 9:14 am

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
kizond
 
Posts: 4
Joined: Tue Oct 16, 2012 2:07 pm

Re: horizontal_bar_chart()

Postby DomeDan » Wed Oct 17, 2012 11:10 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: horizontal_bar_chart()

Postby DomeDan » Wed Oct 24, 2012 4:23 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 114 guests

cron