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: Search trouble  (Read 2479 times)

0 Members and 1 Guest are viewing this topic.

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 117
    • World of Lighthouses
Search trouble
« on: June 10, 2012, 10:27:16 pm »

Hi there!
I moved my site from one hosting to another one. Everything seems working fine except search. I try to search image by some keyword, i.e.:
http://www.lightphotos.net/photos/thumbnails.php?album=search&keywords=on&search=australia
Search provide reasonable photos in thumbnails. But if i try to click any of this thumbnails - sometimes opened image is different than thumbnail (and the same for all search results) sometimes i don't get any picture - just mistake and that's all. But the link it self to new image is different everytime and looks like:
http://www.lightphotos.net/photos/displayimage.php?album=search&cat=0&pid=1553#top_display_media
What could be the problem?

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 117
    • World of Lighthouses
Re: Search trouble
« Reply #1 on: June 11, 2012, 04:45:24 pm »

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 117
    • World of Lighthouses
Re: Search trouble
« Reply #2 on: June 11, 2012, 04:53:54 pm »

I found that on old hosting URL opening from search result
http://srv24967.ht-test.ru/photos/displayimage.php?album=search&cat=0&pid=1898#top_display_media
working well
In new one URL
http://www.lightphotos.net/photos/displayimage.php?album=search&cat=0&pid=1898#top_display_media
doesn't work but if i remove album=search - URL starts to work

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1510
  • aka 'i-imagine'
    • Home Page
Re: Search trouble
« Reply #3 on: June 12, 2012, 02:20:57 am »

You have much more customizing than only the theme...

Try:
Move plugins up and down the list.

Remove plugins one at a time.

Remove / change the custom headers and footers.

Replace any modified cpg files one at a time.

Turn on debug (please don't post the output) and if you don't
want to leave it on for a long time, re-post so someone can take a look.

Review / change the keyword settings in Config.

Validate the pages: http://validator.w3.org/
 

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 117
    • World of Lighthouses
Re: Search trouble
« Reply #4 on: June 12, 2012, 03:42:08 pm »

Hi Joe! Thanks for the advices.
I made second copy of gallery for testing. In this copy i disabled plugins, removed headers/footers, played with settings and themes. Problem still exist.
Here you can check again http://www.lightphotos.net/photos1/thumbnails.php?album=search&keywords=on&search=england
I don't want to overwrite all changed files at this stage, may be somebody can check debug information first, debug is now switched on.
All thumbnails are showing mistakes or displaying wrong files in opened single image page.

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1510
  • aka 'i-imagine'
    • Home Page
Re: Search trouble
« Reply #5 on: June 13, 2012, 02:05:00 am »

I don't want to overwrite all changed files at this stage, may be somebody can check debug information first, debug is now switched on.

There are quite a few notices, most with Supercage. If you have modified search.php or search.inc.php, and other core files, then start with...

Reading the docs on using Supercage.

Isolating the problem - change one file at a time and back out of some of your modifications.

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 117
    • World of Lighthouses
Re: Search trouble
« Reply #6 on: June 13, 2012, 08:14:06 pm »

Problem found.
it was accidentally added <tab> before <?php at thumbnails.php
Strange but in old server everything worked well.
Many thanks for advices Joe!
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.