Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: There was an error while processing a database query  (Read 3900 times)

0 Members and 1 Guest are viewing this topic.

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
There was an error while processing a database query
« on: November 17, 2003, 07:45:15 pm »

HELP!

everytime i click on a image to view it give me this error:

There was an error while processing a database query
Logged

Nibbler

  • Guest
There was an error while processing a database query
« Reply #1 on: November 17, 2003, 07:47:01 pm »

Turn debug mode on in config, reproduce the error, then post the message you get if you still can't resolve the problem.
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
There was an error while processing a database query
« Reply #2 on: November 17, 2003, 08:39:29 pm »

Critical error

There was an error while processing a database query.


While executing query "SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, title, caption, user_name from cpg11d_pictures WHERE aid='1' AND approved='YES'  ORDER BY filename ASC " on 0

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



File: /web/public_html/photos/include/functions.inc.php - Line: 105
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
There was an error while processing a database query
« Reply #3 on: November 17, 2003, 08:42:33 pm »

Quote from: "ojohn"

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

Did you make changes to functions.inc.php?
There shouldn't be a query for user_name
It doesn't exist in TABLE_PICTURES
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
There was an error while processing a database query
« Reply #4 on: November 17, 2003, 08:44:30 pm »

use phpMyAdmin to check if you actually have 'user_name' in cpg11d_pictures (or whatever your prefix is). If you don't have it, your install didn't work properly.
Also give us your php and mySQL-versions (while in debug mode and logged in as admin, click "advanced debug" at the very bottom of the page) to find out about those vars.

GauGau
Logged

Nibbler

  • Guest
There was an error while processing a database query
« Reply #5 on: November 17, 2003, 08:45:41 pm »

There is no user_name field in the pictues table, maybe you mean owner_name.
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
There was an error while processing a database query
« Reply #6 on: November 17, 2003, 08:51:05 pm »

Quote from: "gaugau"
use phpMyAdmin to check if you actually have 'user_name' in cpg11d_pictures (or whatever your prefix is). If you don't have it, your install didn't work properly.

But there IS no user_name in CPG1.2
Maybe a half-added mod or hack?
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
There was an error while processing a database query
« Reply #7 on: November 17, 2003, 09:12:14 pm »

Thank for your help i found out what it was i try this hack/addon were it shows the user name . I think i never finish going thought the steps but now it works thank alot everybody
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.