Hi All,
I’m almost successful in implementing dynamic chunks using template variables, (with this great tutorial:
http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks#Create_Some_Chunks).
However, I’m getting a parse error listed below. My document validates, so I don’t think the extra "<" is coming from my code. I think it’s being caused when this line of code (in my template) is used to call in the information (include): [!chunkListParser?chunks=`[*leftChunks*]` &wrapperdiv=`left`!]
Parse error: syntax error, unexpected ’<’ in /usr/home/xxx/public_html/mywebsite.com/manager/includes/document.parser.class.inc.php(766) : eval()’d code on line 2
Additionally...
I found this little tidbit of information regarding the Parse Error that I’m having. I’m using version 0.9.6 of MODx. I tried removing the "<?php" in the first line of code and the "<?" in the last line in the PHP document "document.parser.class.inc.php" but that did not work - made the page go away completely. However I still think the issue is coming from this document.
Documentation:
"Parse error, unexpected ’<’ in /manager/includes/document.parser.class.inc.php(705) : eval()’d code on line 1"
"This is one of the most common parse errors in pre 0.9.5 releases. There is a <? or <?php in the first line of the snippet code which must be removed. Also, look at the end of the snippet code and ensure it does not contain ?>. In 0.9.5+ <?php tag is detected in the snippet code and dealt with. Developers often put <?php to the start of the snippet code to get syntax coloring working in their text editors and that’s the most common reason why you may see some snippets having them."
Source:
http://wiki.modxcms.com/index.php/Common_snippet_error_messages_and_their_meaning
Anyone run into this issue or have any thoughts on how to resolve it?