We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33372
    • 1,611 Posts
    Are you using other Javascripts on this page? When I search for that error in Google I see that other folks have reported conflicts with some mootools scripts that produce it. Do you get this error with both IE6 and IE7?
      "Things are not what they appear to be; nor are they otherwise." - Buddha

      "Well, gee, Buddha - that wasn't very helpful..." - ZAP

      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
      • 28407
      • 20 Posts
      yes, i have 2 comps, one with XP(IE6), second with Vista (IE7), chat don’t work on both. By the way, when i’m starting chat using index.html of PHPFreeChat (../assets/snippets/phpdreechat/index.html) it works fine in IE. I’m confused undecided
        • 33372
        • 1,611 Posts
        So to me that would indicate that you may very well have a conflict with another script on the page. I would try removing any other scripts and seeing if it works then. If it does, then you’ll need to investigate what the conflict might be among them.
          "Things are not what they appear to be; nor are they otherwise." - Buddha

          "Well, gee, Buddha - that wasn't very helpful..." - ZAP

          Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
          • 28407
          • 20 Posts
          thanks again, you were right about script conflict, i’ll try to find a problem laugh
            • 28407
            • 20 Posts
            problem was with mootools script and dropdown menu >:(
              • 1686
              • 1 Posts
              Newbies here... I use php free chat work fine in single template, but cant integrate with my modx template. I haved try all solution from this forum but just "chat loading... please wait" and never done.
              any sollution for my problem please... thanks before.. smiley smiley
                • 19772
                • 2 Posts
                hi, i have a problem with this chat on modx.
                my page show me only that:

                Chat loading ...
                Please wait

                and the ajax call generate an error, it try to call this url that not exist:
                http://mysitename/document.parser.class.inc.php?id=47&pfc_ajax=1&f=loadChat

                I think the correct url should be this:
                http://mysitename/manager/includes/document.parser.class.inc.php?id=47&pfc_ajax=1&f=loadChat

                but i tried all combinations on my snippet but the url never change...

                i also try to watch the html code of the page with the chat and there is this code for include js:
                <script type="text/javascript" src="../../assets/snippets/phpfreechat/data/public/js/compat.js"></script>

                it should not be without the "../../" ?

                this is my snippet:
                <?php
                /*
                ::::::::::::::::::::::::::::::::::::::::
                 Snippet name: PHPFreeChat
                 Short Desc: Allows PHP Free Chat (http://www.phpfreechat.net) to be used within MODx
                 Version: 1.0
                 Author: Al B 
                 Date: 22nd January, 2007
                ::::::::::::::::::::::::::::::::::::::::
                
                global $modx;
                $snipPath = $modx->config["base_path"]."assets/snippets/";
                include_once($snipPath . "phpfreechat/src/phpfreechat.class.php");
                
                // You can configure PHP Free Chat by setting variables below. See the PHP Free Chat 
                // documentation for options.
                
                $params = array();
                
                $params["client_script_path"]="manager/includes/document.parser.class.inc.php";
                $params["title"] = "Chat Room";
                $params["refresh_delay"] = 2000; // 2000ms = 2s
                $params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
                $params["isadmin"] = true; // just for debug ;)
                $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
                $chat = new phpFreeChat( $params );
                
                // register chat javascript and css
                $modx->regClientStartupScript($chat->printJavascript());
                $modx->regClientCSS($chat->printStyle());
                
                return $chat->printChat();
                ?>
                


                thank to all
                and sorry for my english
                  • 33372
                  • 1,611 Posts
                  Maybe try:
                  $params["client_script_path"]="/manager/includes/document.parser.class.inc.php";

                  Note the extra slash before manager.
                    "Things are not what they appear to be; nor are they otherwise." - Buddha

                    "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                    Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                    • 19772
                    • 2 Posts
                    with that modify, the chat don’t start and show on that message on the browser, not on javascript console (firebugs)


                    phpFreeChat cannot be initialized, please correct these errors:
                    * /manager/includes/document.parser.class.inc.php doesn’t exist

                    :_(

                    PS: my site is on IIS 6
                      • 33372
                      • 1,611 Posts
                      OK so you probably need the full path (including your home directory), which you can find out from your host or using an FTP or terminal command (it will be something like /home/public_html/manager...).

                      But what seems odd to me is that this is a path on your file system, not a URL path. So either I’m confused about what you’re doing (certainly possible) or you also need to check the base href tag in your template. Perhaps once you fix the file system path the JavaScript error will go away.

                        "Things are not what they appear to be; nor are they otherwise." - Buddha

                        "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options