We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5474
    • 1 Posts
    Web Server:
    PHP version: 5.2, mod_php
    Apache version: 2.24
    Operating System and version: PCBSD 1.4beta


    Database:
    MySQL version 5.033
    List of any tables over 1MB in size = None


    MODx:
    Version modx-0.9.6
    Any changes you’ve made: None
    Any snippets you’re running on the page that is not working properly: None
    Any plugins you’re running: None


    Browser/Client:
    Browser name and version: IE7; Firefox 2.006; Konqueror 3.5.7
    Operating System and version: Windows XP Pro SP2; PCBSD 1.4beta

    I have installed MODx without problem, but I am experiencing some strange behaviour with the home page! All other pages are displaying correctly with working links etc. However, when the browser loads the homepage it only displays the html and the links are not working.

    I think this is happening because the base href is defined as "http:///", but I don’t know how to fix it!!!

    Home page source:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <base href="http:///"></base>
      <link rel="stylesheet" href="assets/templates/modxhost/layout.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/modxmenu.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/form.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/modx.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/print.css" type="text/css" media="print" />
      <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http:///index.php?id=11" />
      <script src="manager/media/script/mootools/mootools.js" type="text/javascript"></script>
      <script src="assets/templates/modxhost/drop_down_menu.js" type="text/javascript"></script>
    <script type="text/javascript">

    All other pages are picking up the base href correctly.

    Blog source:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <base href="http://ip.ip.ip.ip/"></base>ip removed to protect the innocent!!!
      <link rel="stylesheet" href="assets/templates/modxhost/layout.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/modxmenu.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/form.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/modx.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="assets/templates/modxhost/print.css" type="text/css" media="print" />
      <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://ip.ip.ip.ip/index.php?id=11" /> ip removed to protect the innocent!!!
      <script src="manager/media/script/mootools/mootools.js" type="text/javascript"></script>
      <script src="assets/templates/modxhost/drop_down_menu.js" type="text/javascript"></script>
    <script type="text/javascript">

    I am using an ip address whilst awaiting DNS registration. I had the Modx home page working correctly before a rebuild of the PAMP server, but the configuration should not have changed. This problem occurs whether the home page is accessed via the localhost, local network or the Internet.

    Any pointers in the right direction would be greatly appreciated!!!!

    Thank you

    Solved by reinstalling MODx! What caused the original problem remains one of life’s great mysteries!