coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Cheezewiz on February 15, 2004, 09:56:06 PM

Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: Casper 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.
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: Casper 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.
Title: Cannot log after install - standalone
Post by: Cheezewiz 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.
Title: Cannot log after install - standalone
Post by: Casper 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.
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: Casper 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;
// 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');
Title: Cannot log after install - standalone
Post by: Cheezewiz 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.
Title: Cannot log after install - standalone
Post by: Cheezewiz on February 16, 2004, 01:09:14 AM
I also put it in a new data base.

Mike
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
Title: Cannot log after install - standalone
Post by: moorey on February 16, 2004, 04:28:35 AM
Use phpMyAdmin, then browse the tables that way.
Title: Cannot log after install - standalone
Post by: Cheezewiz 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
(
   
Title: Cannot log after install - standalone
Post by: Casper 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.
Title: Cannot log after install - standalone
Post by: Cheezewiz on February 16, 2004, 02:32:55 PM
Cookie path =  /

mk
Title: Cannot log after install - standalone
Post by: Cheezewiz on February 17, 2004, 10:30:19 PM
Just wondering if there has been any progress on determining what my problem is?

Mike
Title: Re: Cannot log after install - standalone
Post by: MrWolfman 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