• Hi,

    Looks like this plugin just doesn’t work for me. I install it, activate then copy the shortcode [mr_rating_result] to have the rating box somewhere on my page.

    This is what I had :

    Fatal error: Uncaught Error: Call to a member function get_default_language() on null in /home2/website/public_html/wp-content/plugins/multi-rating/includes/class-api.php:729 Stack trace: #0 /home2/website/public_html/wp-content/plugins/multi-rating/includes/shortcodes.php(112): Multi_Rating_API::display_rating_result(Array) #1 /home2/website/public_html/wp-includes/shortcodes.php(345): mr_rating_result('', '', 'mr_rating_resul...') #2 [internal function]: do_shortcode_tag(Array) #3 /home2/website/public_html/wp-includes/shortcodes.php(223): preg_replace_callback('/\\[(\\[?)(mr_rat...', 'do_shortcode_ta...', '[mr_rating_resu...') #4 /home2/website/public_html/wp-includes/class-wp-hook.php(298): do_shortcode('[mr_rating_resu...') #5 /home2/website/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters('[mr_rating_resu...', Array) #6 /home2/website/public_html/wp-content/plugins/fusion-core/shortcodes/class-fusion-text.php(24): apply_filters('fusion_text_con...', '<p>[mr_rating_r...') #7 /home2/website/publ in /home2/website/public_html/wp-content/plugins/multi-rating/includes/class-api.php on line 729

    If I check the box “Pages” in the Post Types option i have a white page and my site stop workng.

    So how can I make it works ?

    Thank you,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dpowney

    (@dpowney)

    Hi Florent,

    A fatal PHP error is returned because the global $sitepress variable is unexpectedly null. This global variable is set by the WPML plugin. Do you have WPML enabled? Or the Polylang plugin by any chance?

    Thanks,
    Daniel

    Thread Starter Florent

    (@frappi)

    Hi Daniel, yes I have Polylang installed. How can I set this variable to a non-null value ?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn’t work – Fatal PHP error’ is closed to new replies.