I have removed all the "public" behind every "function" but there is nothing better....
I have just fixed that. You also have to remove ’private’ declarations before each function.
I don’t understand... for me it does not work.
I’ve checked again, and I found the mistake !! just a " ’ " instead of " ` " !!
thanks for your help !!
Sorry, currently I have no possibility to test the snippet with PHP4.
Maybe you can change all "self::" to "cEventCalendar::" and try again.
I am currently evaluating this calendar and after the install I got this error:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: sort() expects parameter 1 to be array, null given
Error type/ Nr.: Warning - 2
File: /public_html/cms/manager/includes/document.parser.class.inc.php(748) : eval()’d code
Line: 207
Parser timing
MySQL: 0.0073 s (7 Requests)
PHP: 0.3067 s
Total: 0.3140 s
Please help!
Thanks,
Tom
Did you install the snippet and the php file?
Can you post your snippet call?
I’m also having difficulties using this snippet. I’m currently running on PHP Version 4.4.6. I tried removing the public and private declarations before each function to no avail. This is the error I receive using the original eventcalendar.inc.php file:
"Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ’}’ in /home/ridegb/domains/ridegreybruce.ca/public_html/assets/snippets/eventcalendar/eventcalendar.inc.php on line 32"
Any help would be appreciated.