We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17554
    • 41 Posts
    Hi,
    I suppose that something go wrong with my MODX_BASE_PATH, I create snippet and on begining I put next lines :

    <?php
    include_once MODX_BASE_PATH.’assets/snippets/mysnippets/my.class.php’;
    include MODX_BASE_PATH.’assets/snippets/mysnippets/my.templates.php’;

    ......

    but when go on that page I get the message

    PHP error debug
    Error: Unknown(/home/content/p/l/a/plaslo/html/test/assets/snippets/mysnippets/my.class.php): failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /home/content/p/l/a/plaslo/html/test/manager/includes/document.parser.class.inc.php(766) : eval()’d code
    Line: 2


    Help

    thnks