pilif / sacy

Smarty Asset Compiler (warning: all branches but master are subject to force pushes)
http://pilif.github.com/sacy
MIT License
34 stars 12 forks source link

sacy not writing #13

Open axs89 opened 11 years ago

axs89 commented 11 years ago

Hi-

We're trying out the sacy plugin on our environment (PHP 5.3). I ran the build.php with bundled CSS and Javascript minification. What's strange is that it's creating the fragments directory correctly, but it's neither writing any compiled assets into the directory or changing the HTML markup in any way. I am seeing the following errors in the apache error log:

[Fri Nov 16 21:05:08 2012] [error] PHP Notice:  Uninitialized string offset: 0 in /home/chrisg/projects/admin/lib/thirdparty/smarty/plugins/block.asset_compile.php on line 49
[Fri Nov 16 21:05:08 2012] [error] PHP Notice:  Undefined offset: 0 in /home/chrisg/projects/admin/lib/thirdparty/smarty/plugins/block.asset_compile.php on line 71
[Fri Nov 16 21:05:08 2012] [error] PHP Notice:  Undefined variable: res in /home/chrisg/projects/admin/lib/thirdparty/smarty/plugins/block.asset_compile.php on line 120

But that's it in terms of errors. What's the best way to go about debugging this?

Thanks!

pilif commented 11 years ago

What version of sacy are you seeing this with? Have you tried latest HEAD?

axs89 commented 11 years ago

Yes, we're using the latest HEAD. We're still working through some of the issues and trying to debug. Out of curiosity (I'm a bit of a PHP / Phar newbie), is there a way to compile block_asset_compile.php without the signature checking? That would make it a bit easier to debug.

Thanks for your help!