Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Moved to new server; started having errors  (Read 3630 times)

0 Members and 1 Guest are viewing this topic.

aravot

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 73
    • Product Compare for Virtuemart Shopping Cart
Moved to new server; started having errors
« on: August 11, 2005, 03:36:57 am »

CPG 1.3.3
Moved to new server, now I am getting the following error, uploaded fresh theme.php and functions.inc.php no change.

Quote
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite.com/public_html/cpg/index.php:751) in /home/mysite.com/public_html/cpg/themes/classic/theme.php on line 810

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite.com/public_html/cpg/index.php:751) in /home/mysite.com/public_html/cpg/themes/classic/theme.php on line 811

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite.com/public_html/cpg/index.php:751) in /home/mysite.com/public_html/cpg/include/functions.inc.php on line 51

Quote
There was an error while processing a database query.
While executing query "UPDATE cpgpictures SET randpos = ROUND(RAND()*0) WHERE 1" on 0

mySQL error: Unknown column 'randpos' in 'field list'


Debug Info:
Quote
USER:
------------------
Array
(
    [ID] => c94252effa9b5ab035a72be8417a9f7c
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Moderator
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [groups] => Array
        (
           
  • => 3

        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpgfiletypes;
  • [1] => SELECT * FROM cpgusers WHERE user_id='0'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpgusergroups WHERE group_id in (3)
        [3] => SELECT group_name FROM  cpgusergroups WHERE group_id= 3
        [4] => DELETE FROM cpgbanned WHERE expiry < '2005-08-10 21:29:04'
        [5] => SELECT * FROM cpgbanned WHERE ip_addr='207.233.41.15' OR ip_addr='207.233.41.15' OR user_id=0
        [6] => SELECT cid, name, description, thumb FROM cpgcategories WHERE parent = '0'  ORDER BY pos
        [7] => SELECT aid FROM cpgalbums as a WHERE category>=10000
        [8] => SELECT count(*) FROM cpgpictures as p, cpgalbums as a WHERE p.aid = a.aid AND category >= 10000
        [9] => SELECT cid, name, description, thumb FROM cpgcategories WHERE parent = '1'  ORDER BY pos
        [10] => SELECT aid FROM cpgalbums WHERE category = 2
        [11] => SELECT count(*) FROM cpgpictures as p, cpgalbums as a WHERE p.aid = a.aid AND category = 2
        [12] => SELECT count(*) FROM cpgalbums as a WHERE category = '2'
        [13] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpgalbums as a LEFT JOIN cpgpictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,4
        [14] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpgpictures WHERE aid IN (28, 29, 30, 31) AND approved = 'YES' GROUP BY aid
        [15] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpgpictures WHERE pid='10'
        [16] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpgpictures WHERE pid='23'
        [17] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpgpictures WHERE pid='16'
        [18] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpgpictures WHERE pid='90'
        [19] => SELECT cid, name, description, thumb FROM cpgcategories WHERE parent = '2'  ORDER BY pos
        [20] => SELECT aid FROM cpgalbums as a WHERE category = '0'
        [21] => SELECT count(*) FROM cpgalbums as a WHERE 1
        [22] => SELECT count(*) FROM cpgpictures as p LEFT JOIN cpgalbums as a ON a.aid=p.aid WHERE 1
        [23] => SELECT count(*) FROM cpgcomments as c LEFT JOIN cpgpictures as p ON c.pid=p.pid LEFT JOIN cpgalbums as a ON a.aid=p.aid WHERE 1
        [24] => SELECT count(*) FROM cpgcategories WHERE 1
        [25] => SELECT sum(hits) FROM cpgpictures as p LEFT JOIN cpgalbums as a ON p.aid=a.aid WHERE 1
        [26] => SELECT count(*) FROM cpgalbums as a WHERE category = '0'
        [27] => SELECT COUNT(*) from cpgpictures WHERE approved = 'YES'
        [28] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpgpictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
        [29] => SELECT COUNT(*) from cpgpictures WHERE approved = 'YES'
        [30] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpgpictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
        [31] => SELECT count(*) FROM cpgpictures WHERE 1
        [32] => UPDATE cpgpictures SET randpos = ROUND(RAND()*0) WHERE 1
    )

    ==========================
    GET :
    ------------------
    Array
    (
       
[cat] => 0
)

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.546 seconds - 33 queries in 0.01 seconds - Album set :
« Last Edit: August 12, 2005, 10:06:51 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moved to new server; started having errors
« Reply #1 on: August 11, 2005, 09:07:58 am »

The "real" error is the message about the query that failed. The warning messages are subsequent error messages that can be ignored. Post a screenshot from phpMyAdmin, browsing the table structure of cpgpictures. Probably you haven't dumped the old database properly or you have restored the dump improperly.
Logged

aravot

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 73
    • Product Compare for Virtuemart Shopping Cart
Re: Moved to new server; started having errors
« Reply #2 on: August 11, 2005, 08:57:06 pm »

I start over reuploaded database and files, this time got lucky, I guess something got corrupted first time.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.