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: Bug in Coppermine with SMF if user not logged in  (Read 4295 times)

0 Members and 1 Guest are viewing this topic.

MoskmaN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Bug in Coppermine with SMF if user not logged in
« on: June 09, 2008, 07:37:15 am »

I have the problem , "query error conecting with database"
The error pops when i have not a user logged.
I solved the problem editing /include/init.inc.php
Line 395

when:

$user_id = USER_ID;
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_BANNED']} WHERE (ip_addr='$raw_ip' OR ip_addr='$hdr_ip' OR user_id='$user_id') AND brute_force=0");


replace with:

$user_id = USER_ID;
IF (empty($user_id)) {$user_id=´guest´;}; 
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_BANNED']} WHERE (ip_addr='$raw_ip' OR ip_addr='$hdr_ip' OR user_id='$user_id') AND brute_force=0");
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bug in Coppermine with SMF if user not logged in
« Reply #1 on: June 09, 2008, 07:45:20 am »

Not a valid bug report. If you actually want to report a potential bug, post the details described in the sticky thread on this board.
Logged

MoskmaN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Bug in Coppermine with SMF if user not logged in
« Reply #2 on: June 09, 2008, 07:47:49 am »

sorry for the problem, please you can move the topic to that section?
Logged

MoskmaN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Bug in Coppermine with SMF if user not logged in
« Reply #3 on: June 09, 2008, 07:52:46 am »

i forgot post this

SMF v1.1.5  Coppermine v1.4.18
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bug in Coppermine with SMF if user not logged in
« Reply #4 on: June 09, 2008, 08:00:28 am »

please you can move the topic to that section?
I already told you that yours is not a valid bug report, so I won't move this thread to the bugs board
Not a valid bug report.
You should do as I suggested:
post the details described in the sticky thread on this board.
The thread I refered to is When requesting bridge support - mandatory!.
Logged

MoskmaN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Bug in Coppermine with SMF if user not logged in
« Reply #5 on: June 09, 2008, 08:04:18 am »

i cant have permission for post in there!  >:(
my user here is new.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bug in Coppermine with SMF if user not logged in
« Reply #6 on: June 09, 2008, 08:09:25 am »

Exactly: you don't have permissions to start new threads on the bugs board, because we don't want postings like yours to go into the bugs board. Only threads that are valid bug reports will be moved there by a moderator.
Start by reading my reply and doing as I suggested there instead of arguing about why you can't post on the bugs board. I already told you what you need to do to make your thread a valid bug report. Currently, your posting is just invalid. Period.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.