forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: computel on March 07, 2014, 05:24:15 am
-
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
-
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 (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 (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...
-
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.
-
Αndré ported the theme so he may know what is going on.
Thanks for your help
-
Please enable debug mode to get a more detailed error message and post that message (including file / line).
-
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
-
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
-
Not sure what needs to be changed to get the search to work.
Please help.
Thanks in advance.
-
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 (http://sourceforge.net/projects/coppermine/files/Themes/1.5.x/cpg1.5.x_theme_andreas09_v1.2.zip/download).
-
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
-
Thanks for the additional information. Unfortunately I still don't know which theme version you're currently using.
-
sorry for the late reply it seemed to work when I reinstalled the theme. Thanks for all your help.