We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20995
    • 6 Posts
    I’m relatively new at this whole php game, so please go easy on me! When I run PHPFreeChat by itself, it seems to work fine, but I get the following error message when I use the Modx snippet and call.

    http://pastebin.com/kbNPDnis

    I assume the important part is:

    Error: Assigning the return value of new by reference is deprecated

    Any idea what I might be doing wrong?

    edit: Oh, and I should probably mention that I’m running on XAMPP at the moment for development purposes.
      • 11468
      • 20 Posts
      Hey guys

      Be gentle still a bit green when it comes to snippets etc.

      Trying out this on my site; got same problems as #5 and Mikky’s solution works to solve this error; now I just get a blank page. Any ideas? Thanks
        • 9883
        • 8 Posts
        Hey guys,

        I get a page that says "Chat loading...Please wait" and it doesn’t complete loading. Any solutions?
          • 10553
          • 8 Posts
          Hi

          Browser 127.0.0.1/chat.html

          Chat loading
          please wait

          Help me solve the problem?
            • 16321
            • 2 Posts
            Add
            $params["client_script_path"]=$modx->config["base_path"];
              • 10553
              • 8 Posts
              And still says wait huh
                • 12022
                • 2 Posts
                what about external access??? when i know the snippet path i can call the chat outside of modx... eg: mysite/modx/assets/snippets/phpfreechat/index.php How can i ban that??? The chat should only starts from inner modx... not from outside...
                  • 35892
                  • 2 Posts
                  "Chat loading...Please wait"

                  Quote from: kreet at Feb 22, 2011, 06:09 PM

                  Add
                  $params["client_script_path"]=$modx->config["base_path"];


                  Doesn’t work...

                  <?php
                  global $modx;
                  $snipPath = $modx->config["base_path"]."assets/snippets/";
                  include_once($snipPath . "/phpfreechat/src/phpfreechat.class.php");
                  $params = array();
                  $params["client_script_path"]=$modx->config["base_path"];
                  $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();
                  ?>


                  also i tried
                  $params["client_script_path"]="home/u113359/studioccru/www/manager/includes/document.parser.class.inc.php";
                    • 35892
                    • 2 Posts
                    I found this at http://www.phpfreechat.net/parameter_errors?s[]=client&s[]=script&s[]=path

                    The chatroom “Chatroom Loading… Please Wait” box remains idle, chatroom does not load.
                    Check $params["server_script_url"]


                    What to check?

                    Thanks for everyone
                      • 33976 ☆ A M B ☆
                      • 571 Posts
                      Well, i guess the best answer would be to tell you to launch Firebug (or anything allowing you to see what’s going on the JS side).

                      But as far as i remember my experience with PFC, i had the same kind of troubles while i was having some JQuery on the same template. PFC works with Prototype, which conflicts with JQuery (or other JS library i guess). So you might want to check that either.

                      I hope this will lead you to a solution,

                      Cheers