PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 21st, 2011, 07:00 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
"Search Reviews" returns all products, not just reviews

Hi Chuck,

Comparing again with 3.3, so let me know if this change was intentional:

Selecting "search reviews" returns (all?) products, not reviews. For example, enter "Best EF lens" for keywords, select "All Categories" and select "search reviews". You'll get a long list of products, many without reviews. It returns specific reviews in RP 3.3, so this seems to be broken.

Thanks!
Zigw is offline   Reply With Quote
Old December 21st, 2011, 07:47 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
That is definately not the behavior I see

quick test to show

Search - Reeftalk Reviews

leave it on search all fields and enter blue you get loads of results.

then go back and hit search reviews and enter blue. You get NO RESULTS which is correct.

I have looked at the code and your free to as well this is right in search.php

Code:
Content visible to verified customers only.
If your searching reviews that is the only table searched the products table is not searched.

If you leave the keyword blank and hit search reviews then it returns all reviews up to the search limit which is set in admin normally set to 500 results.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; December 21st, 2011 at 08:03 PM.
Chuck S is online now   Reply With Quote
Old December 22nd, 2011, 02:49 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Thanks Chuck.

I see the functionality on your site and I verified the code is correct in search.php, but for some reason on our site, a search within "reviews" is returning products without reviews. You can see for yourself at:

http://ir7.theimagingresource.com/reviews/search.php

- Set to search "Best EF Lens".
- Set to "All Reviews".

And the first result returned is a product without a review.
Zigw is offline   Reply With Quote
Old December 22nd, 2011, 03:12 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
I would ensure all your files are uploaded correctly as you can see if your looking at search.php if $what is equal to comments the only table searched is reviews table.

I would make sure you have no modified files or templates. I can not verify what your site is doing I do a search as you suggest and the server times out trying to display results.

The example I posted is obviously a clean 5.21 site with no mods at all.

If you want to debug what is going on at your site then simply do this. Edit the search.php script and at the bottom put the code in bold that will stop the search script after it finds the results and will print the query for you to view.

Code:
Content visible to verified customers only.
You will then know how it is getting its results.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2011, 07:01 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
After our the first thread when I mentioned diffing and you asked me why, I made sure to upload all the files from the distribution. We also don't have any of our regular mods on the site. This is a clean site.

I added the code you provided at the bottom of our search.php file, but it does nothing.

I am noticing that it seems to be exhibiting the behavior you would expect if the search field was left blank (returning all items in the db - in our case the test set is only 174).

I'm not sure why the server was timing out for you, but you can try again and see the behavior and results as described.
Zigw is offline   Reply With Quote
Old December 22nd, 2011, 07:35 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
If you add the code I noted it should stop the script and print the query. that is what exit does. Everything I tell you I tried on my site before I posted I verified what is ran which is why I linked my site which is a clean install. Like I said if you hit all review the what variable is comments which means the only table searched is reviews. The products table is not searched which is why I asked about mods since I know you modify things normally. If I search on my site and hit all reviews and leave keywords blank it returns 21 results which is the number of reviews so again it is working correctly. Like I said hitting all reviews only means the reviews table is searched.

Here is what I get searching your site
Attached Images
File Type: jpg zig.jpg (40.8 KB, 3 views)
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2011, 09:10 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
You're right, we normally do mod the site, but since you've told us time and time again you wouldn't work with us unless we had an un-modded site, we created one just so we could check the issues Zig was coming across.

I had already uploaded all the files from your distribution, but just to be sure nothing lingers, I'll recreate the mirror site from scratch tomorrow and import some of our data. Then for any future questions you can consider the site a clean install...

I'll be back.
Zigw is offline   Reply With Quote
Old December 22nd, 2011, 09:27 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
well like I said I can not even verify you have an issue as the site keeps timing out for me as noted in my attachment.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 23rd, 2011, 05:11 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Of course, that goes without saying.

Ok, the site is now a completely fresh install with the exception of our stylesheet and our data in the db. Would you humor me and attempt the URL again?

Thanks.
Zigw is offline   Reply With Quote
Old December 23rd, 2011, 06:40 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
The connection has timed out. The server at ir7.theimagingresource.com is taking too long to respond.

That is all I get from your site

Make sure line 41 of your search template reads like this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 23rd, 2011, 08:26 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
I'll ask William why he may think your connection is timing out.

In the meantime, I checked search.tmpl and found the line different. The distribution file has a different line:

Code:
Content visible to verified customers only.
Once I changed "reviews" to "comments", it looks like it fixed the issue. I'll verify with Zig and get back to you...
Zigw is offline   Reply With Quote
Old December 23rd, 2011, 09:16 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
Yeah your server timesout all the time anytime I try doing anything.

Yeah I saw the default template set line was different which is why I posted what I did.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 23rd, 2011, 02:29 PM   #13 (permalink)
Registered User
 
Join Date: Sep 2005
Posts: 18
William thinks he found your ip and whitelisted it. I didn't post your IP here because I wasn't sure if that would be okay with you. Please check that URL again and let me know if it is not letting you in If it is not please p.m. me your IP so we can whitelist it. Thanks.
ywickham is offline   Reply With Quote
Old December 23rd, 2011, 06:13 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
Nope it works now
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 27th, 2011, 04:09 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Great!

I verified with Zig and this fixes this issue.

Thanks!
Zigw is offline   Reply With Quote
Old December 27th, 2011, 04:21 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
Enjoy the holidays.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 27th, 2011, 05:25 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
No rest for the weary, Chuck. lol

Happy Holidays to you too.
Zigw is offline   Reply With Quote
Old December 27th, 2011, 06:31 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
Yep we generally work 365 days a year.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"recent reviews" center block busterw ReviewPost How do I...? 1 September 11th, 2008 06:42 PM
RP 3.3: How to change title of comments pal "Recent Reviews" snoopy5 ReviewPost How do I...? 1 April 14th, 2007 08:37 AM
Suggestion: "My reviews" in member profiles orangeflea ReviewPost Suggestions 0 September 16th, 2006 10:14 PM
Extra "}" character at the end of all reviews. MitchSchaft ReviewPost How do I...? 9 July 25th, 2006 06:00 PM


All times are GMT -5. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0