Open FizzyGiant opened 11 years ago
Ok I just read up on what __halt_compiler(); does so I guess we can ignore the binary code, Also since recompiling with
if ($res === false){
// rendering failed.
// because we don't know which one, we just enter emergency mode
// and return the initial content unharmed:
return $content;
}
Commented out it doesn't throw the SHA1 error I guess I edited the wrong file before and instead of editing the source and rebuilding I must have been editing the final file directly.
But even with all that still not sure why its not creating the cache files or working correctly :(
The output of build.php
is a phar archive. The error message I'm seeing from your report:
PHP Fatal error: Uncaught exception 'PharException' with message 'phar "inc/classes/Smarty/plugins/block.asset_compile.php" SHA1 signature could not be verified: broken signature'
points to an issue with the signature of the phar file. build.php
does not sign the archive, so that's why the verification fails. You seem to have phar.require_hash enabled in your php.ini. Try disabing that or send me a pull request to make build.php
sign the archive
Hi pilif thanks for getting back to me, I turned phar.require_hash off which fixed the SHA1 issue. However, the cache files are still not being generated.
Also just to double check ASSET_COMPILE_OUTPUT_DIR should be an absolute path right? because If I set a relative path (assets/cache) it throws:
Fatal error: Uncaught exception 'sacy\Exception' with message 'Failed to create fragments cache directory' in phar:///inc/classes/Smarty/plugins/block.asset_compile.php/sacy/fragment-cache.php on line 14
However, it does correctly create the fragments directory, just not the cache files. With an absolute path it doesn't throw this error and still creates the fragments directory as it should but it still doesn't create the cache files
Hi firstly I would like to say thanks for providing this library.
I seem to be having a few issues:
1: Sacy creates the fragments directory correctly but doesn't generate the cache files. I'm guessing it might be related to issue 2
2: In the generated file (block.asset_compile.php) there is some weird characters which I don't think are mean't to be present in the file, They start at around line 124, Annoyingly though GitHub won't copy the characters in so I've attached a screenshot of the area I'm talking about.
The very last issue I seem to get is if I comment out the following bit of code at line 84
I then get the following error
Now this error might just be because I commented out that code snippet above but I thought I would paste it here in case it was of any help, I commented it out as I'm trying to debug the issues I'm having.
I'm using the latest HEAD, Any help would be greatly appreciated.