Yes, I got that. I was just displaying it the same way you posted it. It shows up just like the others.
-
☆ A M B ☆
- 3,112 Posts
go to your Sistem Settings, set Debug = 1
expect this
$this->modx->log(xPDO::LOG_LEVEL_DEBUG, "Processing {$outerTag} as {$innerTag} using tagname {$tagName}:\n" . print_r($elementOutput, 1) . "\n\n");
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
regarding to this part of processTag() method
https://github.com/modxcms/revolution/blob/develop/core/model/modx/modparser.class.php#L412
i'm guessing that your server has problem with substr().
what version of PHP are you using?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
PHP 5.3.2
I enabled debug. Where is the error log printing out?
-
☆ A M B ☆
- 3,112 Posts
Quote from: cbaone at Jan 18, 2013, 05:12 PMI enabled debug. Where is the error log printing out?
MODX's error log (or directly open the file: core/cache/logs/error.log)
Before that,
I would rather create a new resource that uses
BaseTemplate which has minimum tags.
Place the the chunk/link/placeholder/snippet on the content, cached AND uncached, then view the page.
After that, see what inside the error.log.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
The only error that comes up is this:
[2013-01-19 11:07:44] (ERROR @ /index.php) Could not cache resource 1
Uncached snippets still not being parsed/rendered correctly.
-
☆ A M B ☆
- 3,112 Posts
Try to make another basic test, create a snippet, call this cached (as you can't call it uncached):
<?php
$rest = substr("abcdef", -1); // returns "f"
echo $rest . '<br />';
$rest = substr("abcdef", -2); // returns "ef"
echo $rest . '<br />';
$rest = substr("abcdef", -3, 1); // returns "d"
echo $rest . '<br />';
return '';
?>
are the outputs as same as the expected?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Yes, that snippet output:
f
ef
d
just as it should have.
UPDATE: I backed up the site and installed on another server with the same result. Snippets still showing as code, unrendered on the page.
If ANYONE has ANYTHING I could try it would be very much appreciated. I'm out of ideas. Thanks.
-
☆ A M B ☆
- 24,524 Posts
Try installing a new Revo (or the same version, at any rate) in a subdirectory, then replace things one at a time. Just copy the new folders over the old ones, and test after each copy to make sure it didn't break things. On the clone you just made of course, not the live site.