forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: loubymar on November 18, 2006, 10:41:02 am

Title: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 10:41:02 am
My gallery is at: http://anagallery.ifastnet.com/cpg148/ but was at: http://anagallery.an.funpic.org/cpg148/

My ftp server is: Smart FTP

I am gettin this error on both of the pages above:
Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'anagallery'@'192.168.101.1' (using password: YES)

I download gallery folder of funpic one, and got the My SQL of it to, i then uploaded it to new server ifastnet.com, but i now i can't get on at all, what can i do???
Or what have i done wrong?
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 18, 2006, 11:15:49 am
open include/config.inc.php and enter the mysql details of your new server. Then upload it again replacing the old file
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 04:54:52 pm
I done that, but it still saying: Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'anagallery'@'localhost' to database 'anagallery'

I logged onto my new server and created a My SQL, but and changed details again, but still didn't work, i want all my members to there and my pictures to!

Thanks
Louis
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 06:46:31 pm
Cud u tell me how to do the big bump, the big dump i downloaded on put on my server, i also downloaded my SQL that i needed and uploaded that to server, but still gettin same error, and on the Big Dump, i get:

Database connection failed due to Access denied for user 'anagallery'@'localhost' (using password: YES)

Edit the database settings in /home/anagallery/bigdump/bigdump.php or contact your database provider

What do i need to do??

Louis
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 18, 2006, 07:41:40 pm
I do not know 'bigdump'

For your MySQL username and password... you should ask your host in case you don't know it
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 07:47:34 pm
Ok, i gettin sum where, cus i can see my gallery now, but i get this:

Critical error 
 
 There was an error while processing a database query 
 
What does this mean and what can i do to resolve it?
Thanks
Louis
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 18, 2006, 07:54:11 pm
enable debug mode and post the actual error message

http://coppermine-gallery.net/tutorial/debug_mode.php
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 07:59:54 pm
This is the error:

While executing query "DELETE FROM cpg148_banned WHERE expiry < '2006-11-18 18:58:57'" on 0

mySQL error: Table 'anagallery_anagallery.cpg148_banned' doesn't exist

This can be found at: http://anagallery.ifastnet.com/cpg148/thumbnails.php?album=lastup
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 08:11:13 pm
Ok, i removed that code it said on functions.inc.php, n i could log into gallery, but they no admin tools!
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 08:12:56 pm
It ok never mind, ignore my last post, sorry
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 08:20:02 pm
FULL DEBUG INFO:

USER:
------------------
Array
(
    [ID] => aa1353397c72cee2eb620713a3733548
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Webmaster
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 18, 2006, 08:23:54 pm
So whats the problem and what do i need to do to resolve it???

Thanks
Louis
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 18, 2006, 10:17:05 pm
properly restore your database backup
Title: Re: Can't get on gallery at all!
Post by: Joachim Müller on November 19, 2006, 07:28:40 am
And stop breaking every rule, considering your negative karma our tolerance for misbehaviour from you is zero. Don't post debug_output unless requested. Stop speed-posting. Don't spread identical issues over multiple threads (http://forum.coppermine-gallery.net/index.php?topic=38595.0).

If the error message says that a mySQL table is missing, it's not very clever to delete the line of code that triggers the error message. You should make sure that the table exists instead. Obviously, you have not set up your gallery properly in the first place, or you have misconfigured it.
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 08:32:34 am
the catagory table is not there on My SQL Phpmyadmin, i read the instructions wrong, as i thought it said drop the tables, so i drop the catagory table, then stopped and realised i done wrong, is they i can get it back, cus its not there, or i can't find it, is they that i can create it again or something?

And sorry for posting twice, i just assumed that next to this post it said solved and thought that no1 wud answer cus it said that next it!
Many Thanks
Louis
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 08:34:01 am
I don't think i did a back up 2, but if i have where will i find it?
Title: Re: Can't get on gallery at all!
Post by: Joachim Müller on November 19, 2006, 09:05:37 am
Where ever you put it. How are we suppossed to know where you store your backups?
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 09:17:28 am
I not done one then!! What else can i do, is it possible to create the table again?
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 19, 2006, 09:28:58 am
you said in your first post, you 'downloaded' the gallery from funpic and as well the MySQL... then that MySQL is your backup
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 09:33:35 am
But i think i dropped the category table b4 i realised i had to do the download MySQL
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 10:16:41 am
would it be possible to create it again and if so how?
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 19, 2006, 10:46:25 am
as long as your site and your account on funpic is existing it should be possible. Usually you use phpmyadmin to create a database dump. Funpic has that installed too. Read funpic FAQ and the phpmyadmin documentation for that.
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 11:02:51 am
What about if i installed coppermine again created the category on the main page, and download the category table of MySQL and upload on to my previous one with all my pictures and users on! Do u think that cud work??
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 19, 2006, 11:06:35 am
then you basically have 'imported' the categories, no albums, users, pics, comments etc
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 11:11:06 am
Ok, so doing that will not do anything? So i need to create the table my self on Phpmyadmin?
Title: Re: Can't get on gallery at all!
Post by: Stramm on November 19, 2006, 11:16:04 am
again: go to your funpic account and backup your mysql db. Then restore it on your new server. That's the procedure when you move
Title: Re: Can't get on gallery at all!
Post by: Joachim Müller on November 19, 2006, 11:20:00 am
Then what do you expect us to advice?
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 11:24:06 am
i backed it up funpic MySQL and put it on new server, but still no category table! Is they no other way that i cud keep all my pics and users and re-create the category table again? Or i am left with no other choice but to re-install coppermine competely?
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 11:49:59 am
If i re-installed coppermine, would it be possible to get all the users and pictures of the old gallery, and put them on the new 1? Not all my pics are on server!
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 11:56:49 am
then there is no way to restore that table !
you need to re-create it
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 12:03:56 pm
The table? How
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 12:12:02 pm
- Find your table prefix from include/config.inc.php
- go to phpmyadmin or any other mysql tool that you have and run this query (Cahnge the CPG_ with your table prefix):
Code: [Select]
CREATE TABLE CPG_categories (
  cid int(11) NOT NULL auto_increment,
  owner_id int(11) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
  description text NOT NULL,
  pos int(11) NOT NULL default '0',
  parent int(11) NOT NULL default '0',
  thumb int(11) NOT NULL default '0',
  PRIMARY KEY  (cid),
  KEY cat_parent (parent),
  KEY cat_pos (pos),
  KEY cat_owner_id (owner_id)
) TYPE=MyISAM COMMENT='Used to store categories';
after that you have an empty table

Go to admin mode and :
- re-create categories
- set the albums
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 12:34:05 pm
Im not 100% sure what u mean!

I can't see table prefix in include/config.inc.php
And im on phpmyadmin, but where do i go to run this query (Cahnge the CPG_ with your table prefix):???
Can u explain more 2 me plz?
Sorry
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 12:43:05 pm
I can't see table prefix in include/config.inc.php

Download it to your local computer via ftp and open it with a simple text editor (such as notepad)

And im on phpmyadmin, but where do i go to run this query (Cahnge the CPG_ with your table prefix):???

- Select your CPG database from left menu
- Click SQL button on top menu
- Paste that code to text area
- Hit the Go button
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 12:55:53 pm
ok, i done phpmyadmin bit, but what do i do when i opened include/config.inc.php? What am i pasting on to it?

http://anagallery.ifastnet.com/cpg148/index.php
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 01:04:42 pm
You shouldn't pass anything on that file !
you should have something like this on that file:
Code: [Select]
// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg148_';
that indicate your table prefix , cahnge the CPG_ under query with your prefix

also if it's hard for you ,you can simply look at the other tables on your cpg database and find out what table prefix you are using by phpmyadmin
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 01:21:00 pm
Ok, i done that, but now when i add a news category on the gallery, it doesn't show on homepage, and i can only see the gallery if it is in debug_mode, what do i need to do?

Many Thanks
Louis
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 01:32:36 pm
Yes they will not show up until you have albums under ...
you need to set albums as suggested , go to each album properties and set the correct category for it
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 01:39:19 pm
Great, they isn't cpg148_albums in MySQL datebase! I reali can't believe this!
Is they any way that i can create cpg148_albums again? cus it not on backup iver, i must ave deleted that 2!!!
I no what i done, i have read the docs for Big Dump, and read it wrong!
If not im just gonner have to re-install coppermine! :(
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 01:47:23 pm
I think it's better to re-install coppermine and re-upload your image using batch add
- overwrite all files and folder except include/config.inc.php and albums folder
- and then use batch add
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 01:49:00 pm
Is they no way i can keep the members??
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 01:51:23 pm
On the new datebase i cud manually add all the users through phpmyadmin, cus i will have the users info on my old server, do u think that wud b possible??
Title: Re: Can't get on gallery at all!
Post by: Sami on November 19, 2006, 02:05:03 pm
Yes it would be possible , you need to run an insert ... select mysql query
I think you should hire someone to do that for you ...
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 02:11:27 pm
I tested it on my old server and it worked ok, it just copying n pasting!
Title: Re: Can't get on gallery at all!
Post by: Joachim Müller on November 19, 2006, 03:56:22 pm
Issue solved then?
Title: Re: Can't get on gallery at all!
Post by: loubymar on November 19, 2006, 05:17:29 pm
yes, i did backup of the user section on Phpmyadmin on old server, n put it onto new, so i got all my users back,

Many Thanks For all your help
Any Sorry for any problems i may have caused
Louis