We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21056
    • 327 Posts
    Quote from: towerofbabel at Jul 08, 2008, 03:36 AM

    yes, mm_rules.inc.php is untouched - perhaps I had a problem with the path to that file? I’ll check.

    No, there’s no problem -- it is trying to run the rules in this file, but you don’t have the same TVs, so it’s causing an error. You need to replace all the rules in it with your own OR put your rules in the chunk.
      Author: ManagerManager plugin - customise your ModX manager interface

      Rckt - web development, Sheffield, UK
      • 30497
      • 245 Posts
      Quote from: ncrossland at Jul 08, 2008, 03:45 AM

      Quote from: towerofbabel at Jul 08, 2008, 03:36 AM

      yes, mm_rules.inc.php is untouched - perhaps I had a problem with the path to that file? I’ll check.

      No, there’s no problem -- it is trying to run the rules in this file, but you don’t have the same TVs, so it’s causing an error. You need to replace all the rules in it with your own OR put your rules in the chunk.
      Thanks. I already fixed it by adding my own rules to my chunk. Thanks for the great work on this update!
        • 24495
        • 407 Posts
        The best MM since integrating the rules chunk! Next we get a nice form based user interface instead of this chunk? grin
          • 21056
          • 327 Posts
          Quote from: rasc at Jul 08, 2008, 02:23 PM

          The best MM since integrating the rules chunk! Next we get a nice form based user interface instead of this chunk? grin
          It would be nice wink
            Author: ManagerManager plugin - customise your ModX manager interface

            Rckt - web development, Sheffield, UK
            • 24495
            • 407 Posts
            Getting an error in creating new documents. Buttons "save / duplicate / delete / cancel" disappear in the top, at bottom I get a parse error (look further down). I have MM v0.3 and this chunk:
            // All
            mm_hideFields('link_attributes,introtext');
            mm_renameField('pagetitle','Seitentitel', '', '', 'Wird im Browser ganz oben angezeigt');
            mm_renameField('longtitle','Überschrift', '', '', 'Die erste Ueberschrift auf der Seite, bei Reisen der Reisename');
            mm_hideSections('content', '', '8,9,12');
            mm_renameSection('tvs', 'Weitere Felder');
            mm_widget_showimagetvs();
            	
            // Reisen template
            mm_renameSection('content', 'Reisebeschreibung', '', '11');


            The error given is
            « MODx Parse Error »
            MODx encountered the following error while attempting to parse the requested resource:
            « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 »
                  SQL: SELECT name FROM `DBxxxxx`.`modx_site_tmplvars` tvs LEFT JOIN `DBxxxxx`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND type IN ('image') AND rel.templateid = 


            Any ideas? Thanks.
            EDIT: Must be a problem with the mm_widget_showimagetvs(). Commented out the error disappears.
              • 21056
              • 327 Posts
              Quote from: rasc at Jul 10, 2008, 03:09 AM

              Getting an error in creating new documents. Buttons "save / duplicate / delete / cancel" disappear in the top, at bottom I get a parse error (look further down). I have MM v0.3 and this chunk:

              Yes, it’s a bug -- to fix it, in functions/utilities.inc.php, around line 131, change:

              $cur_tpl = ' AND rel.templateid =  '.$tpl_id;


              to

              $cur_tpl = !empty($tpl_id) ? ' AND rel.templateid = ' . $tpl_id : '';
                Author: ManagerManager plugin - customise your ModX manager interface

                Rckt - web development, Sheffield, UK
                • 24495
                • 407 Posts
                Fixed. Thanks for replying so fast!
                  • 30497
                  • 245 Posts
                  Quote from: rasc at Jul 10, 2008, 03:09 AM

                  Getting an error in creating new documents. Buttons "save / duplicate / delete / cancel" disappear in the top, at bottom I get a parse error (look further down). I have MM v0.3 and this chunk:
                  // All
                  mm_hideFields('link_attributes,introtext');
                  mm_renameField('pagetitle','Seitentitel', '', '', 'Wird im Browser ganz oben angezeigt');
                  mm_renameField('longtitle','Überschrift', '', '', 'Die erste Ueberschrift auf der Seite, bei Reisen der Reisename');
                  mm_hideSections('content', '', '8,9,12');
                  mm_renameSection('tvs', 'Weitere Felder');
                  mm_widget_showimagetvs();
                  	
                  // Reisen template
                  mm_renameSection('content', 'Reisebeschreibung', '', '11');


                  The error given is
                  « MODx Parse Error »
                  MODx encountered the following error while attempting to parse the requested resource:
                  « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 »
                        SQL: SELECT name FROM `DBxxxxx`.`modx_site_tmplvars` tvs LEFT JOIN `DBxxxxx`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND type IN ('image') AND rel.templateid = 


                  Any ideas? Thanks.
                  EDIT: Must be a problem with the mm_widget_showimagetvs(). Commented out the error disappears.


                  Same error I got above - it only went away for me when I put rules in my mm_rules chunk.
                    • 21056
                    • 327 Posts
                    Quote from: towerofbabel at Jul 10, 2008, 03:37 AM


                    Same error I got above - it only went away for me when I put rules in my mm_rules chunk.
                    Same error, but different cause. If you removed the default line "mm_widget_tags(’blogTags’);" from mm_rules.inc.php it would go away.
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 21257 MODX Staff
                      • 730 Posts
                      Hi ncrossland,
                      Over in the new bugtracker, we’ve been discussing some problems with the way the (unmodified) Manager is handling TVs. For example, if there is a space in the name of a TV, the Manager breaks because the TV’s name is used in the field name. It has been proposed to use the TV’s id instead of it’s name.
                      I’d like to invite you and any other interested parties into the discussion because I just realized that any changes to the Manger in this regard would likely affect ManagerManager’s interaction with TVs.
                      Hopefully we can arrive at a solution that fixes the Manager bug, and doesn’t introduce bugs for ManagerManager users.
                      http://svn.modxcms.com/jira/browse/MODX-154
                        Mike Schell
                        Lead Developer, MODX Cloud
                        Email: [email protected]
                        GitHub: https://github.com/netProphET/
                        Twitter: @mkschell

                      This discussion is closed to further replies. Keep calm and carry on.