PHPJasper/phpjasper

Layout template "layout.php" does not exist

TomFrancken opened this issue · 1 comments

Hi, I am trying to run phpjasper in a phpmaker project.
When I compile the example file it works but I also get the following message:

...\vendor\slim\php-view\src\PhpRenderer.php(77): Layout template "layout.php" does not exist
I use this code:
$input = './vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$jasper = new \PHPJasper\PHPJasper;
$jasper->compile($input)->execute();

After this when I want to create a pdf with following code:

$input = './vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$output = './vendor/geekcom/phpjasper/examples';
$options = [ 'format' => ['pdf'] ];
$jasper = new \PHPJasper\PHPJasper;
$jasper->process($input,$output,$options)->execute();

...\vendor\geekcom\phpjasper\src\PHPJasper.php(250): Your report has an error and couldn 't be processed!\ Try to output the command using the function output(); and run it manually in the console.

Anyone have an idea how I can proceed with this? Thank you very much!

When I run it in the console with the output command:

[3456:1206/100718.163:ERROR:display_layout.cc(562)] PlacementList must be sorted by first 8 bits of display_id