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: Cannot log after install - standalone  (Read 6923 times)

0 Members and 1 Guest are viewing this topic.

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« on: February 15, 2004, 09:56:06 pm »

I just installed Coppermine 1.2.1 as standalone.  I have not modified anything. I am using apache/mySQL/PHP as an internal server on my PII/W98SE PC for software development. I am planning to use Coppermine on my host for family photos, and on a friend's artist community site for an art gallery.  I am testing on my PC first.

The install went normally.  I have been doing this for a year, and all my other stuff is working correctly on my PC. Including phpbb amd Invision Power Board.

When I log on, it recognizes the admin logon I used during setup, and flashes the welcome message.  Then it takes me to the Coppermine front page, but there is no indication I have logged on.  The logon link is still there, and therer is no admin link.

I have read the FAQ, and searched this board, and read six different posts on this subject.  Yes, cookies are turned on.  Yes, I removed all Coppermine cookies.  The same thing happens with IE5.0, Mozilla 1.5, or Firefox(Mozilla/Firebird) 0.8. (All of which have cookies turned on, and work with every other site I have ever tried) I do not want to buy Opera, as there are other great browsers that are free, and if you need Opera to use this software, 99% of the world will not be able to log on.  My browser logs from my hosts show that almost no one uses Opera.  Netscape 3 is more popular.

What am I doing wrong?  I have removed the install script.  I have checked include\config.inc.php to be sure I had the correct names in it.  As I said, it even recognizes the logon and takes me back to the front page.

Mike
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Cannot log after install - standalone
« Reply #1 on: February 15, 2004, 11:08:24 pm »

This is almost always a browser/cookie issue, but as you seem to have that covered, perhaps you have a corrupt file.  

I use IE, and you don't need Opera, if you did, I wouldn't use the software.

Go into your db_config table, and turn on the debug mode, by changing the value to 1.

report back here what it says when you try to log on.
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

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #2 on: February 15, 2004, 11:36:58 pm »

I just searched config.php and include/config.inc.php and did not find the word "debug" in either script.  Am I missing something?  I used the Find function to make sure I didn't overlook anything.  

Mike
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #3 on: February 15, 2004, 11:40:09 pm »

I just searched config.php and include/config.inc.php and did not find the word "debug" in either script.  Am I missing something?  I used the Find function to make sure I didn't overlook anything.  

Mike
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Cannot log after install - standalone
« Reply #4 on: February 15, 2004, 11:52:26 pm »

Sorry, I should have made it clear.  As you cannot login, you obviously cannot get to the config page as normal.

Use a tool such as phpMyAdmin to go into your coppermine database, and turn on the debug mode there, as I described above.
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

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #5 on: February 15, 2004, 11:55:19 pm »

One thing I noticed.  All the tables are prefixed cpg11d, which would seem to indicate the last release. This is in the config.init.php script.

When I log on with what should be the administrative log on.  It gives me an unauthorized error if I try to manually syaty the admin.php script.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Cannot log after install - standalone
« Reply #6 on: February 16, 2004, 12:09:03 am »

the cookie name has not changed for the last couple of versions at least.

But your post makes me think you have set this as bridged to a bb.  Have you changed any of the files such as init.inc.php.

You must get coppermine running as standalone before trying to bridge with a buletin board.
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

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #7 on: February 16, 2004, 12:51:58 am »

Yesterday, I tried to install phpbb/coppermine bridged.  It had the exact same problems as I am having now.  I deleted the folder with coppermine in it, and created a new mySQL database to place stand alone Coppermine in.  I Perhaps that is the problem.

Mike
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Cannot log after install - standalone
« Reply #8 on: February 16, 2004, 01:02:21 am »

ok, so that may be the problem.

Do either of these;

1.  Replace the include/init.inc.php file with the original unchanged file, OR

2. if you cannot find the unchanged file, edit your include/init.php file so that it looks like this;
Code: [Select]
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin');
// define('UDB_INTEGRATION', 'yabbse');
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

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #9 on: February 16, 2004, 01:07:29 am »

I already checked that.  I deleted the entire package and unzipped a new one into a new folder before I tried again.
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #10 on: February 16, 2004, 01:09:14 am »

I also put it in a new data base.

Mike
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #11 on: February 16, 2004, 01:32:53 am »

Could this be it?

I created a folder named Gallery, which was in my www folder.  Then I placed the download package in it and unzipped it.  I ended up with a path that looked like this...

Localhost/Gallery/cpg1.2.1/cpg1.2.1standalone/Coppermine_Folders_&_Files

I got rid of the two intervening folders so the new path looked like this...

Localhost/Gallery/Coppermine_Folders_&_files

I did this before I ran the install script.  Is it possible that the pathnames are now wrong?

mk
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #12 on: February 16, 2004, 04:14:40 am »

"Go into your db_config table, and turn on the debug mode, by changing the value to 1."

Spent a bunch of time looking through every script with the word config in it in my mysql folders.  I could not find the switch you speak of.  Could you direct me to where I can find it?

Mike
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Cannot log after install - standalone
« Reply #13 on: February 16, 2004, 04:28:35 am »

Use phpMyAdmin, then browse the tables that way.
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #14 on: February 16, 2004, 06:25:50 am »

"Use phpMyAdmin, then browse the tables that way."

Thanks.

-----------

Here is the output from debug on the coppermine front page after I attempted to log in.  I hope this helps

mk

-----------

USER:

Array
(
    [ID] => 1cdba2a5230e998e55295f34d453ddbf
    [am] => 1
)

USER DATA:

Array
(
   
  • => 3
[group_id] => 3
    [1] => Anonymous
    [group_name] => Anonymous
    [2] => 0
    [group_quota] => 0
    [3] => 0
    [has_admin_access] => 0
    [4] => 1
    [can_rate_pictures] => 1
    [5] => 0
    [can_send_ecards] => 0
    [6] => 0
    [can_post_comments] => 0
    [7] => 0
    [can_upload_pictures] => 0
    [8] => 0
    [can_create_albums] => 0
    [9] => 1
    [pub_upl_need_approval] => 1
    [10] => 1
    [priv_upl_need_approval] => 1
)

Queries:

Array
(
   
  • => SELECT * FROM cpg11d_users, cpg11d_usergroups WHERE user_group = group_id AND user_id='0'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*'
  • [1] => SELECT * FROM cpg11d_usergroups WHERE group_id = 3
        [2] => DELETE FROM cpg11d_banned WHERE expiry < 1076909065
        [3] => SELECT * FROM cpg11d_banned WHERE ip_addr='127.0.0.1' OR ip_addr='127.0.0.1' OR user_id=0
        [4] => SELECT aid FROM cpg11d_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)
        [5] => SELECT cid, name, description FROM cpg11d_categories WHERE parent = ''  ORDER BY pos
        [6] => SELECT aid FROM cpg11d_albums WHERE category >= 10000
        [7] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category >= 10000
        [8] => SELECT cid, name, description FROM cpg11d_categories WHERE parent = '1'  ORDER BY pos
        [9] => SELECT count(*) FROM cpg11d_albums WHERE 1
        [10] => SELECT count(*) FROM cpg11d_pictures WHERE 1
        [11] => SELECT count(*) FROM cpg11d_comments WHERE 1
        [12] => SELECT count(*) FROM cpg11d_categories WHERE 1
        [13] => SELECT sum(hits) FROM cpg11d_pictures WHERE 1
        [14] => SELECT count(*) FROM cpg11d_albums WHERE category = ''
        [15] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
        [16] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid FROM cpg11d_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
        [17] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
        [18] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, owner_id, owner_name, aid FROM cpg11d_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
    )

    GET :

    Array
    (
    )

    POST :

    Array
    (
    )

    Page generated in 3.397 seconds - 19 queries in 2.748 seconds - Album set :
    Advanced debug mode (phpinfo)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Cannot log after install - standalone
« Reply #15 on: February 16, 2004, 09:46:27 am »

OK,
go into your database again, and enter the config table.  Check the ' cookie_path' is just a '/', nothing else.
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

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #16 on: February 16, 2004, 02:32:55 pm »

Cookie path =  /

mk
Logged

Cheezewiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Cannot log after install - standalone
« Reply #17 on: February 17, 2004, 10:30:19 pm »

Just wondering if there has been any progress on determining what my problem is?

Mike
Logged

MrWolfman

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Cannot log after install - standalone
« Reply #18 on: June 17, 2004, 04:43:17 am »

just thought iwould signup and let u all know

with vb3.01
followed the instructions and could not logon
noticed that vb3.01 at least has a cookie name of bb
so i put this
define('VB_COOKIE_PREFIX', 'bb');  // Cookie Prefix, not supported by vBulletin 2

and it worked perfectlly so far
even pulled all my usergroups into the admin coppermine side
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 14 queries.