crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

A lot 'The resource directory is missing, should be at \'\'.' and Cannot read lines at \'default/default.txt\'.

Open catscarlet opened this issue 9 years ago • 0 comments

I find this in my log.txt


[Crayon Syntax Highlighter Log Entry - 8:05:19 AM - 19 Aug 2016]

 [SYSTEM LOG] 'Upload directory is empty:  cannot load languages.'
 [SYSTEM LOG] 'The resource directory is missing, should be at \'\'.'
 [CrayonUtil::lines()] 'Cannot read lines at \'default/default.txt\'.'

[Crayon Syntax Highlighter Log Entry - 8:12:23 AM - 19 Aug 2016]

 [SYSTEM LOG] 'Upload directory is empty:  cannot load languages.'
 [SYSTEM LOG] 'The resource directory is missing, should be at \'\'.'
 [CrayonUtil::lines()] 'Cannot read lines at \'default/default.txt\'.'

I check function lines() and add some code for debugging.

    public static function lines($path, $opts = NULL) {
        $path = self::pathf($path);
        $tmp_log = '/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/util/file_put_contents.log';
        file_put_contents($tmp_log, 'Call crayon_util.class.php lines() $path'.":\n".print_r($path, true)."\n\n", FILE_APPEND);

        if (($str = self::file($path)) === FALSE) {
......

and receive:

Call crayon_util.class.php lines() $path:
default/default.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/extensions.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/aliases.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/delimiters.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/default.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/statement.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/reserved.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/type.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/modifier.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/operator.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/symbol.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/operator.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/default/symbol.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/extensions.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/aliases.txt

Call crayon_util.class.php lines() $path:
/home/username/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/langs/delimiters.txt

crayon-syntax-highlighter version:2.8.4 wordpress:4.3.3

catscarlet avatar Aug 19 '16 08:08 catscarlet