We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3743
    • 42 Posts
    When one page have both Jot and FDM form calls, the following error occures:

    PHP error debug
    Error: is_file(): Stat failed for @CODE: <span class="fdm-mod"> [+user.canadd:is=`1`:and:if=`[+link.disableadd+]`:is=`0`:then=` <a href="[+link.add:esc+]" onclick="return confirm(’Are you sure you wish to add a document?’)" title="Add Document"><img src="[(base_url)]manager/media/style/MODx/images/icons/folder_page_add.gif" width="18" height="18" alt="New Document" border="0" /></a> `:strip+] [+link.disableedit:is=`0`:then=` [+user.ismoderator:is=`1`:or:if=`[+user.isauthor+]`:is=`1`:then=` <a href="[+link.edit:esc+]" onclick="return confirm(’Are you sure you wish to edit this Document?’)" title="Edit Document"><img src="[(base_url)]manager/media/style/MODx/images/icons/logging.gif" width="16" height="16" alt="Edit " border="0" /></a> `:strip+] `+] [+user.ismoderator:is=`1`:then=` [+doc.publis
    Error type/ Nr.: Warning - 2
    File: /www/hairnow/www/htdocs/assets/snippets/jot/includes/chunkie.class.inc.php
    Line: 44
    Line 44 source: } else if(is_file($tpl)) {

    Any ideas what’s the matter?
      • 7231
      • 4,205 Posts
      I think it has to do with both of them running the chunkie class causing a conflict. The error gives the impression that the fdm form is being processed by the jot copy of chunkie, since error code is an fdm form while the file is the jot chunkie.

      I don’t know enough about either to even guess on how to fix it but that is what I think is the problem. Maybe try running one snippet chached [[ ]] and the other uncached [! !], since each one will be parsed on different stages it may help.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3743
        • 42 Posts
        i’ve found out that adding &tplLinks=`fdmlinks` solves the problem for some reason (((-;