-
☆ 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.
-
☆ 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.
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
Привет.
У меня установлена версия Easy 2 Gallery 1.4.0 - RC 1 (меня в ней устраивает дизайн самого модуля в отличие от RC4)
Проблема простая - при первом обращении к странице с вызовом модуля вылезает сообщение "Gallery template not found!"
При перезагрузке страница начинают появляться превью.
Как с этим бороться?
ps точно такая же версия модуля установлена на другом сайте. Версия модуля и системы одинаковы - проблем нет.
Поставил галерею , пытаюсь в документе вызвать ее вот так [!easy2? &gid=`2` &w=`120` &h=`100`!] но к сожалению ничего не появляется . Куда я только уже не пихал [!easy2? &gid=`2` &w=`120` &h=`100`!] что бы увидеть или работаете , везде одно и то же. Подскажите как вызвать данный модуль?
Подскажите , что надо делать после того как установил галерею ?