Skip to content

Sacy not creating cache and weird file issue #15

@FizzyGiant

Description

@FizzyGiant

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.
sacy-issue

The very last issue I seem to get is if I comment out the following bit of code at line 84

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;
}

I then get the following error

[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: 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' in /inc/classes/Smarty/plugins/block.asset_compile.php:3
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: Stack trace:
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: #0 /inc/classes/Smarty/plugins/block.asset_compile.php(3): Phar::mapPhar('sacy.phar')
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: #1 /inc/classes/Smarty/internals/core.load_plugins.php(69): include_once('/var/www/vhosts...')
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: #2 /inc/templates/compiled/%%BF^BFB^BFBBFDB1%%common_head.html.php(4): smarty_core_load_plugins(Array, Object(Smarty))
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: #3 /inc/classes/Smarty/Smarty.class.php(1868): include('/var/www/vhosts...')
[Thu Jul 18 13:52:01 2013] [warn] [client 80.229.221.152] mod_fcgid: stderr: #4 /inc/templates/compiled/%%63^63B^63B43 in /inc/classes/Smarty/plugins/block.asset_compile.php on line 3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions