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

Layout template "layout.php" does not exist #304

Open
TomFrancken opened this issue Dec 5, 2021 · 1 comment
Open

Layout template "layout.php" does not exist #304

TomFrancken opened this issue Dec 5, 2021 · 1 comment

Comments

@TomFrancken
Copy link

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!

@TomFrancken
Copy link
Author

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

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

No branches or pull requests

1 participant