We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21455
    • 26 Posts
    I have removed all the "public" behind every "function" but there is nothing better....
      • 6316
      • 92 Posts
      I have just fixed that. You also have to remove ’private’ declarations before each function.
        • 21455
        • 26 Posts
        I don’t understand... for me it does not work.
          • 21455
          • 26 Posts
          I’ve checked again, and I found the mistake !! just a " ’ " instead of " ` " !!
          thanks for your help !!
            • 6316
            • 92 Posts
            Fatal error: Undefined class name ’self’ in /home/mysite/public_html/site/assets/snippets/eventcalendar/eventcalendar.inc.php on line 284 sad

            php is 4.x.x, not sure what exactly
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: Daedalus at Jan 20, 2007, 10:31 PM

              Fatal error: Undefined class name ’self’ in /home/mysite/public_html/site/assets/snippets/eventcalendar/eventcalendar.inc.php on line 284 sad

              php is 4.x.x, not sure what exactly
              You can’t use self :: in PHP 4... that needs to be changed to the actual class name... this is definitely PHP 5 specific code and probably needs to be rewritten for PHP 4, though it could be as simple as one or two more edits.
                • 6778
                • 20 Posts
                Sorry, currently I have no possibility to test the snippet with PHP4.
                Maybe you can change all "self::" to "cEventCalendar::" and try again.
                  • 12306
                  • 16 Posts
                  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
                    • 6778
                    • 20 Posts
                    Did you install the snippet and the php file?
                    Can you post your snippet call?
                      • 10194
                      • 16 Posts
                      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.