Mysql error:: 1052

Post Reply
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

Mysql error:: 1052

Post by Nikso »

Столкнулся с какойто непонятной ошибкой. Поставил скрипт на новый домен. Импортнул галер. Пытаюсь вывести тумбы на главной морде получаю ошибку и тумбы не отображаются

Code: Select all

Mysql error:: 1052 (Column 'alt' in field list is ambiguous) (db_link) in query SELECT id, gallery_slug, g.gallery_md5, sponsor_id, url, source_url, rot_content_id, embed_template, thumb_url, embed_code, flv_url, flv_size_x, flv_size_y, flv_thumb_url, tags, type, rgroup, content, content_type, duration, date, activation_date, casts, clicks, rating, priority, crop_profile_id, status, alt, description, custom_var1, custom_var2, custom_var3 FROM rot_galleries as g JOIN rot_gallery_info as gi ON gi.gallery_md5 = g.gallery_md5 JOIN rot_gallery_data as gd ON gd.gallery_md5 = g.gallery_md5 WHERE id IN (46,102,66,122,86) . (www.mydomain.com)
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/home/domains/mydomain.com/public_html/scj/includes/db_modules/mysql.php on line 249
все по дефолту стоит, ничего еще не крутил.
в хтмлке тумбы так выводятся
<a href="/gallery/<!--GALLERY_SLUG-->/index.html?4x1x46"><img src=/scj/thumbs/46.jpg width="240" height="180" border="1"></a>

Провел еще раз апдейт на последнюю версию. не помогает.

информация с home страницы админки

Code: Select all

Note, this is a free version.
Please, fill in fields : Settings/CJ Settings/Site Info/Top position keywords;
Please, Select your niche in Settings/CJ Settings/Site Info

PHP lib JSON is not installed - This is not an error. Everything will work, except some funny things in admin like autosuggest boxes and so on. You can ask admin to install it for you.

You do not use any modern cache engine - This is not an error. Everything will work, but default cache engine is filecache and it's a bit slow compared to Couchbase or Redis. It's a good idea to use them to improve your server's performance.

Mysql Table Engine: looks like mysql DB table rot_galleries is not of InnoD format. it's good idea to tune mysql and use innodb table format for rot_* tables. Please, read wiki for mysql tuning hints.

Quick scj folder check returns following warnings:

Permissions on logs/content_graber.log is 0644, 0666 is recommended (chmod 0666 /usr/home/domains/mydomain.com/public_html/scj/logs/content_graber.log)

Permissions on logs/preload.log is 0644, 0666 is recommended (chmod 0666 /usr/home/domains/mydomain.com/public_html/scj/logs/preload.log)
Semen_ssr
Posts: 867
Joined: Sun Apr 25, 2010 7:59 pm

Re: Mysql error:: 1052

Post by Semen_ssr »

тыц =)
а, после последнего апдейта без кеша открывал?
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

Re: Mysql error:: 1052

Post by Nikso »

Это я нашел. там написано что такая ошибка из-за прерванного апдейта. поэтому я и закатал снова апдейт.

Конечно открываю напрямую, мимо кэша
http://www.mydomain.com/scj/tube/index.php?skip_cache=1
Semen_ssr
Posts: 867
Joined: Sun Apr 25, 2010 7:59 pm

Re: Mysql error:: 1052

Post by Semen_ssr »

Тогда я ничего не придумал, ждем админа..
ps. ночью нарывался на замораживании инстала/апов в каком то %, небыло ничего такого?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error:: 1052

Post by admin »

ТОЧНО все апедйты ?
Don't forget to run script update
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

Re: Mysql error:: 1052

Post by Nikso »

Build 201308141245

Code: Select all

$ env HTTP_HOST=mydomain.com php update.php 50
Processing 50 for domain mydomain.com
Update 50.
**Update 50**

    Please, Take a look at wiki for comments.
    http://smartcj.com/wiki/doku.php?id=update_50

Stopping rotation for a while
Downloading files
100% downloaded  Done, everything's ok


        Admin area modifications - done

        New out.php, please, copy from scj/cgi to your location (usually root of domain)

        </b>
        Done. <b>Please, read this.

        Note, scj/cgi/index.php and scj/cgi/out.php are updated, if you use it at the root of your domain - copy please.

        **Update 50**
    Please, Take a look at wiki for comments.
    http://smartcj.com/wiki/doku.php?id=update_50

    Note !!! index.php and out.php are updated. If you use it outside scj/cgi folder - copy it to your location.
    Please, read wiki for comments.


Purging cache ... Basicly you can interrupt update here, but if you are interested in optimizing cache size - wait a bit ..
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error:: 1052

Post by admin »

Значит действительно был прерван 49.
надо очистить базу, залить бекап 49, запустить ап еще раз и не прерывать.
Don't forget to run script update
Post Reply