0

I'm getting these PHP errors when I visit Channel Ratings in the control panel:

Ratings, Likes, and Fields Tabs:

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: libraries/Ratings_helper.php Line Number: 164

Settings Tab:

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: libraries/Ratings_helper.php Line Number: 164

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: libraries/Ratings_helper.php Line Number: 164

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: libraries/Ratings_helper.php Line Number: 164

  • EE 2.9
  • Channel Ratings 4.0.8

1 Answer 1

1

Can you check if the channel_ratings_router is present in exp_actions?

If not, run these SQL queries to insert them

INSERT INTO exp_actions (method, class) values('channel_ratings_router', 'Channel_ratings');
INSERT INTO exp_actions (method, class) values('insert_rating', 'Channel_ratings');
INSERT INTO exp_actions (method, class) values('insert_like', 'Channel_ratings');
INSERT INTO exp_actions (method, class) values('bayesian', 'Channel_ratings');

enter image description here

5
  • I actually don't see any actions with the Channel_ratings class at all.
    – kmgdev
    Commented Jul 15, 2014 at 23:02
  • Thats the issue. If you just installed Channel Ratings i would try reinstalling. You need those actions in the exp_actions table. Commented Jul 16, 2014 at 3:16
  • I didn't just install Channel Ratings, though. I can't reinstall because I'll lose my data. Is there a script I can use to add those table rows to exp_actions?
    – kmgdev
    Commented Jul 16, 2014 at 16:08
  • I updated my answer with some sql queries Commented Jul 17, 2014 at 15:54
  • Cleared it right up. Thanks! Wonder how those rows got deleted...
    – kmgdev
    Commented Jul 17, 2014 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.