Forum Bugs

PHP: warning: parse error in value of property 'width' at '<'

adnan
Hi guys,
yesterday i started to test Prince. I wrote a little php-file where a background image is loaded dynamically and the width an height for the wrapper-div are measured from that pic.

Yesterday it runs with no warnings or errors. But today i got this warnings/errors:
pdf.php:style:3: warning: parse error in value of property 'width' at '<'
pdf.php:style:4: warning: parse error in value of property 'height' at '<'
/<: warning: can't open input file: No such file or directory

The stylesheet looks like this:
<style>
#wrapper {
width: <?=$bgSize[0]?>px;
height: <?=$bgSize[1]?>px;
background-image: url(<?=$bgPath?>);
background-size: cover;
}
</style>

The generated PDF has no background image. But yesterday it has one.

I'm a little bit confused...
mikeday
Looks like the PHP is not being evaluated, so Prince is seeing the raw PHP code.
adnan
ohhh...shh..yes, php is now running and the script works again.
sorry... and thx!

can i close/delete this thread?

Edited by adnan

mikeday
It's okay to leave it, other people may encounter similar issues. :)