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: Cant see pictures after upgrade  (Read 9128 times)

0 Members and 1 Guest are viewing this topic.

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« on: October 26, 2003, 03:09:59 am »

Hi all,

I have just upgraded from coppermine 1.0 to 1.1D.

I had a problem with the template thing which I have now overcome, and I couldnt use the upgrade script as it wouldnt work with another template error, so had to use Phpmyadmin to enter the sql queries into. All my pictures now have the right comments next to the right picture etc etc, so all is good, EXCEPT, all my pictures are dead links.

I have moved the albums folder across OK, the problem is is the url when I look at the picture properties i s incorrect. I havent installed any mods.

The propery url actually misses out the module/coppermine/albums part, so they say http://www.kingys-world.co.uk/index/html/30thJuly2002/1.jpg

Get my drift?

All entries in the config settings look fine, albums points to modules/coppermine/albums etc etc.

Any help will be very appreciated and thanks in advance.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Cant see pictures after upgrade
« Reply #1 on: October 26, 2003, 03:32:33 am »

How about creating a test user so I can look around?  Post the username/password here or PM the info to me.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #2 on: October 26, 2003, 03:44:18 am »

Im not sure theres anything to really look at......it all looks like its working, expect the pictures are dead links and point to the incorrect place.

You can just goto www.kingys-world.co.uk and make an account if you wish to look.

There must be a variable somewhere or somewhere to set something that is missing the modules/coppermine etc part.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #4 on: October 26, 2003, 03:57:35 am »

Phpnuke 6.5 running on win2k server IIS 5.0

Problem occurs with any theme, I have tried 5 or 6 different ones.

I have installed Coppermine 1.1D for phpnuke 6.5.

Any help appreciated.
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Cant see pictures after upgrade
« Reply #5 on: October 26, 2003, 06:14:26 am »

Can you send a copy of the 1.0 database to me, cos i don't have that.
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #6 on: October 26, 2003, 12:08:00 pm »

Quote from: "DJMaze"
Can you send a copy of the 1.0 database to me, cos i don't have that.


???
Dont see how that is relevant because the puctures database just holds the image name, not the full path.

It must be something simple, Im trying to find the php file where coppermine picks up the path when displaying the pictures, but cant find it.
Logged

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #7 on: October 26, 2003, 01:21:37 pm »

OK I see some people have had this problem and its ended up being the ecard path, however this is not the case with me.

My ecard path points direct to the gallery. Thing is, when I change the ecard path, it doesn't seem to have any effect to the path to the pictures anyway!
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Cant see pictures after upgrade
« Reply #8 on: October 26, 2003, 04:04:55 pm »

Have you looked at the filepath column in cpg_pictures?  I'm guessing the paths stored for each picture are still the standalone paths.  You may have to use phpMyAdmin to change each path to modules/coppermine/xxx.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #9 on: October 26, 2003, 04:14:03 pm »

indeed the filepath just says the name of the album folder, inside albums.

do I have to add it then? I thought it would just use the "albums directory" variable on the config page?

I have installed phpmyadmin, is there anyway to easily update every record, rather than having to go through them all typing them in?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Cant see pictures after upgrade
« Reply #10 on: October 26, 2003, 04:18:55 pm »

AFAIK, you'll have to edit each entry.  The filepath you set in config is only for new pics, not the old ones.

It's possible to write an upgrade script that will go thru the cpg_pictures table and change each filepath to modules/coppermine/xxx.  If I get time I'll work on it, but I can't give you a timeline.  Probably quicker to do a manual change.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #11 on: October 26, 2003, 04:25:11 pm »

OK

it worked

weird thing tho, it did say www.kingys-world.co.uk/index/html/albumname/picname.jpg

and the db entry just said picname.jpg, so I thought if I add /modules/coppermine/albumname/ to the beginning of the filepath record, it will work. However it didnt, it made it into www.kingys-world.co.uk/modules/coppermine/albumname/picname.jpg

Anyway I'll have to edit the db!!

Thanks for your help
Logged

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant see pictures after upgrade
« Reply #12 on: October 26, 2003, 04:32:02 pm »

Done it via phpmyadmin:

UPDATE `cpg_pictures` SET `filepath` = '/index/html/modules/coppermine/albums/5thAug/' WHERE `filepath` = '5thAug/';

Replacing the dat each time for each album of course!

Cheers
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 14 queries.