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

    I’ve had a problem with multiple FDM calls on one page (with the FDM calls in a Ditto Template). If I edit a document, and them edit that same document again, after submitting, I get the message "Form submitted multiple times, you only need to submit once". I’m not sure of the consequences of it, but changing the "protectSubmit" to 0 when the FDM source calls e-form fixes this.

    Tommy T.
      • 10076
      • 1,024 Posts
      I get an error: SMTP server response: 553 We do not relay non-local mail, sorry." document is added anyway? Working local and not with FURL. The folks that need this page have a lot of "data" (addresses) to add. Probably a couple of thousand. Now I do not want to have a menu with a thousand items. But still want to be able to see the added "data" and search it. Could someone give me a direction where to look? Last, would it be possible somehow to add this "data" directly through Mysql? So dumping it or how is that called. Would save a lot of typing.
      Thanks

      modx 9.6
      eform 1.4.4
      FDM downloaded today from first post
      XP sp, FF2 IE7
      Xampp 1.6
      PHP Version 5.2.1
      MySqL 5.0.33
        • 27889
        • 415 Posts
        @Frank If seems that is a problem with the mail send, if you do not need this you can disable this feature with &eform_noemail=`1`
        can you send email with a normal eForm call ?
        eForm use PHPMailer class, which use qmail or sendmail, if they aren’t installed I think you can’t send mail externally.

        If you do not want they appear in the menu, use a model with "display in menu" set to false or add a checkbox in your form with :
        <input type="checkbox" name="hidemenu" value="1" />
        you can set this to hidden if you don’t want see it:
        <input type="hidden" name="hidemenu" value="1" />

        If you just want add lot of data which are in a file you don’t need FDM, just create a file in sql syntax and in phpmysql choose import.
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 29039
          • 58 Posts
          Bug with Ditto - Jot calling

          Ditto tpl

          <div class="ditto_summaryPost">
          <h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>
          [!FDM? &id=`[+id+]` &disableadd=`1` &disableedit=`1` &eform_tpl=`fdmcatalog` &canpost=`Site Admins` &canmoderate=`Site Admins` &trusted=`Site Admins` &eform_noemail=`1` !]
          <div class="ditto_info" >By <strong>[+author+]</strong> on [+date+]. <a href="[~[+id+]~]#commentsAnchor">Comments
          ([[Jot?&docid=`[+id+]`&action=`count-comments` &tplform=``]])</a></div><div class="ditto_tags">Tags: [+tagLinks+]</div>
          [+summary+]
          <p class="ditto_link">[+link+]</p>
          </div>

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

          PHP error debug
          Error: is_file() [function.is-file]: open_basedir restriction in effect. File(@CODE: <span class="fdm-mod" style=""> [+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="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="logging.gif" width="16" height="16" alt="Edit " border="0" /></a> `:strip+] `+] [+user.ismoderator:is=`1`:then=` [+doc.published:is=`0`:and:if=`[+link.disablepublish+]`:is=`0`:then=` <a href="[+link.publish:esc+]" onclick="return confirm(’Are you sure you wish to publish this Document?’)" title="Publish Document"><img src="add.png" width="16" height="16" alt="Publish " border="0" /></a> `:strip+] [+doc.published:is=`1`:and:if=`[+link.disableunpublish+]`:is=`0`:then=` <a href="[+link.unpublish:esc+]" onclick="return confirm(’Are you sure you wish to unpublish this Document?’)" title="Unpublish Document"><img src="delete.png" width="16" height="16" alt="Unpublish " border="0" /></a> `:strip+] [+link.disabledelete:is=`0`:then=` <a href="[+link.delete:esc+]" onclick="return confirm(’Are you sure you wish to delete this Document?’)" title="Delete Document"><img src="event3.gif" width="16" height="16" alt="Delete " border="0" /></a> `:strip+] `+] </span> <br style="clear:both;"/>) is not within the allowed path(s): (/home/u69949/)
          Error type/ Nr.: Warning - 2
          File: /home/u69949/fashion4.ru/www/assets/snippets/jot/includes/chunkie.class.inc.php
          Line: 44
          Line 44 source: } else if(is_file($tpl)) {

          Parser timing
          MySQL: 0.0750 s (29 Requests)
          PHP: 0.2411 s
          Total: 0.3161 s
            • 27889
            • 415 Posts
            @swit4er
            it seems that you not have the latest php chunkie class which was modified by DOZE, can you try to update the file assets/snippets/FDM/includes/chunkie.class.inc.php
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 29039
              • 58 Posts
              @Soda
              chunkie.class.inc.php in curent version zip have wrong incoding or any bug. Correct file solve my problem.
              Please include correct file chunkie.class.inc.php in next FDM version.
                • 28281
                • 27 Posts
                Merci merci ! effectivement FDM à l’air de correspondre tout à fait à ce qu’il me faut ! Je teste ça et je vous tiens au courant ! (ça prendra peut-être quelque jours car je file un coup de main sur un autre projet en ce meoment...)
                wink
                  • 29039
                  • 58 Posts
                  BUG
                  Jot also have a CChunkie class call and dont work with new version of chunkie.class.inc.php.
                    • 7923
                    • 4,213 Posts
                    it’s best to give chunkie class a different name in FDM (like FDMChunkie) so it won’t clash with Jot’s one if the FDM chunkie is modified..


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 29039
                      • 58 Posts
                      Quote from: doze at Jul 05, 2007, 09:24 AM

                      it’s best to give chunkie class a different name in FDM (like FDMChunkie) so it won’t clash with Jot’s one if the FDM chunkie is modified..
                      yes, it’s solve problem.

                      @Soda we need action placeholder in chunk to work with TV.