Viewing 10 replies - 1 through 10 (of 10 total)
  • 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.

    [email protected]

    (@bilalahmedozitechnologycom)

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

    Please help

    Julian

    (@sevensupreme)

    Same here!

    Julian

    (@sevensupreme)

    Add this to your .htaccess:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    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…..

    Julian

    (@sevensupreme)

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

    ok i will….

    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)

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

    aperture_2

    (@aperture_2)

    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 ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error: on line 183 in wp-postratings.php’ is closed to new replies.