We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7641
    • 9 Posts
    PHPFreeChat + modx-0.9.6. ошибка =
    Please correct these errors:
        * /My Domain path/manager/includes/document.parser.class.inc.php(766) : eval()’d code doesn’t exist
    отдельно от модакса чат вызывается нормально по _http://My Domain/assets/snippets/phpfreechat/index.php
    Для чистоты эксперимента ставил и на нулевый модакс,
    сниппет вызова - http://modxcms.com/PHPFreeChat-1.0-1285.html ?
    папки data - расшарил (777)

    Незнаю что и думать...
      • 19164
      • 1,215 Posts
      Скорее всего где-то синтаксическая ошибка в коде.
        DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

        Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

        [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
        • 7641
        • 9 Posts
        Сам чат по прямому линку без модекса работает
        вобщем то работало и неделю назад, но много чего делал и модх переставлял и вот...
        Отключались все строки в сниппете (кроме минимума)
        код сниппета такой

        global $modx;
        $snipPath = $modx->config["base_path"]."assets/snippets/";
        include_once($snipPath . "/phpfreechat/src/phpfreechat.class.php");

        $params = array();
        $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 wink
        $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();
          • 19164
          • 1,215 Posts
          Скобки <?php ?> вначале и в конце не забыли?
            DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

            Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

            [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
            • 7641
            • 9 Posts
            есть конечно - я для краткости шапку отрезал, ну и нижние соответственно убрал
              • 19164
              • 1,215 Posts
              Ошибка скорее всего в путях тут

              $snipPath = $modx->config["base_path"]."assets/snippets/";
              include_once($snipPath . "/phpfreechat/src/phpfreechat.class.php");

              Возможно из-за того что слеш // повторяется два раза - путь получится assets/snippets//phpfreechat/src/phpfreechat.class.php
                DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                • 7641
                • 9 Posts
                да это я заметил при отладке убрал давно, хотя обычно лишние слеши не мешают
                проверял как доходит до код сниппета до 766 строки в документ-парсере $snip= eval ($snippet); - тоже вроде ничего не бьется
                  • 7641
                  • 9 Posts
                  Хорошо, а работает ли у кого
                  phpfreechat-1.0-final + Modx 0.9.6 ?
                    • 7094
                    • 11 Posts
                    Я, похоже, нашел, в чем дело. Почему-то JS файлы включаются с абсолютными путями. Если их вставить в шаблон с верными путями, все начинает работать. Ищу способ поправить баг...
                    phpfreechat-1.2-final + Modx 0.9.6.2
                      • 2507
                      • 49 Posts
                      запустил чат нашел в чем проблема на форуме.

                      evo 1.0.2 + phpfreechat 1.2

                      нужно добавить путь на вашем сервере $params["client_script_path"] = "/storage/home/srv15311/htdocs/index.php";
                      посомтрите какой у вас и добавьте.


                      <?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
                      ::::::::::::::::::::::::::::::::::::::::
                      Description:
                          Allows you to include PHP Free Chat in your MODx web site.
                      ::::::::::::::::::::::::::::::::::::::::
                      Instructions:
                          Download PHP Free Chat from http://www.phpfreechat.net
                          Unzip the archive, and put it in /assets/snippets/phpfreechat
                          Change ownership of all files in that directory to make them writeable by 
                              the web server if necessary
                          Copy the contents of this file as a new snippet called 'PHPFreeChat'.
                          Call this snippet from a MODx document.
                      ::::::::::::::::::::::::::::::::::::::::
                      Example Usage:
                          [[PHPFreeChat]]
                      ::::::::::::::::::::::::::::::::::::::::
                      */
                      
                      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"] = "/storage/home/srv15311/htdocs/index.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();
                      ?>