We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26575
    • 57 Posts
    Just sometimes (some hours) (and most time it works) the ext-base.js requests connector files in the manager with a wrong connectors_url.

    I've installed 2.2.0-pl2 advanced. My folder/domain structure is something like:

    /root/connectors/ -> http://sub.domain.com/connectors/
    /root/manager/ -> http://sub.domain.com/manager/
    /root/core/ -> -
    /root/website/ -> http://domain.com/

        $modx_core_path= '/root/core/';
        $modx_processors_path= '/root/core/model/modx/processors/';
    
        $modx_connectors_path= '/root/connectors/';
        $modx_connectors_url= '/connectors/';
    
        $modx_manager_path= '/root/manager/';
        $modx_manager_url= '/manager/';
    
        $modx_base_path= '/root/';
        $modx_base_url= '/';
    
        $http_host='sub.domain.com';
    


    I open the manager via http://sub.domain.com/manager/, modx requests files from /manager/...
    But sometimes ext-base.js requests connectors from domain.com/connectors/ insted of just /connectors/.


    Now it just happens in the morning... nothing changed on the server. I have no idea why this is happening...


    I hope anybody can help me...

    This question has been answered by Seel-Media. See the first response.

      christian seel - www.christianseel.com
      web developer & designer at chsmedien.de
      twitter: @christianseel / @chsmedien
      • 26575
      • 57 Posts
      It's frustrating... this issue comes and goes. Sometimes the manager is broken, sometimes everything is fine.

      Here are 2 screenshots from chrome developer tools, that shows the missing files:





      I still hope for your help!
        christian seel - www.christianseel.com
        web developer & designer at chsmedien.de
        twitter: @christianseel / @chsmedien
      • Christian,

        Can you post your server environment details? I have personally never seen an install where the core is in a subdomain so I can't give you a hand. Certainly point some people at this issue though.

        Jay
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
          • 26575
          • 57 Posts
          Hi Jay,

          this install is running on a managed server from hetzner.
          A phpinfo could be found here: LINK

          Right in this moment the manager is broken... [ed. note: Seel-Media last edited this post 12 years, 3 months ago.]
            christian seel - www.christianseel.com
            web developer & designer at chsmedien.de
            twitter: @christianseel / @chsmedien
          • Christian,

            Does this happen across all manager pages, or just one or some?

            Also, in your folders description, I'm confused by the last line
            /root/website/ -> http://domain.com/

            What does that refer to?

            Mike
              Mike Schell
              Lead Developer, MODX Cloud
              Email: [email protected]
              GitHub: https://github.com/netProphET/
              Twitter: @mkschell
              • 26575
              • 57 Posts
              Hi Mike,

              great question (that I never thought about), thanks!

              And yes, it's just the Dashboard-Page!
              All other pages seem to work fine!



              About my folder structure: /root/ is like my "public html" where modx is installed.
              However my website folder (contains the index.php and assets folder etc.) is not in the root, it has its own folder to seperate it from the core and manager folders...

              So my main domain "domain.com" is pointing to the /website/ directory (not the public html / root folder). For accessing the manager I have a subdomain that points to the root (so I can access the manager via http://subdomain.domain.com/manager/).

              I noticed that something like http://manager.domain.com/ that points directly to the manager folder doesn't work. But thats something different from this issue here.



              Back to the issue:
              I also noticed that all links from the navigation bar are linking to "domain.com/?a=**". The href attribute is "?a=**" but the browser uses domain.com as base... insted of subdomain.domain.com (tested with Chrome & Firefox on a mac)
                christian seel - www.christianseel.com
                web developer & designer at chsmedien.de
                twitter: @christianseel / @chsmedien
              • How is the subdomain configured? Is this a CPanel subdomain configuration?
                  • 26575
                  • 57 Posts
                  I think I got it. It seems like its caused by a dashboard widget. I placed the LogPageNotFound Snippet as a widget. Deleting the widget solves the issue.

                  I will take a deeper look now...
                    christian seel - www.christianseel.com
                    web developer & designer at chsmedien.de
                    twitter: @christianseel / @chsmedien
                  • discuss.answer
                    • 26575
                    • 57 Posts
                    Yes, the snippet LogPageNotFound caused it. It inserts values from the log directly in the output... adding htmlspecialchars() solved it.

                    Thanks for your help Jay, opengeek, and specially Mike for your question!
                      christian seel - www.christianseel.com
                      web developer & designer at chsmedien.de
                      twitter: @christianseel / @chsmedien
                      • 3749
                      • 24,544 Posts
                      Quote from: Seel-Media at Jan 12, 2012, 03:44 PM
                      Yes, the snippet LogPageNotFound caused it. It inserts values from the log directly in the output... adding htmlspecialchars() solved it.

                      LogPageNotFound doesn't touch (or even examine) the page output. It just writes the URL of the page to a file. And it doesn't even execute unless a page isn't found, so I don't think there's any way it could be interfering with legitimate pages.


                      ---------------------------------------------------------------------------------------------------------------
                      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                      MODx info for everyone: http://bobsguides.com/MODx.html
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting