We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    I am attempting to integrate ShortStats (now Mint) via a plugin.

    I created a new plugin called (very origionally) stats and inserted the following code per the install instructions:

    @include_once($_SERVER["DOCUMENT_ROOT"]."/shortstat/inc.stats.php"); 


    Then I checked OnParseDocument and OnWebPagePrerender.

    Unfortunately, I get an error regarding includes. But when it is called on a normal php page it works fine.

    Any ideas?
    • Looks to me as if it should be

      @include_once($_SERVER["DOCUMENT_ROOT"]."/assets/plugins/shortstat/inc.stats.php"); 


      if you put the plugin files in the /assets/plugins folder as recommended.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 18397
        • 3,250 Posts
        Thanks Susan, works like a charm now!