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: Saving information in admin panel...  (Read 2673 times)

0 Members and 1 Guest are viewing this topic.

kakarotto

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Saving information in admin panel...
« on: June 23, 2006, 08:08:38 pm »

I was changing the configuration of my gallery in the admin panel.. ( the admin.php page) and I was trying to have guests be able to view my gallery....
but when I change the option to YES i click save settings and go back and the setting wasnt saved. I tried going into the sql and changing the setting but I can't find it.

" Allow unlogged users (guest or anonymous) access"  <--- won't update. Can anyone give me the SQL query for this setting? I think I might be missing it.

Thanks!!
ps:other options are updating.
Logged

LeeWHill

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Saving information in admin panel...
« Reply #1 on: December 15, 2006, 06:05:25 pm »

I had this problem, and it appeared to be because the cpg_config table in the MySQL database was incomplete. I had a look at the table in phpmyadmin and couldn't find a record for allow_unlogged_access. There were only 89 records in this table. I then created a new instance of Coppermine, and had a look at the config table there, to find 130 records, including an allow_unlogged_access. I think that this must have occurred while I was upgrading to the latest version, because the upgrade didn't seem to complete correctly.

To fix the problem I exported the table from the second installation (in SQL format) and imported it into the first installation's database (after dropping the config table that was already there). This meant that I had to reconfigure the whole gallery from scratch, but at least it let me allow unlogged access again.

The other thing to be aware of is that the enable_encrypted_passwords setting will be set back to 'on' when you do this. If you had it off beforehand (as I did) all your passwords will suddenly become invalid and you won't be able to log in, so you'll need to use phpmyadmin to turn this setting off again.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Saving information in admin panel...
« Reply #2 on: December 16, 2006, 09:42:33 am »

Thanks for your explanation. However, doing as you explained should not be the regular method. The update.php script should take care of the missing database entries being created when performing an upgrade. If it doesn't, there's something fishy with the permissions of your mysql user.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.