We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22095
    • 30 Posts
    I get this error whatever FDM call I use after updating to 0.0.74. even just [!FDM!] with no arguments.
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	array_merge() [function.array-merge]: Argument #1 is not an array	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/web27463/domains/kulingvarning.nu/public_html/assets/snippets/FDM/fdm.class.inc.php	 
      Line: 	98	 
      Line 98 source: 	$this->config['permissions']['trusted']=(!$this->config['moderation']['moderated'])? array_merge($this->config['permissions']['trusted'],$this->config['permissions']['post']):$this->config['permissions']['trusted']; 	 
     
    Parser timing
      MySQL: 	0.0264 s	(13 Requests)
      PHP: 	0.0722 s	 
      Total: 	0.0987 s


    Ideas?

    Documentation is a whole lot better in this version, good work!
      • 27889
      • 415 Posts
      I’ll correct it tomorrow, for waiting just add a group to &trusted and &canpost
      Edit: corrected in 0.0.75
        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 22095
        • 30 Posts
        I can’t edit any fields, whatever I input, I just end up with replicas of the model page.

        Here’s the FDM call:
        [!FDM? &model=`85` &canmoderate=`BlogAdmins` &disablemanager=`1` &parent=`[[getUsersFolder]]` &disabledelete=`1` &disableunpublish=`1` &disablepublish=`1` &eform_tpl=`fdmEformBlog`!]
        


        And here’s fdmEformBlog:
        [+validationmessage+]
        <form method="post" action="[~[*id*]~]"  id="fdmForm">
        <fieldset>
        	<legend>New Post</legend>
        	<input type="hidden" name="formid" value="fdmForm" />
        	
        	<p><label for="pagetitle">Rubrik</label><br /><input name="pagetitle" id ="pagetitle" value="[+pagetitle+]" type="text" eform="pagetitle:string:1" /></p>	<p><label for="longtitle">Rubrik</label><br /><input name="longtitle" id ="longtitle" value="[+longtitle+]" type="text" eform="Rubrik:string:1" /></p>
        	
         
         <p><label for="createdby">Created by:</label><br />
         [[SelectUser]]
            <input type="text" name="createdby" id="createdby" maxlength="60" size="15" value="[+createdby+]" />    
        </p>
         
         <p><label for="pub_date">Publish Date:</label><br />
          <input name="pub_date" id="pub_date" type="text" value="[+pub_date+]" size="30" readonly="readonly" />
                <a onClick="nwpub_cal1.popup();" title="Choose the publish date">
        		<img align="absmiddle" src="manager/media/calendar/img/cal.gif" width="16" height="16" border="0" alt="Select date" /></a>
                <a 	onClick="document.forms['fdmForm'].elements['pub_date'].value=''; return true;" >
        		<img align="absmiddle" src="manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" border="0" alt="Remove date"></a>
        </p>
        </fieldset>
        <fieldset>
        <legend>Content</legend>
        <p><label for="tvblogContent">Blog Content</label><br /><textarea name="tvblogContent" id ="tvblogContent"  rows="5" cols="50"   type="text" eform="Enter the content of the blog:string:1" />[+tvblogContent+]</textarea></p>
        <p><label for="tvblogRating">Betyg</label><br /><select><option label="1" value="1"></option><option label="2" value="2"></option><option label="3" value="3"></option><option label="4" value="4"></option><option label="5" value="5"></option>
        </select></p>
        
        
        </fieldset>
        <p><input name="fdmsubmit" value="Submit" type="submit" /></p>
        </form>
        
        
        <script language="JavaScript" src="manager/media/script/datefunctions.js"></script>
        <script type="text/javascript">
        	var elm_txt = {}; // dummy
        	var pub = document.forms["fdmForm"].elements["pub_date"];
        	var nwpub_cal1 = new calendar1(pub,elm_txt);
        	nwpub_cal1.path="[(base_url)]manager/media/";
        	nwpub_cal1.year_scroll = true;
        	nwpub_cal1.time_comp = true;	
        </script>
        <script language="javascript" type="text/javascript" src="assets/plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
        
        </script>
          • 27889
          • 415 Posts
          new version with moduled installation. Read the doc !

          @Ola can you try the new installation from scratch, I don’t know why you have these problems, all is done on my 3 sites with 2 differents systems.

          If the problem persist tell me EXACTLY what’s happens, for first testing I recommend you to test FDM without Ditto.
            MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
            MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
            • 22095
            • 30 Posts
            FDM without ditto seems to be working well...

            I’ll do some more testing and see if I can come up with the reason.

            Edit:

            After banging my head against the wall some, I’ve come to the conclusion that it’s related to custom Eforms... To tired to do more testing today, but I’ll continiue tomorrow.
              • 27889
              • 415 Posts
              @Ola check the permissions, I don’t think it is from eForm. To be sure put the same call (nor the id ) on the Ditto page and in the model. Have you the edit form displayed and where ?
              When you click on the submit button what is your page after?
              Are the links corrects ?
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 22095
                • 30 Posts
                If I removed the &eform_tpl things started working... So my guess is that it’s related to my eform for some reason.
                  • 27889
                  • 415 Posts
                  Your select field haven’t any name or id.
                  Try to put the tiny call in your head the head of the document smiley

                  Edit: Check if you have not an id in your template which is the same that a fields, ie: "content"
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 22095
                    • 30 Posts
                    Quote from: Soda at Jun 08, 2007, 09:38 AM

                    Your select field haven’t any name or id.
                    Yep, that’s the problem, thanks. I guess I got to tired for clear thinking.
                    Quote from: Soda at Jun 08, 2007, 09:38 AM

                    Try to put the tiny call in your head the head of the document smiley
                    My head is fine without calls. wink
                    Do you mean the FDM call that sits in the model template?
                      • 27889
                      • 415 Posts
                      I mean the tinyMce script:
                      <script language="javascript" type="text/javascript" src="assets/plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
                        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]