Author Topic: DB Errors , gallery was working fine till switching servers. any help?  (Read 3407 times)

0 Members and 1 Guest are viewing this topic.

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
I just changed hosts , and from a Win sever to a linux server. And now I have these Errors on my gallery.

I did a a couple of searches but im not sure what im looking for, alot of topics returned with problems with mysql 5.

PHP version 4.4.2
MySQL version 4.1.21-standard
Apache version 1.3.36 (Unix)

Can anyone help me?


DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id LIMIT 3327, 1
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.image_md5, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 8
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/fbiss/public_html/gallery/includes/db_mysql.php on line 116

Thanks for the help

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: DB Errors , gallery was working fine till switching servers. any help?
« Reply #2 on: October 27, 2006, 07:06:43 PM »
Thanks Kurt,

I did see that topic before but was confused since I "don't" have mysql 5 according to my cpanel.

However I just got off the phone with my host , and turns out it is mysql 5 , and cpanel isnt updating correct.

Atleast now I have a avenue to fix the problem.

Thanks for the quick responce.

 8)

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: DB Errors , gallery was working fine till switching servers. any help?
« Reply #3 on: October 27, 2006, 08:37:35 PM »

Woot...

Got most everythign work now, except my Dreamboard.

looks like I gotta read threw that whole topic.