Coppermine doesn't allow log-in ('Welcome Guest') Coppermine doesn't allow log-in ('Welcome Guest')
 

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

Coppermine doesn't allow log-in ('Welcome Guest')

Started by olijnsma, November 23, 2010, 01:00:49 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

olijnsma

Hello,

I've been searching through the board and I found another thread with a similar problem. I tried the fix (getting rid of a code), but it doesn't help me.

I still can't log on to my admin account and it keeps saying 'welcome guest'.

My coppermine.inc.php file in the bridge folder now looks like this:

Quote********************************************
  Coppermine version: 1.5.8
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/bridge/coppermine.inc.php $
  $Revision: 7805 $
**********************************************/


if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

if (isset($bridge_lookup)) {
    // Do nothing - the default bridge file "coppermine.inc.php" is not an option in the bridge manager.
    // In other bridge files, we populate an array that specifies what bridging options are available for that particular file
} else {

    // Switch that allows overriding the bridge manager with hard-coded values
    define('USE_BRIDGEMGR', 1);

    require_once 'bridge/udb_base.inc.php';

    class coppermine_udb extends core_udb {

            function coppermine_udb()
            {
                    global $BRIDGE,$CONFIG;

                    $superCage = Inspekt::makeSuperCage();

                    if (!USE_BRIDGEMGR) {

                            $this->boardurl = 'http://localhost/coppermine';
                            include_once('../include/config.inc.php');

                    } else {
                            $this->boardurl = $CONFIG['site_url'];
                            $this->use_post_based_groups = @$BRIDGE['use_post_based_groups'];
                    }

                    // A hash that's a little specific to the client's configuration
                    $this->client_id = md5($superCage->server->getRaw('HTTP_USER_AGENT').$CONFIG['site_url']);

                    $this->multigroups = 1;

                    $this->group_overrride = !$this->use_post_based_groups;

Where I deleted the supercage...protocol... part.

Are there any other ways to solve this?

Αndré

Post a link to your gallery and the login data for a test user, so we can eliminate client-side issues.

olijnsma

http://www.klaasterpstra.com/coppermine/cpg15x/index.php

Here is where the gallery can be found, can you give me a e-mail adress, since I only have one log-in and that is with a regular password.

Αndré


Αndré


olijnsma

Thanks André,

I tried the first suggestion, but no result. I wanted to try the second suggestion, but I got stuck.

I uploaded the session-debug folder to the plug-in folder, but from there on, I don't know exactly what to do. I did look into the MySQL database, but couldn't find anywhere where I could activate a plug-in.

Hobotec

A customer of mine had this problem and cured it by downloading Ccleaner from http://www.homepc-security.co.uk/Cleaning%20Tools.html once he had run Ccleaner it all worked a dream.

Αndré

Quote from: olijnsma on November 23, 2010, 07:10:09 PM
I uploaded the session-debug folder to the plug-in folder, but from there on, I don't know exactly what to do. I did look into the MySQL database, but couldn't find anywhere where I could activate a plug-in.
You have to add a new entry to the plugins table:
Quotename: Session Debugger
path: session_debugger

olijnsma

Ok, Done; This is what the header tells me:

QuoteHTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
SERVER_PROTOCOL: HTTP/1.1
site_url: http://www.klaasterpstra.com/coppermine/cpg15x/
client_id: b801e23b4f25efbc38868eec8238ebf7
session_id: afafe76ad592ab1d8511473edeb1b12b
md5(session_id+client_id): fa3cf9daddcc0f00dd504f722a155412

Yet, I can't log in  :(

olijnsma

@Hobotec, it is a problem in the cpg software/server. It is not related to a computer. Thanks for thinking with us though.

Αndré

Quote from: olijnsma on November 24, 2010, 11:17:16 AM
Yet, I can't log in  :(
That's expected, as the plugin just prints some useful information. It's exactly the same issue as the user had in the other thread I referred to:
Quote from: Αndré on September 06, 2010, 06:02:28 PM
The session_id value is always different. Normally it shouldn't change.

If you already changed
Quote from: Αndré on September 07, 2010, 09:01:37 AM
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = UNIX_TIMESTAMP() WHERE name = 'session_cleanup'";
to
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = ".time()." WHERE name = 'session_cleanup'";
and it still doesn't work, you could try to perform an update with the latest svn tarball, or just wait a few days until the next stable version of Coppermine will be released.

olijnsma

I did perform that change in scripts as the first modification.  I think I just wait a couple of days for the next version, or I'll try to dig up an old version.
What is the estimate on releasing the new version?

Thank you for all your help André, it is appreciated.

Αndré

I plan to release the package on the coming weekend.

olijnsma

Just install the latest release and the problem is over

Αndré

Quote from: kevin_lee on December 14, 2010, 06:22:03 AM
yes, i have also got that type of problem. they welcome me but can't access any pages in forum.
Quote from: Joachim Müller on September 28, 2008, 12:47:37 PM
No thread-hijacking
If someone has started a thread, describing his/her issues in detail and asking for support, it's not a bright idea to hijack this thread and reply there, asking for support on your issues.

Locking (again >:().