WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Error: on line 183 in wp-postratings.php (11 posts)

  1. LuboUzunov
    Member
    Posted 1 year ago #

    Hi,
    The plugin is working, but when I vote, it's shows me that:
    Warning: Creating default object from empty value in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-postratings\wp-postratings.php on line 183

    I'm trying to put this plugin on this theme: Graphene

    In my old theme, I had no problems with that. What can I do?

    WordPress ver: 2.4.1

    http://wordpress.org/extend/plugins/wp-postratings/

  2. scotttswan
    Member
    Posted 1 year ago #

    I also got this error its due to PHP 5.4.

    It might be worth moving back to PHP 5.3 until the plugins have been updated.

  3. bilal.ahmed@ozitechnology.com
    Member
    Posted 1 year ago #

    I have got the same warning after clicking over rating stars
    Warning: Creating default object from empty value in.................

    Please help

  4. Julian
    Member
    Posted 1 year ago #

    Same here!

  5. Julian
    Member
    Posted 1 year ago #

    Add this to your .htaccess:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
  6. dhananjaysingh
    Member
    Posted 1 year ago #

    Warning: Creating default object from empty value in E:\xampp\htdocs\laughingdunky\wp-content\plugins\wp-postratings\wp-postratings.php on line 183

    can you help to resolve this error

    i have added above code in htaccess its still showing same error.....

  7. Julian
    Member
    Posted 1 year ago #

    Test it on your "real" website. I see you testing it with xampp, so maybe it depends on it.

  8. dhananjaysingh
    Member
    Posted 1 year ago #

    ok i will....

  9. lulupont
    Member
    Posted 1 year ago #

    i am having the same problem, how did you resolve it?

    i managed to eliminate the warning from apearing, but the probem continues.
    in the homepage, after a voted post the theme breaks and doesnt show any more post.

    i did what Julian sugested but what that did is that any time i whent to home page it downloads a file (?????)

    my site is under construction now, so i cant show you..please help!! i just cant loose the 2 years record ratings :(

    (pardon my inglish, is not my natural language)

  10. dhananjaysingh
    Member
    Posted 1 year ago #

    i have just moved website from my localhost to live server and its working fine now :)

  11. aperture_2
    Member
    Posted 1 year ago #

    wp-postratings.php

    From line 178

    ### Function: Display Ratings Results
    function the_ratings_results($post_id, $new_user = 0, $new_score = 0, $new_average = 0, $type = 0) {
    	if($new_user == 0 && $new_score == 0 && $new_average == 0) {
    		$post_ratings_data = null;
    	} else {
    		$post_ratings_data = new stdClass();
    		$post_ratings_data->ratings_users = $new_user;
    		$post_ratings_data->ratings_score = $new_score;
    		$post_ratings_data->ratings_average = $new_average;
    	}
    	// Display The Contents

    Easy ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic