<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://altocms.ru/comments/1734/</link>
			<description><![CDATA[Здравствуйте! Решился наконец отказаться от LiveStreet. Главные факторы — это, конечно же, обещанная три года назад, но до сих пор]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27845)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27845</guid>
					<link>http://altocms.ru/1734.html#comment27845</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Конвертация базы с ЛС выполняется на Альто 1.0, а потом эту же базу надо конвертировать еще и в Альто 1.1. Можно вручную это сделать: <strong>install/db/convert_1.0_to_1.1.sql</strong><br>
<br>
Понимаю, что не очень изящно получается, но что делать — Альто постепенно все дальше отдаляется от старого доброго ЛС первой версии, и все тяжелее становится одним махом из старого ЛС все перенести в актуальную версию Альто. Лучше всего, наверное, вообще отдельный конвертор писать, а не пизать все в инсталляцию.<br>
<br>
А у ЛС, кстати, уже даже бета второй версии вышла.<br>
<br>
ЗЫ Топики большой, поэтому значительную часть текста я убрал под кат. Если что, можешь сам кат поставить, куда считаешь нужным]]></description>
					<pubDate>Thu, 03 Nov 2016 14:08:32 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27846)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27846</guid>
					<link>http://altocms.ru/1734.html#comment27846</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Спасибо за ответ!<br>
<br>
Попробовал прогнать convert_1.0_to_1.1.sql. Выдало следующие ошибки:<br>
<br>
<pre class="prettyprint"><code>-- Обновление поля prefix_topic.topic_date_show
UPDATE prefix_topic SET topic_date_show=topic_date_add
WHERE topic_publish=1 AND topic_date_show IS NULL
Ошибка в запросe (1054): Unknown column &#39;topic_date_show&#39; in &#39;where clause&#39;

-- STEP 15
ALTER TABLE  `prefix_topic` ADD INDEX (  `topic_date_show` )
Ошибка в запросe (1072): Key column &#39;topic_date_show&#39; doesn&#39;t exist in table</code></pre><br>
<br>
На сайте:<br>
<pre class="prettyprint"><code>SQL Error: Unknown column &#39;t.topic_date_show&#39; in &#39;where clause&#39; at /var/www/site.ru/common/classes/modules/topic/mapper/Topic.mapper.class.php line 395 --- Array ( [code] =&#62; 1054 [message] =&#62; Unknown column &#39;t.topic_date_show&#39; in &#39;where clause&#39; [query] =&#62; SELECT b.blog_type AS ARRAY_KEY, COUNT(t.topic_id) AS cnt FROM prefix_topic AS t LEFT JOIN prefix_blog AS b ON t.blog_id=b.blog_id WHERE 1=1 AND (t.topic_publish = 1) AND (t.topic_date_show IS NULL OR t.topic_date_show &#60;= &#39;2016-11-03 17:11:45&#39;) AND ((t.topic_date_show IS NOT NULL AND t.topic_date_show &#62;= &#39;2016-11-02 17:00:00&#39; AND t.topic_date_show &#60;=&#39;2016-11-03 17:11:45&#39;) OR (t.topic_date_show IS NULL AND t.topic_date_add &#62;= &#39;2016-11-02 17:00:00&#39;)) GROUP BY b.blog_type [context] =&#62; /var/www/site.ru/common/classes/modules/topic/mapper/Topic.mapper.class.php line 395 )</code></pre>]]></description>
					<pubDate>Thu, 03 Nov 2016 17:04:06 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27853)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27853</guid>
					<link>http://altocms.ru/1734.html#comment27853</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Нужно создать колонку <strong>topic_date_show</strong> в таблице <strong>prefix_topic</strong> и загнать туда значения по умолчанию:<br>
<pre class="prettyprint"><code>ALTER TABLE `prefix_topic` ADD `topic_date_show` datetime DEFAULT NULL AFTER `topic_date_edit`;

UPDATE prefix_topic SET topic_date_show=topic_date_add
WHERE topic_publish=1 AND topic_date_show IS NULL;

ALTER TABLE  `prefix_topic` ADD INDEX (  `topic_date_show` );
</code></pre>]]></description>
					<pubDate>Sun, 06 Nov 2016 10:49:07 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27852)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27852</guid>
					<link>http://altocms.ru/1734.html#comment27852</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Прогнал convert_1.0.3_to_alto.sql и convert_1.0_to_1.1.sql вручную, а потом провел установку. Во время SQL-импорта вылезла единственная ошибка:<br>
<pre class="prettyprint"><code>ALTER TABLE `prefix_topic` ADD `topic_date_show` datetime DEFAULT NULL AFTER `topic_date_edit`
Ошибка в запросe (1060): Duplicate column name &#39;topic_date_show&#39;</code></pre><br>
В остальном вроде сайт завелся, но есть косяки.<br>
<br>
1) Не работают личные сообщения (/talk/) и настройки (/settings/):<br>
<pre class="prettyprint"><code>SQL Error: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column &#39;site.m.date_add&#39; which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at /var/www/site.ru/common/classes/modules/mresource/mapper/Mresource.mapper.class.php line 1025 --- Array ( [code] =&#62; 1055 [message] =&#62; Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column &#39;site.m.date_add&#39; which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [query] =&#62; SELECT IF( ISNULL(t.target_tmp), IF((t.target_type LIKE &#39;topic%&#39;), &#39;topic&#39;, IF(t.target_type = &#39;profile_avatar&#39; OR t.target_type = &#39;profile_photo&#39;, &#39;user&#39;, t.target_type)), &#39;tmp&#39;) AS ttype , count(t.target_id) AS count FROM prefix_mresource_target as t, prefix_mresource as m WHERE t.mresource_id = m.mresource_id AND (m.type & (1 | 16 | 64)) AND m.user_id = 1 GROUP BY ttype ORDER BY m.date_add desc [context] =&#62; /var/www/site.ru/common/classes/modules/mresource/mapper/Mresource.mapper.class.php line 1025 )</code></pre><br>
<br>
2) Аватарки большие:<br>
<br>
<img src="http://altocms.ru/uploads/images/00/04/37/2016/11/06/0u2b29a195-4d42a90e-6a501363.png"><br>
<br>
3) Фотографии обрезаются:<br>
<br>
<img src="http://altocms.ru/uploads/images/00/04/37/2016/11/06/0u7fcdbbbe-ceb36a00-2b140150.png">]]></description>
					<pubDate>Sun, 06 Nov 2016 08:29:59 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27854)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27854</guid>
					<link>http://altocms.ru/1734.html#comment27854</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[По поводу SQL-ошибки — самое простое, пожалуй, это удалить поле prefix_topic.topic_date_show и создать его заново, как в я писал в комменте выше.<br>
<br>
По поводу ошибки 1) — видимо, вылезают какие-то нюансы конкретной версии MySQL. Какая версия используется?<br>
<br>
Ошибка 2) — для аватарок в базе, наверное, стоят абсолютные пути, указывающие на другой хост, поэтому обрезать их автоматически движок не может, а в верстке явно не задается размер. Поправим<br>
<br>
По фото, честно говоря, уже не помню детально как там работает, посмотрю]]></description>
					<pubDate>Sun, 06 Nov 2016 11:04:28 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27858)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27858</guid>
					<link>http://altocms.ru/1734.html#comment27858</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[<blockquote>1) — видимо, вылезают какие-то нюансы конкретной версии MySQL. Какая версия используется?</blockquote>
MySQL 5.7.<br>
<br>
<blockquote>2) — для аватарок в базе, наверное, стоят абсолютные пути, указывающие на другой хост, поэтому обрезать их автоматически движок не может, а в верстке явно не задается размер. Поправим</blockquote>
Аватарки от Livestreet. Я их не трогал. Лежат в uploads/images.]]></description>
					<pubDate>Sun, 06 Nov 2016 11:34:48 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27860)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27860</guid>
					<link>http://altocms.ru/1734.html#comment27860</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[<blockquote>Аватарки от Livestreet. Я их не трогал. Лежат в uploads/images.</blockquote>
Да, но в базе какой путь к ним прописан? Скорее всего полный путь к старому хосту]]></description>
					<pubDate>Sun, 06 Nov 2016 12:20:55 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27864)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27864</guid>
					<link>http://altocms.ru/1734.html#comment27864</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Угу, user_profile_avatar и user_profile_foto с абсолютными путями вида<br>
<pre class="prettyprint"><code>http://site.ru/uploads/images/00/00/01/2013/05/14/avatar_100x100.png</code></pre><br>
Заменить на относительный?]]></description>
					<pubDate>Sun, 06 Nov 2016 13:42:28 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27867)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27867</guid>
					<link>http://altocms.ru/1734.html#comment27867</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Если прописать путь вида &#39;@/uploads/images/...&#39; (т.е. прям так, с символом @ в начале), то движок сам нарежет нужного размера. Ну и в CSS, конечно, я тоже исправлю, чтоб размеры явно подгонялись при выводе, даже если картинка большая]]></description>
					<pubDate>Sun, 06 Nov 2016 13:58:46 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27868)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27868</guid>
					<link>http://altocms.ru/1734.html#comment27868</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Спасибо! Аватарки поправились за единственным исклюением: в профиле юзера аватарки его друзей прыгают вниз при наведении.<br>
<br>
Высокие фотографии пользователей в профиле по-прежнему обрезаются. Видимо, потому что в LS для них не задана высота, а в Alto задана.]]></description>
					<pubDate>Sun, 06 Nov 2016 14:32:15 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27869)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27869</guid>
					<link>http://altocms.ru/1734.html#comment27869</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Еще из проблем. Постоянно вылезает сообщение «System Error #1001»<br>
<br>
<img src="http://altocms.ru/uploads/images/00/04/37/2016/11/06/0u24279ad6-6697ab26-78fb8785.png"><br>
В панели редактора кнопка с буквой «а:» при повторном наведении заглючивает: меню вылезает под полем ввода, и ничего выбрать нельзя:<br>
<br>
<img src="http://altocms.ru/uploads/images/00/04/37/2016/11/06/0u25a0a1a2-76f60bc9-6de04c60.png"><br>
Вообще сам этот редактор имеет какие-то визуальные глюки при прокрутке или наведении: выглядит это как перекрытие белым прямоугольником элементов этого редактора или части страницы. Маленько раздражает.<br>
<br>
При создании статьи предлагается два личных блога: «блог им. меня» (видимо, из LS) и еще какой-то «мой персональный блог» (с маленькой буквы).<br>
<br>
Загрузка картинок не демонстрирует прогресса, из-за чего многие могут подумать, что загрузка зависла, и нажать на кнопку «Загрузить» снова. Стоило бы блокировать кнопку «Загрузить» после нажатия и показывать какой-нибудь вращающийся лоадер.<br>
<br>
В теме «Start Kit» что обозначает эта шестеренка? Она не кликается. Если так и задумано, то зачем она вообще?) Ссылки «Редактировать» и «Удалить» вполне сами за себя говорят.<br>
<br>
<img src="http://altocms.ru/uploads/images/00/04/37/2016/11/06/0u4db48cb1-42cc8941-46ebc64e.png">]]></description>
					<pubDate>Sun, 06 Nov 2016 15:20:00 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27873)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27873</guid>
					<link>http://altocms.ru/1734.html#comment27873</link>
					<author>my.reg10@ukr.net</author>
					<description><![CDATA[«System Error #1001» у меня возникала после того, как я копировал установочные файлы на сервер по ФТП и не заметил, что несколько файлов не скопировались. Добавил файлы — проблема решилась.]]></description>
					<pubDate>Mon, 07 Nov 2016 11:40:47 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27877)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27877</guid>
					<link>http://altocms.ru/1734.html#comment27877</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[System Error #1001 — в первую очередь смотреть логи /_tmp/logs<br>
Пришедшие с ЛС привыкли, что в логах, как правило, смотреть бесполезно, а зря — в логах Альто много чего можно увидеть]]></description>
					<pubDate>Mon, 07 Nov 2016 15:30:17 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27884)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27884</guid>
					<link>http://altocms.ru/1734.html#comment27884</link>
					<author>chimit@gmail.com</author>
					<description><![CDATA[Во время такой ошибки вот это сыпется в SQL лог:<br>
<pre class="prettyprint"><code>[LOG:1478578616.534-582151B88312A][2016-11-08 07:16:56][PID:13286][ERROR][[
SQL Error: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column &#39;site.m.date_add&#39; which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at /var/www/site.ru/common/classes/modules/mresource/mapper/Mresource.mapper.class.php line 987
---
Array
(
    [code] =&#62; 1055
    [message] =&#62; Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column &#39;site.m.date_add&#39; which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
    [query] =&#62; SELECT
                  IF(
                    ISNULL(t.target_tmp),
                    IF((t.target_type LIKE &#39;topic%&#39; AND t.target_id = 0), &#39;current&#39;,
                      IF(t.target_type = &#39;profile_avatar&#39; OR t.target_type = &#39;profile_photo&#39;, &#39;user&#39;, t.target_type)),
                    &#39;tmp&#39;) AS ttype
                  , count(t.target_id) AS count
                FROM
                  prefix_mresource_target as t, prefix_mresource as m
                WHERE
                  t.mresource_id = m.mresource_id
                  AND m.user_id = 1
                  AND t.target_type IN ( &#39;current&#39;, &#39;tmp&#39;, &#39;blog_avatar&#39;, &#39;profile_avatar&#39;, &#39;profile_photo&#39; )

                GROUP  BY
                  ttype                ORDER BY
                 m.date_add desc
    [context] =&#62; /var/www/site.ru/common/classes/modules/mresource/mapper/Mresource.mapper.class.php line 987
)

]][END:1478578616.534-582151B88312A]</code></pre><br>
<br>
Т.е. это все та же ошибка, что не пускает в личные сообщения и настройки.]]></description>
					<pubDate>Tue, 08 Nov 2016 07:11:41 +0300</pubDate>
									</item>
							<item>
					<title>Проблема с переездом с LiveSteet на AltoCMS 1.1.23 (comment #27885)</title>
					<guid isPermaLink="true">http://altocms.ru/t/1734/#comment27885</guid>
					<link>http://altocms.ru/1734.html#comment27885</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Завел тестовый сайт на MySQL 5.7 — ошибки нет. То ли они возникает при определенных наборах данных, то ли еще в чем проблема, пока не понял. Но буду разбираться]]></description>
					<pubDate>Tue, 08 Nov 2016 13:38:22 +0300</pubDate>
									</item>
					</channel>
	</rss>
