Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author pgautam

    (@pgautam)

    Hi plocha,

    Sorry for inconvenience faced by you because of this issue, but can you please let us know which version of PHP you are using as initially it seems to be an version issue.

    As soon as you reply to us we will deploy a new version of rating plugin with resolution of this particular issue.

    Best Regards,
    Paritosh Gautam

    Thread Starter edik

    (@plocha)

    I am using the following version: 5.3.10-1ubuntu3.6
    Thanks for the quick reply

    Unfortunately, it is not possible to call a method on an object just created with new before PHP 5.4. This is PHP in a version from 5.4 ongoing:

    EDIT: sn_rating.php

    Replace:
    $post = get_Post((new BP_Activity_Activity(bp_Get_Activity_Id()))->item_id);

    WITH:

    $BP_Activity = new BP_Activity_Activity(bp_Get_Activity_Id());
    $post = $BP_Activity->item_id();

    Replace:
    echo (new Rating())->generateRatingBox($post);

    WITH:

    $BP_Rating = new Rating();
    echo $BP_Rating->generateRatingBox($post);

    HOPE IT HELPS!

    Plugin Author pgautam

    (@pgautam)

    Hi plocha,

    Can you please drop a mail to [email protected] i will provide you an updated file, please let me know if that works for you.

    Thanks & Regards,
    Paritosh Gautam

    Plugin Author pgautam

    (@pgautam)

    Hi ered15,

    Thanks for your reply, we have also figured out the same solution at our end and changed our code for older version of PHP.

    Best Regards,
    Paritosh Gautam

    Thread Starter edik

    (@plocha)

    Okay, it works now. Thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘unexpected T_OBJECT_OPERATOR’ is closed to new replies.