We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29525
    • 388 Posts
    I have just installed modx 1.0.4 for a new site. I used the install script on HostGator. This installed only the minimum installation so I copied the install folder to the server, ran the upgrade and installed all the snippets & plugins.

    All is working beautifully except Quick Manager doesn’t appear on the front-end. I haven’t installed any other jquery or mootools scripts.

    Is there a setting/switch somewhere that I need to change? I looked all over the tools/configuration but don’t see anything that might control this. Not sure where to look for this one.
      www.terrybarthdesign.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Take a look at the URL in your browser for the Manager, then for the front-end. I’ll bet that one is www.domain.com, and the other is just domain.com.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 29525
        • 388 Posts
        Susan

        Good idea, I’d forgotten to check that. That one stumped me a couple of years ago, but unfortunately not this time.

        BTW, I did check to ensure the plugin was not disabled.

        Other ideas?
          www.terrybarthdesign.com
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Check a "view source" to see what javascript is being loaded. It’s possible that if you installed the demo stuff that the js menu is conflicting. Also take a look at the QM plugin’s configuration and make sure it’s loading everything as it should.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 29525
            • 388 Posts
            Using the firebug console I see the following error:
            reference to undefined property o.cache[H][E]
            Failed to load source for: http://www....dbox.com/assets/js/jquery-1.3.2.min.js

            The file in question is in the specified folder. I re uploaded this file to the server just in case it got corrupted during installation.

            Here’s what is loading:

            /assets/js/jquery-1.3.2.min.js
            /assets/plugins/qm/css/colorbox.css

            Some styles for IE (assets/plugins/qm/css/images/internet_explorer)

            /assets/plugins/qm/js/jquery.colorbox-min.js

            Then this:
            <script type="text/javascript">
                                
                                	var $j = jQuery.noConflict();
                                	$j(document).ready(function($)
                                	    
                                    {                      
                                		$("a.colorbox").colorbox({width:"80%", height:"90%", iframe:true, overlayClose:false});
                                	
                                    	// Bindings
                                    	$().bind("cbox_open", function(){
                                            $("body").css({"overflow":"hidden"});
                                            $("html").css({"overflow":"hidden"});
                                            $("#qmEditor").css({"display":"none"});
                                        });
                                    	$().bind("cbox_closed", function(){
                                            $("body").css({"overflow":"auto"});
                                            $("html").css({"overflow":"auto"});
                                            $("#qmEditor").css({"display":"block"});
                                            // Remove manager lock by going to home page
                                            $j.ajax({ type: "GET", url: "http://www.tbdsandbox.com/manager/index.php?a=2" });
                                        });                  
                                                                    						                            
                                        // Hide QM+ if cookie found
                                        if (getCookie("hideQM") == 1)
                                        {
                                            $("#qmEditor").css({"display":"none"});
                                            $("#qmEditorClosed").css({"display":"block"});    
                                        }
                                        
                                        // Hide QM+
                                        $(".qmClose").click(function () {
                                            $("#qmEditor").hide("normal");
                                            $("#qmEditorClosed").show("normal");
                                            document.cookie = "hideQM=1; path=/;";
                                        });
                                        
                                        // Show QM+
                                        $("#qmEditorClosed").click(function () {
                                            {
                                                $("#qmEditorClosed").hide("normal");
                                                $("#qmEditor").show("normal");
                                                document.cookie = "hideQM=0; path=/;";
                                            }
                                        });
            
                                    });
                                    
                                    function getCookie(cookieName)
                                    {
                                        var results = document.cookie.match ( "(^|;) ?" + cookieName + "=([^;]*)(;|$)" );
                
                                        if (results) return (unescape(results[2]));
                                        else return null;
                                    }
            
                                </script>
            


            Another style sheet

            assets/plugins/qm/css/style.css

            Then this:
            <style type="text/css">
            #qmEditor, #qmEditorClosed { top: 0px; }
            </style>
            


            All of the files referenced above are where they should be.

            Plugin Code:
            $show = TRUE;
            
            if ($disabled  != '') {
                $arr = explode(",", $disabled );
                if (in_array($modx->documentIdentifier, $arr)) {
                    $show = FALSE;
                }
            }
            
            if ($show) {
                include_once($modx->config['base_path'].'assets/plugins/qm/qm.inc.php');
                $qm = new Qm($modx, $jqpath, $loadmanagerjq, $loadfrontendjq, $noconflictjq, $loadtb, $tbwidth, $tbheight, $hidefields, $hidetabs, $hidesections, $addbutton, $tpltype, $tplid, $custombutton, $managerbutton, $logout, $autohide);
            }

            The plugin configuration data:
            &jqpath=Path to jQuery;text;assets/js/jquery-1.3.2.min.js &loadmanagerjq=Load jQuery in manager;list;true,false;true &loadfrontendjq=Load jQuery in front-end;list;true,false;true &noconflictjq=jQuery noConflict mode in front-end;list;true,false;true &loadtb=Load modal box in front-end;list;true,false;true &tbwidth=Modal box window width;text;80% &tbheight=Modal box window height;text;90% &hidefields=Hide document fields from front-end editors;text;parent &hidetabs=Hide document tabs from front-end editors;text; &hidesections=Hide document sections from front-end editors;text; &addbutton=Show add document here button;list;true,false;true &tpltype=New document template type;list;parent,id,selected;parent &tplid=New document template id;int;3  &custombutton=Custom buttons;textarea; &managerbutton=Show go to manager button;list;true,false;true &logout=Logout to;list;manager,front-end;manager &disabled=Plugin disabled on documents;text; &autohide=Autohide toolbar;list;true,false;false


            System Events Checked:
            OnWebPagePrerender
            OnManagerLogout
            OnDocFormPrerender
            OnDocFormSave

            I appreciate any help with this.
              www.terrybarthdesign.com
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Looks like the link for loading the jquery library is there, but for some reason it’s not actually being loaded. I’m not that much of a javascript guru to have any ideas about the error and why it’s not actually loading it, though.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 29525
                • 388 Posts
                Yeah, that seems to be the case. There is long list of additional errors but I suspect/assume they are all caused by first one.

                I have tried this in several different browsers and two different workstations running xp & Vista.

                If anyone would like to take a closer look at this, I’ll PM the access info.
                  www.terrybarthdesign.com
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  You could try configuring QM to not load jquery on the front end, then manually add the <script...> link for it to your template, just to see what happens.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 29525
                    • 388 Posts
                    OK, here’s what I did

                    In the plugin configuration screen, I changed the "Load jQuery in front-end" parameter to false.

                    Then added this to the head.
                    <script src="http://www.tbdsandbox.com/assets/js/jquery-1.3.2.min.js" type="text/javascript"></script>


                    Still no joy and now firebug console says:
                    anonymous function does not always return a value
                    ction(){var H=this;while(H&&H.ownerDoc...er(E,this,true),"not",E)}else{E=o.mult
                      www.terrybarthdesign.com
                      • 29525
                      • 388 Posts
                      OK

                      I went back and reinstalled the legacy template and guess what? QM is working correctly on the front end. So there seems to be a problem with my template.

                      Still tracking it down. Stay tuned.
                        www.terrybarthdesign.com