Hello,
I am using MaxiGallery, BredCrumbs and eForm on my modx-webpage, all of a sudden the snippets will not render/show at all...
Chunks and templates work well, its only the snippets that will not load.
I dont know what to do... I have not done anything to my pages lately either. Have anyone experienced the same?
The PHP Version is 5.2.10.
Sincerly, Stian.
-
☆ A M B ☆
- 2,475 Posts
Is it ALL snippets, or just these 2? Are you seeing ANY output? Or just blank space where the Snippet’s output would normally be?
One common culprit is that the input variables (e.g. &variable=`xyz`) get corrupted by Javascript editor so that the ’&’ becomes ’&’ and then the Snippet no longer works. If I use Snippets on a page (as opposed to in a template), I always turn off Rich Text editing for that page.
I think something happened when i converted the database from latin1 to utf-8 charset encoding. Even when i remove the "&" and use only "&" the Snippets will not run or execute...
-
☆ A M B ☆
- 2,475 Posts
ooo.... encodings. Yeah, changing encodings can cause a lot of subtle little problems. Any way for to switch it back?
-
☆ A M B ☆
- 3,112 Posts
try to see the snippet codes.
perhaps there are 2 php tags inside it.
do not use them when you paste the code.
MODx will generate them for you.
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.
It is not two <?php tags in the Snippets view....
Don’t know whats wrong...
-
MODX Staff
- 10,725 Posts
This is quite a mystery. Has your host upgraded PHP recently to cause this? There had to be some change that lead to this change in behavior, and from what I’ve read here so far, nothing obvious comes to mind...