We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 473
    • 70 Posts
    for first time upgrade the manager working very slow, the problem is process to retrieve rss from modx forum and sometimes failed (i don’t know why) , so i bypass this function in manager/includes/rss.inc.php and than the manager running very fast. Sorry my English grin
      • 26903
      • 1,336 Posts
      I’ve just put a simple return at the top of this file /includes/rss.inc.php and manager is OK now, quick log in, looks slick.

      So it looks as though this was my prob(hence why my other MODx installations work probably).

      OK, I’m behind a squid proxy on this particular machine but it should be of no matter, the RSS feeds use HTTP and I’ve copied a feed url from this file into the feed reader plugin of my browser, this reads OK as you would expect.

      I’ll dig more into the rss_fetch code and see where the bottleneck is.

        Use MODx, or the cat gets it!
        • 26903
        • 1,336 Posts
        OK found my problem :-

        The function _fetch_remote_file on line 271 of manager\media\rss\rss_fetch_inc sets up the Snoopy client class to get the news feeds.

        The Snoopy class needs to be told that you are behind a proxy, I added these two lines to this function :-

        $client->proxy_host = "cngateway";
        $client->proxy_port = 8080;
        


        Now it works fine.

        OK, I believe this should be configurable from the system config settings page, or even better picked up from the browser configuration.

        I can file a bug for this if you wish if you could point to your bug tracking tool.

          Use MODx, or the cat gets it!
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          This was causing your slow down? I still find my manager sluggish myself. I’ve done a speed test and what not and it’s not my connection. I’ve tried FF, IE7 and Chrome and each were slow.
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 26903
            • 1,336 Posts
            HI rossco, remember I didnt have a site slow down as such, only when logging into or using the manager, I think you’re problems is different, you are experiencing slow downs when using the manager and serving the site are you not? This is different to my specific problem.

            Also, this would only hit you if you were behind a proxy, which I assume you’re not.

            Just to rule it out though you could just add ’return’ to the top of the file manager/includes/rss.inc.php, say on line 24. This would stop all interaction with the RSS feed reader. If it has no effect at least you’ll know its not this, i.e. you can rule this out.
              Use MODx, or the cat gets it!
              • 26903
              • 1,336 Posts
              OK found the bug tracker, bug MODX-355 filed.
                Use MODx, or the cat gets it!
                • 25663 MODX Staff
                • 12,272 Posts
                Thanks for the R&D work shamblett ... MUCH appreciated. smiley
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 25551 ☆ A M B ☆
                  • 1,231 Posts
                  Forbidden

                  You don’t have permission to access /Home on this server.

                  I’ve been getting this error a lot today... 9 or so times in 6 hours.

                  I have noticed that when I validate my site using the W3C site it seems slow checking the site as well. My host said the server is not under any load or showing abnormal levels.
                    Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                    AugmentBLU - MODX Partner

                    BLUcart - MODX Revolution E-Commerce & Shopping Cart
                    • 26903
                    • 1,336 Posts
                    OK rossco, presumably you mean /home here not /Home, it looks as though your site is pulling in stuff that’s not in /var/www/html occasionally and this is not in your doc root, try adding the following :-
                    <Directory "/home/*/public_html">
                    Options Indexes FollowSymLinks
                    AllowOverride All
                    Order allow,deny
                    Allow from all
                    </Directory>  
                    


                    at an appropriate point in your httpd.conf file, just below the directory clause for your vhost will do and re-start apache.

                    This will allow access to users public_html directories as well mas your site root.

                    See what errors you get now.

                    If this stops the error I’d try and find out what you are accessing from here and why.

                    There’s an outside chance if you’re running RHEL or Centos that this may be a SELINUX error, there is a fix for this also but try the above first.
                      Use MODx, or the cat gets it!
                      • 25551 ☆ A M B ☆
                      • 1,231 Posts
                      hey shamblett... I am using managed/shared hosting so I don’t have access to the apache controls. I know the servers are run on Redhat. All my sites do, a couple of them have far more going on in the backend but are fast as can be but using rc2.

                      I do have to say that it does seem faster today but seems to suffer slow downs now and again... both front and back end.

                        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                        AugmentBLU - MODX Partner

                        BLUcart - MODX Revolution E-Commerce & Shopping Cart