We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    Quote from: SashBats at Jan 08, 2011, 12:05 AM

    Hi, one more problem. I’m trying to sort folders by tags in russion
    [!easy2? &tag=`русская` &gal_desc=`1` !]


    It returns a error 2263 :
    #1267 Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ’like’
    SELECT cat_id FROM modx_easy2_dirs WHERE LOWER(cat_tag) LIKE ’%�������%’

    For understanding - is it problems with e2g or just my MODx codpages settings i wrote snippet

    <?php
    $sql="SELECT cat_id FROM modx_easy2_dirs WHERE LOWER(cat_tag) LIKE ’%русская%’";
    $result=mysql_query($sql) or die("Invalid query: " . mysql_error());
    while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
    printf ("ID: %s Name: %s", $row[0], $row[1]);
    } ;
    ?>

    It works and return few ID’s with tag "pyccкая". Where can be a the problem?

    Hang on...
    My test shows this works.
    How do you set your MySQL’s char set?
      Rico
      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
      MODx is great, but knowing how to use it well makes it perfect!

      www.virtudraft.com

      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

      Maintainter/contributor of Babel

      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      @SpaceW,
      What do you get from the Apache’s error log?
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 7571
        • 135 Posts
        Здравствуйте.
        Подскажите, пожалуйста, вывожу галерею таким образом:
        [!easy2? &gid=`3` &ecm=`0` &pagenum_class=`navi` &ecm=`0` &order=`DESC` &tpl=`assets/modules/easy2/templates/default/gallery.htm` &dir_tpl=`assets/modules/easy2/templates/default/directory.htm` &thumb_tpl=`assets/modules/easy2/templates/default/thumbnail.htm` &css=`assets/modules/easy2/templates/default/styleIE.css`!]

        Появляется две папки. Когда захожу в одной из папок, в командной строке браузере отображается такой путь: http://www.foldhome.ru/photo/kittens.html?sid=1&gid=5#1_55#1_5
        Можно ли вот эту часть: ?sid=1&gid=5#1_55#1_5 заменить на что-нибудь другое? К примеру, http://www.foldhome.ru/photo/kittens1.html
        Ну или как-нибудь еще.
          • 7057
          • 20 Posts
          Всем привет.
          После установки модуля на странице модуля выводятся ошибки:
          Warning: Invalid argument supplied for foreach() in /public_html/manager/processors/execute_module.processor.php(114) : eval()'d code on line 735
          
          Warning: Invalid argument supplied for foreach() in /public_html/manager/processors/execute_module.processor.php(114) : eval()'d code on line 792


          Ошибок при установке не было, все вроде поставилось нормально. Подскажите, что не так?
            • 26228
            • 71 Posts
            Quote from: goldsky at Jan 10, 2011, 03:18 AM


            Hang on...
            My test shows this works.
            How do you set your MySQL’s char set?

            Yes, i fixed it grin Strange, that it worked with my php snipped. Thanks.
              • 28106
              • 91 Posts
              Quote from: goldsky at Jan 10, 2011, 03:19 AM

              @SpaceW,
              What do you get from the Apache’s error log?

              i have an error on line 111 in index.php:

              [Tue Jan 11 14:54:12 2011] [error] [client 195.96.93.31] PHP Warning: mkdir() [<a href=’function.mkdir’>function.mkdir</a>]: \xd0\x9e\xd1\x82\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbe \xd0\xb2 \xd0\xb4\xd0\xbe\xd1\x81\xd1\x82\xd1\x83\xd0\xbf\xd0\xb5 in /home/httpd/vhosts/site.ru/httpdocs/assets/modules/easy2/index.php on line 111, referer: http://site.ru/manager/index.php?a=1&f=menu
                ----------------------------
                in ModX we trust
                • 26228
                • 71 Posts
                Quote from: goldsky at Jan 10, 2011, 03:18 AM

                Hang on...
                My test shows this works.
                How do you set your MySQL’s char set?

                Hi, i solved problem, but not compleatly. Now when i call [!easy2? &tag=`russLang`!] it returnes folders and/or files without any errors of collation. But after i can’t open folder’s thumbnail. File’s - no problem. If tag is in engl - no problem. Is it still charset troube?

                There are tree places with fild "collation" Before it was cp1251_general_ci. After your letter i changed it to utf8_general_ci. I attach file - are my settings right?
                  • 11307
                  • 136 Posts
                  Привет.

                  У меня установлена версия Easy 2 Gallery 1.4.0 - RC 1 (меня в ней устраивает дизайн самого модуля в отличие от RC4)

                  Проблема простая - при первом обращении к странице с вызовом модуля вылезает сообщение "Gallery template not found!"
                  При перезагрузке страница начинают появляться превью.

                  Как с этим бороться?

                  ps точно такая же версия модуля установлена на другом сайте. Версия модуля и системы одинаковы - проблем нет.
                    • 961
                    • 46 Posts
                    Поставил галерею , пытаюсь в документе вызвать ее вот так [!easy2? &gid=`2` &w=`120` &h=`100`!] но к сожалению ничего не появляется . Куда я только уже не пихал [!easy2? &gid=`2` &w=`120` &h=`100`!] что бы увидеть или работаете , везде одно и то же. Подскажите как вызвать данный модуль?
                      • 961
                      • 46 Posts
                      Подскажите , что надо делать после того как установил галерею ?