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: Users and groups missing for no apparent reason.  (Read 2778 times)

0 Members and 1 Guest are viewing this topic.

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Users and groups missing for no apparent reason.
« on: July 31, 2007, 11:15:54 am »

Help.

For some reason yet to be discovered, my coppermine photo gallery just... 'broke'. Appologies for not using more detailed terms, but this came out of nowhere. i haven't been on for days, neither has the other administrator. Here are as many details as i can find.

i logged on today to find all but 6 users missing from the user table.

However. when you try and log in as one of the missing users, it still welcomes you... however then just takes you back to the log in page. This to me, implies that the users are still there, but that coppermine just cant access it.

My unique groups are also gone, leaving only the coppermine defaults "administrators, registered, guests and banned".

There may be other issues, but im not sure at this stage.

I enabled debug mode and it came up with the following notices.

Code: [Select]
/include/logger.inc.php

    * Warning line 155: unlink(logs/global.log.php) [function.unlink]: Permission denied
    * Warning line 155: unlink(logs/database.log.php) [function.unlink]: Permission denied
    * Warning line 51: fopen(logs/global.log.php) [function.fopen]: failed to open stream: Permission denied
    * Warning line 53: fwrite(): supplied argument is not a valid stream resource
    * Warning line 54: fclose(): supplied argument is not a valid stream resource
    * Warning line 51: fopen(logs/global.log.php) [function.fopen]: failed to open stream: Permission denied
    * Warning line 53: fwrite(): supplied argument is not a valid stream resource
    * Warning line 54: fclose(): supplied argument is not a valid stream resource

/bridge/udb_base.inc.php

    * Notice line 114: Undefined variable: row

/include/themes.inc.php

    * Notice line 2724: Undefined variable: loginFormHtml

/login.php

    * Notice line 29: Undefined index: referer

Please, if you can, help. I'm really incredibly out of my depth on this one, and have no idea where to start trouble shooting.

Test accounts and debug info can be supplied if necessary.

Thankyou
Tim
Logged

Nibbler

  • Guest
Re: Users and groups missing for no apparent reason.
« Reply #1 on: July 31, 2007, 11:17:20 am »

Restore the usergroups table from a backup.
Logged

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: Users and groups missing for no apparent reason.
« Reply #2 on: July 31, 2007, 12:13:49 pm »

I was afraid you would say that. :P Thanks for the speedy reply  :)

It worked, i restored the database and everything is fine. However I'm still curious as to how this could have possibly happened. Is it one of those issues with a thousand variables or is there something i can do to avoid this happening again.

Thanks
Tim
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.