Quote from: goldsky at Jun 25, 2010, 10:09 PM
Parse error: syntax error, unexpected $end in /homepages/11/d292516919/htdocs/pack4/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 3
usually this comes from missing file inclusion of a certain function inside a function.
$snip= eval ($snippet);
The line 3 is referring to the line in the snippet where the error occurs. The only clue line 770 in the document.parser file gives is whether it’s a snippet or a plugin
$snip= eval ($snippet);
so it’s a snippet.
What does line 3 in the snippet code (in the Manager) say?
<?php
$basePath = $modx->config[’base_path’] . ’/assets/snippets/calendar/’; include $basePath . ’calendar.inc.php’
?>
If I add the semicolon, I get this:
No semicolon at the end of the include statement?
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/11/d292516919/htdocs/pack4/assets/snippets/calendar/classes/class.simplepie-gcalendar.php on line 290
OK, I figured it out! I thought I was using PHP 5, but I was really using 4.
Quote from: sottwell at Jun 27, 2010, 10:34 PMIf I add the semicolon, I get this:
No semicolon at the end of the include statement?
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/11/d292516919/htdocs/pack4/assets/snippets/calendar/classes/class.simplepie-gcalendar.php on line 290
class.Calendar_Events.php
Line 112 change to
for( $c=1; $c<$this->startOffset; $c++ )
Then change days in template!![]()
My client decided to ditch google calendar and I haven’t
