[freeside-users] Bug in phone_avail.html?

Grant Emsley grant at techplanit.com
Tue Aug 3 11:45:31 PDT 2010


And like an idiot, I forget to mention which version I'm using.  Doh!  I'm using the 2.1.0 VMware appliance.

Thanks,

Grant Emsley
grant at techplanit.com<mailto:grant at techplanit.com>
TechPlanIT

From: freeside-users-bounces at freeside.biz [mailto:freeside-users-bounces at freeside.biz] On Behalf Of Grant Emsley
Sent: Tuesday, August 03, 2010 2:43 PM
To: freeside-users at freeside.biz
Subject: [freeside-users] Bug in phone_avail.html?

Hello,

I'm trying to use the import phone numbers feature to keep track of which DIDs are used in my voip service.  The /freeside/search/phone_avail.html page works fine until I add a customer with one of those phone numbers.  Then I get the errors below.

Is this a bug, or did I mess something up?

Also, is there any way to add a phone number either from the database of free numbers, or manually typing it on (useful if I am porting the customer's existing number).

Thanks,

Grant Emsley
grant at techplanit.com<mailto:grant at techplanit.com>
TechPlanIT


----------------------------------

System error
error:

Can't call method "cust_svc" without a package or object reference at /var/www/freeside/search/phone_avail.html line 93.

context:

...

89:

90:

my $link_cust = sub {

91:

my $phone_avail = shift;

92:

if ( $phone_avail->svcnum ) {

93:

my $cust_svc = $phone_avail->svc_phone->cust_svc;

94:

if ( $cust_svc->pkgnum ) {

95:

#my $cust_main = $cust_svc->cust_pkg->cust_main;

96:

return [ "${p}view/cust_main.cgi?", 'custnum' ];

97:

}

...


code stack:

/var/www/freeside/search/phone_avail.html:93
/usr/local/share/perl/5.10.0/FS/Mason.pm:349
/var/www/freeside/search/elements/search.html:181
/usr/local/share/perl/5.10.0/FS/Mason.pm:349
/var/www/freeside/search/phone_avail.html:104
/var/www/freeside/autohandler:1

raw error<http://10.0.0.149/freeside/search/phone_avail.html#raw>

Can't call method "cust_svc" without a package or object reference at /var/www/freeside/search/phone_avail.html line 93.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "cust_svc" without a package or object reference at /var/www/freeside/search/phone_avail.html line 93.^J') called at /var/www/freeside/search/phone_avail.html line 93
HTML::Mason::Commands::__ANON__('FS::phone_avail=HASH(0xdbe0598)') called at /var/www/freeside/search/elements/search-html.html line 347
HTML::Mason::Commands::__ANON__('type', 'html', 'header', 'ARRAY(0xdbfc970)', 'rows', 'ARRAY(0xdcf2b28)', 'link_agentnums', 'ARRAY(0xdbff570)', 'null_link', '', 'confmax', undef, 'maxrecords', undef, 'offset', undef, 'opt', 'HASH(0xdbff630)') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdb42530)', 'type', 'html', 'header', 'ARRAY(0xdbfc970)', 'rows', 'ARRAY(0xdcf2b28)', 'link_agentnums', 'ARRAY(0xdbff570)', 'null_link', '', 'confmax', undef, 'maxrecords', undef, 'offset', undef, 'opt', 'HASH(0xdbff630)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'type', 'html', 'header', 'ARRAY(0xdbfc970)', 'rows', 'ARRAY(0xdcf2b28)', 'link_agentnums', 'ARRAY(0xdbff570)', 'null_link', '', 'confmax', undef, 'maxrecords', undef, 'offset', undef, 'opt', 'HASH(0xdbff630)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1332
HTML::Mason::Request::scomp('FS::Mason::Request=HASH(0xdcab880)', 'search-html.html', 'type', 'html', 'header', 'ARRAY(0xdbfc970)', 'rows', 'ARRAY(0xdcf2b28)', 'link_agentnums', 'ARRAY(0xdbff570)', 'null_link', '', 'confmax', undef, 'maxrecords', undef, 'offset', undef, 'opt', 'HASH(0xdbff630)') called at /usr/local/share/perl/5.10.0/FS/Mason.pm line 349
HTML::Mason::Commands::include('search-html.html', 'type', 'html', 'header', 'ARRAY(0xdbfc970)', 'rows', 'ARRAY(0xdcf2b28)', 'link_agentnums', 'ARRAY(0xdbff570)', 'null_link', '', 'confmax', undef, 'maxrecords', undef, 'offset', undef, 'opt', 'HASH(0xdbff630)') called at /var/www/freeside/search/elements/search.html line 181
HTML::Mason::Commands::__ANON__('title', 'Phone Number (DID) Search Results', 'name_singular', 'phone number', 'query', 'HASH(0xdca98c0)', 'count_query', 'SELECT COUNT(*) FROM phone_avail ', 'header', 'ARRAY(0xc15b348)', 'fields', 'ARRAY(0xdb4b790)', 'align', 'rllllcl', 'links', 'ARRAY(0xdbced10)', 'color', 'ARRAY(0xdceb4d8)', 'style', 'ARRAY(0xdca86c0)') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdb42d30)', 'title', 'Phone Number (DID) Search Results', 'name_singular', 'phone number', 'query', 'HASH(0xdca98c0)', 'count_query', 'SELECT COUNT(*) FROM phone_avail ', 'header', 'ARRAY(0xc15b348)', 'fields', 'ARRAY(0xdb4b790)', 'align', 'rllllcl', 'links', 'ARRAY(0xdbced10)', 'color', 'ARRAY(0xdceb4d8)', 'style', 'ARRAY(0xdca86c0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'title', 'Phone Number (DID) Search Results', 'name_singular', 'phone number', 'query', 'HASH(0xdca98c0)', 'count_query', 'SELECT COUNT(*) FROM phone_avail ', 'header', 'ARRAY(0xc15b348)', 'fields', 'ARRAY(0xdb4b790)', 'align', 'rllllcl', 'links', 'ARRAY(0xdbced10)', 'color', 'ARRAY(0xdceb4d8)', 'style', 'ARRAY(0xdca86c0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1332
HTML::Mason::Request::scomp('FS::Mason::Request=HASH(0xdcab880)', 'elements/search.html', 'title', 'Phone Number (DID) Search Results', 'name_singular', 'phone number', 'query', 'HASH(0xdca98c0)', 'count_query', 'SELECT COUNT(*) FROM phone_avail ', 'header', 'ARRAY(0xc15b348)', 'fields', 'ARRAY(0xdb4b790)', 'align', 'rllllcl', 'links', 'ARRAY(0xdbced10)', 'color', 'ARRAY(0xdceb4d8)', 'style', 'ARRAY(0xdca86c0)') called at /usr/local/share/perl/5.10.0/FS/Mason.pm line 349
HTML::Mason::Commands::include('elements/search.html', 'title', 'Phone Number (DID) Search Results', 'name_singular', 'phone number', 'query', 'HASH(0xdca98c0)', 'count_query', 'SELECT COUNT(*) FROM phone_avail ', 'header', 'ARRAY(0xc15b348)', 'fields', 'ARRAY(0xdb4b790)', 'align', 'rllllcl', 'links', 'ARRAY(0xdbced10)', 'color', 'ARRAY(0xdceb4d8)', 'style', 'ARRAY(0xdca86c0)') called at /var/www/freeside/search/phone_avail.html line 104
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xdceaf38)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('FS::Mason::Request=HASH(0xdcab880)') called at /var/www/freeside/autohandler line 1
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd794e38)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('FS::Mason::Request=HASH(0xdcab880)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('FS::Mason::Request=HASH(0xdcab880)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xc9dbcb8)', 'Apache2::RequestRec=SCALAR(0xdb597f8)') called at /usr/local/etc/freeside/handler.pl line 91
eval {...} at /usr/local/etc/freeside/handler.pl line 91
HTML::Mason::handler('Apache2::RequestRec=SCALAR(0xdb597f8)') called at -e line 0
eval {...} at -e line 0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://420.am/pipermail/freeside-users/attachments/20100803/6b2ac54c/attachment-0001.htm>


More information about the freeside-users mailing list