[freeside-users] Can't print

Brian Mine bbooker45 at gmail.com
Sat Sep 16 07:55:18 PDT 2017


Still working on this. I can now print from the command line using either
lp or lpr. I didn't have lpr working at first so I just changed the
freeside print command to lp. I now have lpr working and have tried setting
the freeside command back to the default of lpr -h. Still nothing. When I
click reprint invoice I get returned to the cust main page. The best I can
decipher send-invoice.cgi that is the intended behavior but I may be
reading it incorrectly. In any case I get no errors. Going to Reports >
Logs > Syslog shows nothing related to printing. I can't find any evidence
of freeside passing the print command anywhere.

This is what is in the apache error log when I try to print. Is there
anything here that's causing this?

[49205] [Sat Sep 16 08:27:54 2017] [warning]: FS::CGI::menubar deprecated;
include /elements/menubar.html instead at
/var/www/html/freeside/config/config-view.cgi line 1.
(/usr/share/perl/5.20/Carp.pm:168)
[49206] [Sat Sep 16 08:28:00 2017] [warning]: FS::Conf created with no
locale fallback. (/usr/share/perl5/FS/Conf.pm:70)
[49344] [Sat Sep 16 08:28:15 2017] [warning]: CGI::param called in list
context from package HTML::Mason::Commands line 178, this can lead to
vulnerabilities. See the warning in "Fetching the value or values of a
single named parameter" at /usr/share/perl5/CGI.pm line 436.
(/usr/share/perl5/CGI.pm:436)
[49203] [Sat Sep 16 08:28:46 2017] [warning]: FS::CGI::menubar deprecated;
include /elements/menubar.html instead at
/var/www/html/freeside/view/cust_bill.cgi line 1.
(/usr/share/perl/5.20/Carp.pm:168)
[49204] [Sat Sep 16 08:28:52 2017] [warning]: WARNING: (pkgpart 86) Package
def option recur_fee not found in options or plandata!
 at /usr/share/perl5/FS/part_pkg.pm line 1288.
        FS::part_pkg::option(FS::part_pkg::flat=HASH(0x7f71932cbc18),
"recur_fee") called at
/var/www/html/freeside/view/cust_main/packages/package.html line 19
        HTML::Mason::Commands::__ANON__("countrydefault", "US",
"manage_link_text", undef, "company_address", ARRAY(0x7f71932fdb50),
"part_pkg-term_discounts", "", "cust_pkg-large_pkg_size", ...) called at
/usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0x7f7193379070),
"countrydefault", "US", "manage_link_text", undef, "company_address",
ARRAY(0x7f71932fdb50), "part_pkg-term_discounts", "", ...) called at
/usr/share/perl5/HTML/Mason/Request.pm line 1305
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef, "countrydefault", "US",
"manage_link_text", undef, "company_address", ARRAY(0x7f71932fdb50),
"part_pkg-term_discounts", ...) called at
/var/www/html/freeside/view/cust_main/packages/section.html line 35
        HTML::Mason::Commands::__ANON__(FS::cust_pkg=HASH(0x7f71932fa930),
"cust_pkg-hide_discontinued-part_svc", "", "manage_link_text", undef,
"countrydefault", "US", "cust_pkg-show_autosuspend", "", ...) called at
/usr/share/perl5/HTML/Mason/Component.pm line 160

HTML::Mason::Component::run_dynamic_sub(HTML::Mason::Component::FileBased=HASH(0x7f71932daff0),
"subcomponent_.packagerow", FS::cust_pkg=HASH(0x7f71932fa930),
"cust_pkg-hide_discontinued-part_svc", "", "manage_link_text", undef,
"countrydefault", "US", ...) called at
/usr/share/perl5/HTML/Mason/Request.pm line 951

HTML::Mason::Request::call_dynamic(FS::Mason::Request=HASH(0x7f7192dda658),
"subcomponent_.packagerow", FS::cust_pkg=HASH(0x7f71932fa930),
"cust_pkg-hide_discontinued-part_svc", "", "manage_link_text", undef,
"countrydefault", "US", ...) called at
/usr/local/etc/freeside/masondata/obj/2343492872/view/cust_main/packages/section.html.obj
line 8
        HTML::Mason::Commands::__ANON__(FS::cust_pkg=HASH(0x7f71932fa930),
"cust_pkg-hide_discontinued-part_svc", "", "manage_link_text", undef,
"countrydefault", "US", "cust_pkg-show_autosuspend", "", ...) called at
/usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::Subcomponent=HASH(0x7f71932da080),
FS::cust_pkg=HASH(0x7f71932fa930), "cust_pkg-hide_discontinued-part_svc",
"", "manage_link_text", undef, "countrydefault", "US",
"cust_pkg-show_autosuspend", ...) called at
/usr/share/perl5/HTML/Mason/Request.pm line 1305
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef,
FS::cust_pkg=HASH(0x7f71932fa930), "cust_pkg-hide_discontinued-part_svc",
"", "manage_link_text", undef, "countrydefault", "US", ...) called at
/var/www/html/freeside/view/cust_main/packages/section.html line 17
        HTML::Mason::Commands::__ANON__("cust_location_cache",
HASH(0x7f71932d4d70), "cust_main", FS::cust_main=HASH(0x7f7192df2c08),
"packages", ARRAY(0x7f719324fb18)) called at
/usr/share/perl5/HTML/Mason/Component.pm line 160

HTML::Mason::Component::run_dynamic_sub(HTML::Mason::Component::FileBased=HASH(0x7f71932daff0),
"main", "cust_location_cache", HASH(0x7f71932d4d70), "cust_main",
FS::cust_main=HASH(0x7f7192df2c08), "packages", ARRAY(0x7f719324fb18))
called at /usr/share/perl5/HTML/Mason/Request.pm line 951

HTML::Mason::Request::call_dynamic(FS::Mason::Request=HASH(0x7f7192dda658),
"main", "cust_location_cache", HASH(0x7f71932d4d70), "cust_main",
FS::cust_main=HASH(0x7f7192df2c08), "packages", ARRAY(0x7f719324fb18))
called at
/usr/local/etc/freeside/masondata/obj/2343492872/view/cust_main/packages/section.html.obj
line 17
        HTML::Mason::Commands::__ANON__("cust_location_cache",
HASH(0x7f71932d4d70), "cust_main", FS::cust_main=HASH(0x7f7192df2c08),
"packages", ARRAY(0x7f719324fb18)) called at
/usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0x7f71932daff0),
"cust_location_cache", HASH(0x7f71932d4d70), "cust_main",
FS::cust_main=HASH(0x7f7192df2c08), "packages", ARRAY(0x7f719324fb18))
called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef, "cust_location_cache",
HASH(0x7f71932d4d70), "cust_main", FS::cust_main=HASH(0x7f7192df2c08),
"packages", ARRAY(0x7f719324fb18)) called at
/var/www/html/freeside/view/cust_main/packages.html line 186
        HTML::Mason::Commands::__ANON__(FS::cust_main=HASH(0x7f7192df2c08))
called at /usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0x7f7193261b08),
FS::cust_main=HASH(0x7f7192df2c08)) called at
/usr/share/perl5/HTML/Mason/Request.pm line 1305
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef,
FS::cust_main=HASH(0x7f7192df2c08)) called at
/var/www/html/freeside/view/cust_main.cgi line 280
        HTML::Mason::Commands::__ANON__("keywords", 292) called at
/usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0x7f7192decde0),
"keywords", 292) called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef, undef, "keywords", 292)
called at /usr/share/perl5/HTML/Mason/Request.pm line 958

HTML::Mason::Request::call_next(FS::Mason::Request=HASH(0x7f7192dda658))
called at /var/www/html/freeside/autohandler line 1
        HTML::Mason::Commands::__ANON__("keywords", 292) called at
/usr/share/perl5/HTML/Mason/Component.pm line 138

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0x7f7192db20c8),
"keywords", 292) called at /usr/share/perl5/HTML/Mason/Request.pm line 1303
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line
1295
        HTML::Mason::Request::comp(undef, undef, undef, "keywords", 292)
called at /usr/share/perl5/HTML/Mason/Request.pm line 484
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 484
        eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 436
        HTML::Mason::Request::exec(FS::Mason::Request=HASH(0x7f7192dda658))
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165

HTML::Mason::Request::ApacheHandler::exec(FS::Mason::Request=HASH(0x7f7192dda658))
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831

HTML::Mason::ApacheHandler::handle_request(HTML::Mason::ApacheHandler=HASH(0x7f718f2e6288),
Apache2::RequestRec=SCALAR(0x7f7192dbc620)) called at
/usr/local/etc/freeside/handler.pl line 141
        eval {...} called at /usr/local/etc/freeside/handler.pl line 141
        HTML::Mason::handler(Apache2::RequestRec=SCALAR(0x7f7192dbc620))
called at -e line 0
        eval {...} called at -e line 0 (/usr/share/perl/5.20/Carp.pm:169)



Thanks for any help,
Brian

On Fri, Sep 15, 2017 at 10:42 AM, Brian Mine <bbooker45 at gmail.com> wrote:

> I have the network printer set as the default so that lp would get it to
> print. Or so I thought. I don't think freeside is passing the command at
> all but I'm not sure where I need to look to figure out what's going on.
>
> On Sep 15, 2017 9:32 AM, "Larry Smith" <lesmith at ecsis.net> wrote:
>
> Hmmm,  my system uses a network printer and
> the command is:
>
> > rlpr -no-bind -h -Plp@<printer-ip-address>
>
> and it seems to work just fine.
>
> --
> Larry Smith
> lesmith at ecsis.net
>
> On Fri September 15 2017 09:15, Brian Mine wrote:
> > Freeside version 3.9
> > Debian 8.3
> > Perl 5.20.2
> >
> > I can't seem to get freeside to send anything to my printer. Using a
> > network printer and I can print from the command line. Something like ls
> |
> > lp works fine but printing within freeside does nothing. I set the print
> > command to lp in settings. I'm not able to find anything in syslog or
> cups
> > logs. The web ui just returns to customer page, no error or much of
> > anything else.
> >
> > Thanks for any help!
> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freeside.biz/pipermail/freeside-users/attachments/20170916/8233acde/attachment.html>


More information about the freeside-users mailing list