Woopra Forums » Troubleshooting

Woopra.php -- Line 21

(11 posts)
  • Started 3 months ago by shane
  • Latest reply from dragolux
  • This topic is resolved
  • This is to centralized the line 21 errors that have been cropping up.

    Posted 3 months ago #
  • Change line 21:

    $woopra_events['Comment'] = get_comment($comment_id)->comment_content;

    to

    $tmp_comment = get_comment($comment_id);
    $woopra_events['Comment'] = $tmp_comment->comment_content;

    I think it might be an error related to PHP4 for those who are having problems.

    Posted 3 months ago #
  • uksalvationist
    Member

    Shane thanks for this!

    However I am now getting an error within the Analytics page on the Dashboard. I get the following:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/my details/public_html/wp/wp-content/plugins/woopra/woopra_xml.php on line 30

    Any ideas what could be the problem?

    Posted 3 months ago #
  • well.. I wrote woopra_xml.php. It's the API class to get the data. That line is the function that initializes the class. try re-uploading that file (I know) but you might have downloaded a version before a fix or something because I been using mine since I wrote it and I had no problem related to that error.

    Otherwise send me an email at wordpress (at) bugssite (dot) org with that file attached so I can look at it.

    Posted 3 months ago #
  • bishu-log
    Member

    im experiencing the same error

    Posted 3 months ago #
  • Alec Peden
    Member

    same line 30 error after updating line 21

    Posted 3 months ago #
  • I have sent Elie the corrections. He will be posting them once he does his changes.

    Posted 3 months ago #
  • Thanks, Shane, and everyone. This is why we adore our Woopra members and beta testers! Elie and Jad are on airplanes flying to Lebanon. When they arrive, this will be the first thing updated.

    Thank you so much for your help and support.

    We can only test Woopra and the Plugins in so many ways. Releasing them to the public puts them under a wider range of testing, which is why your help is so much appreciated.

    Posted 3 months ago #
  • famous
    Member

    I got the same error:
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/user/public_html/user1/wp-content/plugins/woopra/woopra_xml.php on line 30

    Posted 3 months ago #
  • Hooray - it works! Thanks a million!

    Check out my tutorial blog at http://www.tutorialwow.com/!
    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.