Here's my issue I'm trying to troubleshoot. I'm trying to get an AlphaUserPoints rule that was made for joomlacomment to work correctly. The rule actually works and gives a user 10 points for making a comment but I get a Request Failed pop-up message when hitting send, then the following appears in the message text field:
<?xml version="1.0" standalone="yes"?><post><after>-1</after><published>1</published><noerror>1</noerror><debug></debug><id>59</id><body><![CDATA[
<ul id='post59' style='margin-left:0px;'>
<li class='post'>
<a name='josc59'></a>
<div class='posthead'>
<span class='postinfo'>
<span class='postnotify0' title='do not notify if new post'></span>
|<span class='postusertype'><span class='administrator'>SAdministrator</span></span>
|<span class='postdate'>2009-08-29 18:03:54</span>
</span>
<span class='username'>
<a href='/component/comprofiler/userprofile/J06Powercat'>J06Powercat</a>
</span>
</div>
<div class='postcontent'>
<div class='comment_avatar'><a href='/component/comprofiler/userprofile/J06Powercat'><img class='avatar' src='http://www.gravatar.com/avatar.php?gravatar_id=4b578fb71a920211ac54746991b8799d&default=http%3A%2F%2Fwww.cfbpredictions.com%2Fcomponents%2Fcom_comment%2Fassets%2Fimages%2Fnophoto.jpg&size=60' alt='avatar' /></a></div><div class='comment_content'>ttt</div>
</div>
<div class='postfooter'>
<ul class='voting'><li><a id='yes59' class='voting_yes' href='javascript:JOSC_voting(59,"yes")'>0</a></li><li><a id='no59' class='voting_no' href='javascript:JOSC_voting(59,"no")'>0</a></li></ul>
<span>
<a href='javascript:JOSC_reply(59)'>Reply</a><a href = 'javascript:JOSC_quote(59)'>Quote</a><a href='javascript:JOSC_editComment(59)'>Edit</a><a href='javascript:JOSC_deleteComment(59)'>Delete</a>
</span>
</div>
<div class="josc_clear"></div>
</li>
</ul>
]]></body></post>
The message posts and the points add, the problem is the request failed message and the block of code that shows up in the message box. The weird thing is, everything worked flawlessly on 4.0 beta1 but then I upgraded to 4.0 beta2 and had this problem. So I reinstalled 4.0 beta1 but this time the request failed message came up on that version too. Now I can't figure out why it keeps coming up.
Here is what the AlphaUserPoints rule requires you to add to comment.class.php:
Open
components/com_comment/comment.class.php
on line 1032, just afer
$this->_comment_id = $database->insertid();
add this:
///////////// AUP mod for comment reward
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'plgaup_postcomment_joomlacomment','','',$title.': '.$comment );
}
/////////////////// End AUP mod
I've been trying to troubleshoot the request failed message for a couple weeks now and I'm at a loss for why it worked before but now it doesn't. please help..thanks!