forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mitko on June 10, 2012, 10:27:16 pm

Title: Search trouble
Post by: mitko 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?
Title: Re: Search trouble
Post by: mitko on June 11, 2012, 04:45:24 pm
Probably i met same problem as here:
http://forum.coppermine-gallery.net/index.php/topic,74651.msg359377.html#msg359377
http://forum.coppermine-gallery.net/index.php/topic,72604.msg350562.html#msg350562
http://forum.coppermine-gallery.net/index.php/topic,74638.msg359312.html#msg359312
but changing of theme didn't help and reinstallation i will keep as last chance.
Any idea why this could happen?
Title: Re: Search trouble
Post by: mitko 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
Title: Re: Search trouble
Post by: Joe Carver 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/
 
Title: Re: Search trouble
Post by: mitko 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.
Title: Re: Search trouble
Post by: Joe Carver 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.
Title: Re: Search trouble
Post by: mitko 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!