Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates loaded with ledgersmb-admin template load-all are wonky? #7378

Closed
neilt opened this issue Apr 30, 2023 · 1 comment · Fixed by #7549
Closed

Templates loaded with ledgersmb-admin template load-all are wonky? #7378

neilt opened this issue Apr 30, 2023 · 1 comment · Fixed by #7549

Comments

@neilt
Copy link
Contributor

neilt commented Apr 30, 2023

Loaded templates into master 459bebc using:

docker exec -u root ldmaster_lsmb perl -Ilib bin/ledgersmb-admin template load-all postgres@postgres/jack templates/demo
  1. Create new Sales Order, Save, and Post
  2. Search for Sales Order
  3. Select Sales Order
  4. Click Print
  5. Get Error, see below
  6. Works fine when database is initialized with UI, so while I think it might be template related since the error is in Template.pm it might be related to how I manually initialized the database, not using the UI. In addition, other templates like Reports -> Balance Sheet seem to work.
'Can't call method "can" on an undefined value at /srv/ledgersmb/lib/LedgerSMB/Template.pm line 494. '

sub _render {
my $self = shift;
my $vars = shift;
my $cvars = shift // {};
$vars->{USER} = $self->{user};
my $escape = $self->{format_plugin}->can('escape');

Screenshot 2023-04-30 at 11 33 05 AM

Screenshot 2023-04-30 at 11 31 07 AM

@ehuelsmann
Copy link
Member

I'm getting this error even when using templates loaded through setup.pl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants