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

What am i doing wrong? #70

Open
Pappu420 opened this issue Jul 25, 2019 · 2 comments
Open

What am i doing wrong? #70

Pappu420 opened this issue Jul 25, 2019 · 2 comments

Comments

@Pappu420
Copy link

I installed via composer

build(); header('Content-type: image/jpeg'); $builder->output(); On IE , in the console, i see DOM7009: Unable to decode image at URL: '<>' with MIME: 'image/jpeg'. In firefox, in the main browser window, i see "the image <<>> cannot be displayed as it contains errors If i remove the header line, i do see a lot of junk chars and a jpeg header being sent out. So it does look like i have the relevant libraries for PHP installed $my_dir is outside my web directory, but i don't think that should matter, right? Thanks in advance for any help!!!!
@Pappu420
Copy link
Author

I got it!

One of the included files was returning an extra space and screwing up the headers and output.

In such a case, the native PHP error is expected... something like headers already sent or something :-(

Please include it to avoid headaches for other unsuspecting newbies like me :-)

@Gregwar
Copy link
Owner

Gregwar commented Jul 25, 2019

Unfortunately this is hard to provide a better error message there since this is more a PHP issue, that is even more likely to happen if you use closing tag ?> with extra space after

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

2 participants