Cannot log after install - standalone Cannot log after install - standalone
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cannot log after install - standalone

Started by Cheezewiz, February 15, 2004, 09:56:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cheezewiz

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

Casper

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.
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

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

Cheezewiz

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

Casper

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.
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

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.

Casper

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.
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

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

Casper

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');
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

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

Cheezewiz

I also put it in a new data base.

Mike

Cheezewiz

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

Cheezewiz

"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

moorey

Use phpMyAdmin, then browse the tables that way.

Cheezewiz

"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)

Casper

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


Cheezewiz

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

Mike

MrWolfman

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