Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Search Results Error - The selected album/file does not exist!  (Read 14215 times)

0 Members and 1 Guest are viewing this topic.

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

OK I have looked on the forums here and didn't find a answer.

I get this error when searching  Error - The selected album/file does not exist!

I changed back to the curve theme and did a search it worked then I switched back to my theme I use and it worked.

Why does this happen? will it happen to others users that search my gallery?

is it a cookie issue with my theme as I had to do this on firefox, IE and Safari to get the search to work.

how do I fix this in my theme.



here is my site

http://www.canadianracingarchives.com/

Thanks

Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Search Results Error - The selected album/file does not exist!
« Reply #1 on: March 07, 2014, 02:26:19 pm »

Searched on 'zardo' - selected a photo from results.

Default theme generated url:
http://www.canadianracingarchives.com/displayimage.php?album=search&cat=0&pid=527#top_display_media
and produced reported error.
Shortening url to end in: displaying.php?pid=527 worked.

Changed theme to curve and repeated (search.php?theme=curve). Generated url (looks same to me...):
http://www.canadianracingarchives.com/displayimage.php?album=search&cat=0&pid=527#top_display_media
Picture displayed as expected.

Reset theme (search.php?theme=0) and repeated - worked fine...
Went back to site later, and failed again.

Not my area of expertise, but maybe the additional detail will help someone else help you...
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #2 on: March 07, 2014, 03:20:07 pm »

it's strange as I switched to curved for all browsers and it worked and when I switched the theme back it worked cleared my cache and it failed again.


So something is not being created.


Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #3 on: March 07, 2014, 03:21:56 pm »

Αndré ported the theme so he may know what is going on.

Thanks for your help
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search Results Error - The selected album/file does not exist!
« Reply #4 on: March 08, 2014, 01:05:45 pm »

Please enable debug mode to get a more detailed error message and post that message (including file / line).
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #5 on: March 08, 2014, 02:02:38 pm »

where do I set debug mode? I turned something on in the config but I dont see any extra code when I do the search.

Thanks
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #6 on: March 08, 2014, 02:11:14 pm »

Error

The selected album/file does not exist!

File: /home/archives/public_html/displayimage.php - Line: 387

Debug Info
display phpinfo Debug Output: show / hide

Notices

/plugins/copper_ad/include/init2.inc.php

Warning line 24: mysql_free_result(): supplied argument is not a valid MySQL result resource
/plugins/theme_switch/codebase.php

Warning line 53: Wrong parameter count for strtolower()
Warning line 53: Wrong parameter count for strpos()

/plugins/xfeed/codebase.php

Notice line 107: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'
Notice line 124: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'
Notice line 137: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'
Notice line 185: Undefined variable: template_header

/include/search.inc.php
Notice line 34: Undefined index: search
Notice line 65: Undefined index: type
Notice line 34: Undefined index: owner_name
Notice line 65: Undefined index: type
Notice line 34: Undefined index: owner_name
Notice line 65: Undefined index: type
Notice line 34: Undefined index: owner_name
Notice line 65: Undefined index: type
Notice line 34: Undefined index: owner_name
Notice line 65: Undefined index: type

/include/functions.inc.php
Notice line 2278: Undefined variable: pos
Notice line 1812: Undefined variable: rowset
Notice line 1812: Undefined variable: rowset
Notice line 1812: Undefined variable: rowset
Notice line 1812: Undefined variable: rowset
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #7 on: March 10, 2014, 12:00:55 am »

Not sure what needs to be changed to get the search to work.

Please help.

Thanks in advance.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search Results Error - The selected album/file does not exist!
« Reply #8 on: March 10, 2014, 04:52:59 pm »

I wasn't able to reproduce that issue in my testbed, neither with theme version 1.1 nor 1.2. However, as version 1.2 doesn't contain any custom functions in theme.php, I assume you're using an older version.

Please try again with version 1.2.
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #9 on: March 10, 2014, 05:35:10 pm »

also get the error on the coppermine demo site. you need to clear your browser cache as I can get it to work only when I switch to the curve theme and do a search and then when I switch back to the theme and once you clear the cache the error comes back.

Strange GMC also got the same error as me on my site.

Thanks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search Results Error - The selected album/file does not exist!
« Reply #10 on: March 11, 2014, 08:53:03 am »

Thanks for the additional information. Unfortunately I still don't know which theme version you're currently using.
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Search Results Error - The selected album/file does not exist!
« Reply #11 on: March 22, 2014, 04:12:29 am »

sorry for the late reply it seemed to work when I reinstalled the theme. Thanks for all your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.