Производим перенос мастер слейва с SCJ на TCMS.
1. Переводим базу в innodb.
2. Апдейтим сайт до 52
env HTTP_HOST=xxx php update.php 52
3. Устанавливаем TCMS:
curl -sS http://smartcj.com/updates2/install | php7.2 --
Тут ошибок нет. Всё окей.
Кидаем права для пользователя.
4. Конвернтируем
php7.2 scj_1to2_db_converter.php
На этапе конвентирования получаем ошибки:
Code: Select all
Mysql error 1062: Duplicate entry 'favorites' for key 'name' (insert into rot_pages (`id`, `name`, `rows`, `cols`, `shows`, `clicks`, `benchmark_start`, `benchmark_pages`, `template`, `save_path`, `create_archives`, `cms_page`, `cache_time`) values ('30', 'favorites', '0', '0', '0', '28', '0', '0', '<template name=default ><div class=\"item\">
<a href=\"/gallery/<!--SAFE_DESC-->/<!--GALLERY_ID-->/index.html\" arts=\'<!--THUMB_LINK-->\'><img src=\"<!--THUMB_URL-->\" />
<div class=\"info\">
<h3><!--ALT_23--></h3>
<span class=\"g_rating\"><?=(<!--RATING--> == 0) ? \'0\' : round( (<!--RATING--> - 1) * 100 ) . \'%\'?></span>
<div class=\"clearfix\"></div>
</div>
</a>
<div class=\"remove\"><a href=\'/action/favorites/remove=<!--GALLERY_ID-->/\' target=\"_parent\" title=\"Delete this gallery from your favorites\">Delete</a></div>
</div></template><?php $index_page=\"favorites\"; ?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<title>Your Favorites | xxx</title>
<!--SCJ_INCLUDE-->
<link href=\"/styles.css\" rel=\"stylesheet\" type=\"text/css\">
<script type=\"text/javascript\" src=\"/js/jquery.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function(){
$(\'a\').each(function(){
if ($(this).attr(\'arts\')) {
$(this).bind(\'click\', function(){
$(this).attr(\'href\', $(this).attr(\'href\')+ \'?\' + $(this).attr(\'arts\'));
$(this).unbind(\'click\');
});
}
});
});
</script>
<script>
$(document).ready(function(){
$(\"#login-open\").toggle(
function(){
$(\".login_blk\").show();
},
function(){
$(\".login_blk\").hide();
});
});
</script>
<base target=\"_blank\">
</head>
<body><!--SCJ_COUNT_VIEWS-->
<div class=\"container\">
<div class=\"wrapper\">
<div class=\"header\">
<!--INCLUDE_TEMPLATE_header_links-->
<h1 class=\"logo\"><a href=\"/\"><img src=\"/img/logo.png\" width=\"240\" height=\"45\"></a></h1>
<!--INCLUDE_TEMPLATE_navigation-->
<div class=\"clearfix\"></div>
</div>
</div><!--wrapper-->
<div class=\"wrapper\">
<ul class=\"pages\">
<li class=\"ttx\">Pages: </li>
<pagination first_pages=3 adjustment=1 last_pages=3 range_separator=\"...\">
<li><a href=\"/action/favorites/page=<!--PAGE_NUM-->/\" title=\"Page #<!--PAGE_NUM-->\" target=\"_parent\"><!--PAGE_NUM--></a></li>
</pagination>
<div class=\"clearfix\"></div>
</ul>
<div class=\"thumbs\">
<!--default_1-180-->
<div class=\"clearfix\"></div>
</div>
<ul class=\"pages\">
<li class=\"ttx\">Pages: </li>
<pagination first_pages=3 adjustment=1 last_pages=3 range_separator=\"...\">
<li><a href=\"/action/favorites/page=<!--PAGE_NUM-->/\" title=\"Page #<!--PAGE_NUM-->\" target=\"_parent\"><!--PAGE_NUM--></a></li>
</pagination>
<div class=\"clearfix\"></div>
</ul>
</div><!--wrapper-->
<div class=\"footer\">
<div class=\"wrapper\">
<b>xxx art</b> is a work depicting the vision of an artist working with the human form naked. Be it paintings, photographs, or mixed media, the <b>art xxx</b> is a term attempting to give an artistic depiction of a xxx woman form.<br>
Warning! This site contains porn links to sexually explicit material. If you\'re under the age of 18, find adult material offensive, or if it\'s illegal for you to view adult material in your community, please leave now. All images on this site are all in compliance with the 18 USC 2257 US Federal Law
<br>
© Copyright 2004-2014, xxx- ALL RIGHTS RESERVED<br>
<div class=\"clearfix\"></div></div>
</div><!--wrapper-->
</div>
</body></html>', 'favorites', '0', '2', '0')) (15.020900011063, 0.0076620578765869)
Fatal error: Uncaught Exception: Mysql error:: 1062 (Duplicate entry 'favorites' for key 'name') (db_link) in query insert into rot_pages (`id`, `name`, `rows`, `cols`, `shows`, `clicks`, `benchmark_start`, `benchmark_pages`, `template`, `save_path`, `create_archives`, `cms_page`, `cache_time`) values ('30', 'favorites', '0', '0', '0', '28', '0', '0', '<template name=default ><div class=\"item\">
<a href=\"/gallery/<!--SAFE_DESC-->/<!--GALLERY_ID-->/index.html\" arts=\'<!--THUMB_LINK-->\'><img src=\"<!--THUMB_URL-->\" />
<div class=\"info\">
<h3><!--ALT_23--></h3>
<span class=\"g_rating\"><?=(<!--RATING--> == 0) ? \'0\' : round( (<!--RATING--> - 1) * 100 ) . \'%\'?></span>
<div class=\"clearfix\"></div>
</div>
</a>
<div class=\"remove\"><a href=\'/action/favorites/remove=<!--GALLERY_ID-->/\' target=\"_parent\" title=\"Delete this gallery from your favorites\">Delete</a></div>
</div></template><?php $index_page=\"favorites\"; ?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<title>Your Favorites | xxx</title>
<!--SCJ_INCLUDE-->
<link href=\"/styles.css\" rel=\"stylesheet\" type=\"text/css\">
<script type=\"text/javascript\" src=\"/js/jquery.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function(){
$(\'a\').each(function(){
if ($(this).attr(\'arts\')) {
$(this).bind(\'click\', function(){
$(this).attr(\'href\', $(this).attr(\'href\')+ \'?\' + $(this).attr(\'arts\'));
$(this).unbind(\'click\');
});
}
});
});
</script>
<script>
$(document).ready(function(){
$(\"#login-open\").toggle(
function(){
$(\".login_blk\").show();
},
function(){
$(\".login_blk\").hide();
});
});
</script>
<base target=\"_blank\">
</head>
<body><!--SCJ_COUNT_VIEWS-->
<div class=\"container\">
<div class=\"wrapper\">
<div class=\"header\">
<!--INCLUDE_TEMPLATE_header_links-->
<h1 class=\"logo\"><a href=\"/\"><img src=\"/img/logo.png\" width=\"240\" height=\"45\"></a></h1>
<!--INCLUDE_TEMPLATE_navigation-->
<div class=\"clearfix\"></div>
</div>
</div><!--wrapper-->
<div class=\"wrapper\">
<ul class=\"pages\">
<li class=\"ttx\">Pages: </li>
<pagination first_pages=3 adjustment=1 last_pages=3 range_separator=\"...\">
<li><a href=\"/action/favorites/page=<!--PAGE_NUM-->/\" title=\"Page #<!--PAGE_NUM-->\" target=\"_parent\"><!--PAGE_NUM--></a></li>
</pagination>
<div class=\"clearfix\"></div>
</ul>
<div class=\"thumbs\">
<!--default_1-180-->
<div class=\"clearfix\"></div>
</div>
<ul class=\"pages\">
<li class=\"ttx\">Pages: </li>
<pagination first_pages=3 adjustment=1 last_pages=3 range_separator=\"...\">
<li><a href=\"/action/favorites/page=<!--PAGE_NUM-->/\" title=\"Page #<!--PAGE_NUM-->\" target=\"_parent\"><!--PAGE_NUM--></a></li>
</pagination>
<div class=\"clearfix\"></div>
</ul>
</div><!--wrapper-->
<div class=\"footer\">
<div class=\"wrapper\">
<b>xxxt</b> is a work depicting the vision of an artist working with the human form naked. Be it paintings, photographs, or mixed media, the <b>art xxx</b> is a term attempting to give an artistic depiction of a xxx woman form.<br>
Warning! This site contains porn links to sexually explicit material. If you\'re under the age of 18, find adult material offensive, or if it\'s illegal for you to view adult material in your community, please leave now. All images on this site are all in compliance with the 18 USC 2257 US Federal Law
<br>
© Copyright 2004-2014, xxx - ALL RIGHTS RESERVED<br>
<div class=\"clearfix\"></div></div>
</div><!--wrapper-->
</div>
</body></html>', 'favorites', '0', '2', '0'). () in /home/sites/sites/xxx/ertyu/includes/db_modules/mysql.php:129
Stack trace:
Stack trace:
#0 /home/sites/sites/xxx/ertyu/includes/db_modules/mysql.php(160): db_error('insert into rot...', 1062, 'Duplicate entry...', 'db_link')
#1 /home/sites/sites/xxx/ertyu/includes/db_modules/mysql.php(272): db_query('insert into rot...', 'db_link')
#2 /home/sites/sites/xxx/ertyu/bin/scj_1to2_db_converter.php(156): db_perform('rot_pages', Array)
#3 {main}
thrown in /home/sites/sites/xxx/ertyu/includes/db_modules/mysql.php on line 129
Не подскажете, как исправить ошибку? База не поверждена. Оптимизация средствами SCJ не помогает. Кэш сбрасывали.