We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10289
    • 14 Posts
    Hi Guys,

    Were building a site and the client is insisting that the Thyme calendar should be included. At first glance this seemed to be quite simple, the software is delivered with an embed function which works in standard php pages.

    However once I try to embed the calendar in a modx rendered php page I get the following error

    "« MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: constant() [function.constant]: Couldn’t find constant _DEBUG_
    Error type/ Nr.: Warning - 2
    File: /home/fhlinux163/t/tpmm.co.uk/user/htdocs/modx/thyme/include/classes/class.calendar.php
    Line: 18
    Line 18 source: if(!@constant("_DEBUG_"))

    Parser timing
    MySQL: 0.1248 s (5 Requests)
    PHP: 0.0732 s
    Total: 0.1980 s"

    Now this looks like its trying to parse the calendar but something in its php script is clashing with modx. Am I onto a loser trying to get the calendar working or will it be possible? Are there any other claendar softwares which will do the same job as Thyme and are compatible. Basically the calendar needs to have excel import functionality and none of the ones in the repository appear to have that.

    Cheers for your time.