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: MySQL fun :(  (Read 4269 times)

0 Members and 1 Guest are viewing this topic.

Forse

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.animeblitz.org
MySQL fun :(
« on: January 09, 2004, 06:56:37 pm »

Well I've used this http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=2493 to get my dynamic contect into gallery. And I have run into problems right away :(

PHP code gets parsed and I am happy, but after I got my dynamic conect to work..gallery stopped working. Let me give u details. My template.php has many parts and in one of them it uses mysql to connect and get info from forum like "latest news" bla bla bla...anyway I get this error:

Error prosessing database or something.

The minute I disable my other menu that uses mySQL...gallery starts working like never happened  :roll: I am kinda new to php so go easy on me.

Also can I ask how to make barebone template which only has albums and so without any eye candy...or maybe there is already one like that? I am searching for a slim and simple theme.

in any case thank you very much!
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
MySQL fun :(
« Reply #1 on: January 09, 2004, 07:21:15 pm »

can't help you with part one of your post.

The default theme is the 'barebones' theme, with no 'eye candy', is very easy to change colours etc in style.css, and is the quickest download.

The 'water drop theme is also very good for this.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Forse

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.animeblitz.org
MySQL fun :(
« Reply #2 on: January 09, 2004, 07:25:22 pm »

Is there some guide on how to create theme?

Thank you

P.S. Found out...no problem

The mysql error I get is "There was an error while processing a database query"
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MySQL fun :(
« Reply #3 on: January 10, 2004, 11:30:24 am »

Quote from: "Forse"
The mysql error I get is "There was an error while processing a database query"
turn on debug mode!

GauGau
Logged

Forse

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.animeblitz.org
MySQL fun :(
« Reply #4 on: January 10, 2004, 11:34:03 am »

I did :) I have gotten this as error in debug mode:

Quote
There was an error while processing a database query.

While executing query "DELETE FROM cpg11d_banned WHERE expiry < 1073686591" on 0

mySQL error: Table 'forums.cpg11d_banned' doesn't exist


Quote from: "Detailed debug info"
Debug info
USER:

Array
(
    [ID] => a18bffd2ca0e22115fcfc0912f06f9c2
    [am] => 1
    [search] => ###kimi
    [liv] => Array
        (
           
  • => 425
  • [1] => 1356
                [2] => 556
                [3] => 728
                [4] => 824
            )

       
[lap] => 3
    [theme] => animeblitz
)
USER DATA:

Array
(
   
  • => 1
[user_id] => 1
    [1] => Forse
    [user_name] => Forse
    [2] => 4
    [mgroup] => 4
    [3] => 4
    [group_id] => 4
    [4] => r00t
    [group_name] => r00t
    [5] => 0
    [group_quota] => 0
    [6] => 0
    [has_admin_access] => 0
    [7] => 1
    [can_rate_pictures] => 1
    [8] => 1
    [can_send_ecards] => 1
    [9] => 1
    [can_post_comments] => 1
    [10] => 1
    [can_upload_pictures] => 1
    [11] => 1
    [can_create_albums] => 1
    [12] => 1
    [pub_upl_need_approval] => 1
    [13] => 1
    [priv_upl_need_approval] => 1
)
Queries:

Array
(
   
  • => SELECT id as user_id, name as user_name, mgroup FROM `forums`.ibf_members WHERE id='1' AND password='0184eb436279d0aa97e7d67a15f67f85'
  • [1] => SELECT * FROM cpg11d_usergroups WHERE group_id = '4'
        [2] => DELETE FROM cpg11d_banned WHERE expiry < 1073686591
    )
    GET :

    Array
    (
    )
    POST :

    Array
    (
    )


My gallery uses "forums" database to get logins and "gallery" to store gallery specified things. The other code that uses mySQL also uses "forums" and if I remove it gallery works fine.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MySQL fun :(
« Reply #5 on: January 10, 2004, 11:57:28 am »

From the documentation - "Integrating the script with your bulletin board":
Quote
It is also recommended that you use the same database for your board and Coppermine.
GauGau
Logged

Forse

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.animeblitz.org
MySQL fun :(
« Reply #6 on: January 10, 2004, 12:00:15 pm »

Thank you. Is there a way to transfer all content from "gallery" database over to "forums" without loosing any data?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MySQL fun :(
« Reply #7 on: January 10, 2004, 12:16:17 pm »

use a tool like phpMyAdmin to create a dump of this very table inside your db "forums" and run the dump in the "gallery"-db. For details, refer to the phpMyAdmin documentation.

GauGau
Logged

Forse

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.animeblitz.org
MySQL fun :(
« Reply #8 on: January 10, 2004, 01:28:50 pm »

I fixed the problem (just moved content from gallery to forums from shell). Anyway thank you for assistance
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.