We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 82
    • 17 Posts
    Whenever I try to load any page in the manager it takes 1 minute to load. Looking at the Activity window in Safari reveals that http://myvantagepointfilm.com/manager/index.php?a=1&f=menu gets "Cancelled" on every other try. I assume that means it is timing out.

    I am lost as to what to look for or test. Any help would be greatly appreciated.
      • 7231
      • 4,205 Posts
      The entire site is running oddly, it is very slow and all the links resolve to the same page but take forever to load. Could you have a buggy snippet or something that is causing the load delays? Maybe a bad plug-in?
        [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't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 82
        • 17 Posts
        Hi Shane,

        Thanks for the quick reply. I did not install any plug-ins. The only snippet I have created is one that substitutes Flash video. This was orginially used in my blog. I use two TVs in my templates which are working correctly. Here is the call for the snippet:

        [[MyFLV?file=[*video*].flv&[*Aspect_Ratio*]]] 



        Here is the code for it:

        <?php
        // configurable variables (global variables)
        
        	$playerPath="assets/flash/video";
        	$videoPath="http://vantagepoint.fatcow.com/assets/flash/video";
        	
        
        	$flv_autostart = 0;			// Set this to 1 if you want the flv player to automatically start playing (not recommended)
        	$flv_showdigits = 0;			// Set this to 1 to show the digits for % loaded, elapsed and remaining time in the flvplayer
        	$flv_showfsbutton = 0;		// Set this to 1 to show the fullscreen button
        	$flv_showcontrolbar = 1;		// Set this to 1 to show the control bar
        	$flv_bufferlength = 10;		// This sets the number of seconds an FLV should be buffered ahead before the player starts it. Set this smaller for fast connections or short videos. Set this bigger for slow connections. The default is 5 seconds.
        	$flv_overstretch = "true";	// Defines how to stretch images/movies to make them fit the display. "true" will stretch them proportionally to fill the display, "false" will stretch them to fit. "fit" will stretch them disproportionally to fit both height and width. "none" will show all items in their original dimensions. Defaults to "fit".
        	$flv_useposter = 1;			// Set this to 1 if you want to display poster frame i.e. preview image
        	$flv_imagetype = "jpg";		// Preview image extension, can be ;jpg", ;png" or ;gif"
        	$flv_background = "FFFFFF";  // Background color of your page
        	$flv_backcolor = "FFFFFF";	// Background color of the flvplayer
        	$flv_frontcolor = "000000";	// Texts / buttons color of the flvplayer
        	$flv_lightcolor = "000000";	// Rollover/ active color of the flvplayer
        
        // end of configurable variables
        
        $flv_counter = 0;
        
        
                //$input = explode(" ", $matches[2]);
        	//list($movie, $width, $height) = $input;
        
        
        
        $player = "$playerPath/flvplayer.swf";
        
        $movie = "$videoPath/$file";
        
        
        	if ($flv_showcontrolbar) {
        		$height += 20;		// Extra 20px for controller bar
        		$displayheight = "";
        	} else {
        		$displayheight = "&displayheight=$height";
        	}
        
        	$image = str_replace(".flv", ".", $movie);
        	if ($flv_useposter) {
                $image = "&image=$image$flv_imagetype";
        	} else {
        		$image = "";
        	}
        
        	if ($flv_showdigits) {
        		$showdigits = "";
        	} else {
        		$showdigits = "&showdigits=false";
        	}
        	
        	if ($flv_autostart) {
        		$autostart = "&autostart=true";
        	} else {
        		$autostart = "";
        	}
        	
        	if ($flv_showfsbutton) {
        		$fullscreen = "&showfsbutton=true&fullscreenpage=$fs&fsreturnpage=$return";
        	} else {
        		$fullscreen = "";
        	}
        	
        	
        	$bufferlength = "&bufferlength=$flv_bufferlength";
        	$overstretch = "&overstretch=$flv_overstretch";
        	
        	$backcolor = "&backcolor=0x$flv_backcolor";
        	$frontcolor = "&frontcolor=0x$flv_frontcolor";
        	$lightcolor = "&lightcolor=0x$flv_frontcolor";
        	
        	//$bufferlength = ($flv_bufferlength == 5) ? "" : "&bufferlength=$flv_bufferlength";
        	//$overstretch = ($flv_overstretch == "fit") ? "" : "&overstretch=$flv_overstretch";
        	
        	//$backcolor = ($flv_backcolor == "FFFFFF") ? "" : "&backcolor=0x$flv_backcolor";
        	//$frontcolor = ($flv_frontcolor == "000000") ? "" : "&frontcolor=0x$flv_frontcolor";
        	//$lightcolor = ($flv_lightcolor == "000000") ? "" : "&lightcolor=0x$flv_frontcolor";
        
        
        	// start outputting javascript
        $output = '<script type="text/javascript">// <![CDATA[
        var FI = { movie:"'.$player.'",width:"'.$width.'",height:"'.$height.'",allowfullscreen:"true",majorversion:"7",build:"0",bgcolor:"#'.$flv_background.'",flashvars:"file='.$movie.'&height='.$height.'&width='.$width.''.$image.''.$displayheight.''.$showdigits.''.$autostart.''.$fullscreen.''.$bufferlength.''.$overstretch.''.$backcolor.''.$frontcolor.''.$lightcolor.'" };
        UFO.create(FI,"player'.$flv_counter.'");// ]]>
        </script>
        
        <div id="player'.$flv_counter.'">
        <p>Please download Flash to fully enjoy this site!</p>
        <p><a href="http://www.macromedia.com/go/getflashplayer"><img src="http://myvantagepointfilm.com/images/get_flash_player.gif" alt="Get macromedia Flash Player" /></a></p>
        </div>
        ';
        
        	return $output;
        ?>


        Do you see anything funky in there?
          • 82
          • 17 Posts
          Ok... I changed the snippet call to :

          [[MyFLV? &file=`[*video*].flv` &width=`480` &height=`[*Aspect_Ratio*]`]] 


          But that did not help the slow loading page or manager.

            • 7231
            • 4,205 Posts
            Actually, I logged into the manager for him and noticed 1000’s of entries in the system events log relating to the Search Highlight plug-in and then saw the it had not been patched. After clearing the log and patching the plug-in it seemed to get better.

            I should have updated this post, sorry.

              [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]