UPDATE:  Quarantine Fails with example code and Super Admin user
Posted: 27 February 2008 02:18 PM   [ Ignore ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

Don’t know if this is due to the Multiple Sites Manager or not?

1. I’m logged in as a Super User = I know I have authority to Quarantine a Rating and I can Quarantine it in the Control Panel
2. I’m passing a known and valid Rating entry _id in segment_5
3. Code on template is copy/pasted from the doc example

{exp:rating:quarantine rating_id="{segment_5}"}
{if success}Quarantine successful
.{/if}
{if failure}Quarantine failed
.{/if}
{message}
{
/exp:rating:quarantine}

4. Quarantine fails with message: “Quarantine failed. This rating cannot be quarantined.”
5. All Member Groups have authority to Quarantine messages.

Could it have anything to do with the Weblog Preferences for the Ratings Module? As mentioned in my other message, when using Ratings with MSM, I can’t see the Section Preferences. But in this case, the rating is actually attached to an entry in the Main Site and I can see that Weblog in the Weblog Preferences and marked it “Yes” for the “Moderate Ratings?” option.

Searched for forums for others having problems with Quarantine and found nothing.

Ideas of where else I can look?

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile
 
 
Posted: 28 February 2008 08:12 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Shane,

I’ll have a look at this to see if it’s behaving correctly on a regular EE install smile

Thank you for your patience smile

 Signature 
Profile
 
 
Posted: 28 February 2008 08:45 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Shane,

I can duplicate this error.

Although, I’m curious to know if you if you’ve tried to use the Quarantine loop in a template yet:

{exp:rating:quarantine_allowed}
{if success}This rating is offensive
. <a href="{path='rating/quarantine'}{rating_id}">Quarantine It</a>{/if}
{if failure}You are not allowed to quarantine reviews
.{/if}
{
/exp:rating:quarantine_allowed}

I ask because that generates a SQL error for me as well.

We’ll get onto fixing this functionality… and I apologize for the inconvenience! smile

 Signature 
Profile
 
 
Posted: 25 March 2008 02:18 PM   [ Ignore ]   [ # 3 ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

I have not used the Quarantine loop as such yet.

I simply provide a link under to “Remove this rating” which links to the template containing the code in my initial post above.

Curious as to what you mean by “regular EE install” in your first reply above? Forgot I had initially mentioned Multiple Site Manager.

Do you have Quarantine working anywhere? If so, how?

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile
 
 
Posted: 25 March 2008 03:00 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18
Shane Robinson - 25 March 2008 02:18 PM

Do you have Quarantine working anywhere? If so, how?

Hehe, nope… I couldn’t get this to work myself. It seems that this bug isn’t directly related to MSM is what I was saying smile

This bug is currently in queue to be fixed. One of our developers is now freed up from a website development project, so these Rating Module bugs should be corrected soon.

Thank you for your patience wink

 Signature 
Profile
 
 
Posted: 31 March 2008 10:22 AM   [ Ignore ]   [ # 5 ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

Excellent. Great to hear that. Thanks for the reply.

We’re hoping to show this new functionality to the client this week and can just tell them that “removing” a Rating and Comment will be available soon.

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile
 
 
Posted: 03 April 2008 03:34 PM   [ Ignore ]   [ # 6 ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

I’ve finally gotten back to working with Ratings and the Quarantine. Here’s what I found:

In the Ratings Control Panel > Sections (or Weblog) Preferences > YourWeblog

I changed “Number of quarantine votes before ratings are quarantined.” to 1

It works!

I changed “Number of quarantine votes before ratings are quarantined.” to 0

FAIL

So the default of ‘0’ will, for some reason, cause the quarantine to fail. Perhaps this is the way it was intended to work? Docs could use a bit more info on this feature.  smile

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile
 
 
Posted: 03 April 2008 09:19 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Shane,

Good catch… although it’s really strange.
I tried mine out again, and the following code on a template and still gives me the two errors:
Notice: Undefined variable: LANG and Fatal error: Call to a member function line() on a non-object

{exp:rating:quarantine_allowed}
{if success}This rating is offensive
. <a href="{path='rating/quarantine'}{rating_id}">Quarantine It</a>{/if}
{if failure}You are not allowed to quarantine reviews
.{/if}
{
/exp:rating:quarantine_allowed}

If I manually go to the Quarantine template with an entry ID in the URL it works though, which didn’t before…

Does the exp:rating:quarantine_allowed loop work for you? smile

And yeah, you’re right about the Quarantine settings… I suppose it’d be nice if the Docs would tell you to update that setting though rasberry
Updated docs wink

 Signature 
Profile
 
 
Posted: 29 August 2008 10:59 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Shane,

This issue has been corrected in the release of Rating 2.2.0, now available for download. smile

 Signature 
Profile