Title: Doesn&#8217;t work &#8211; Fatal PHP error
Last modified: April 26, 2017

---

# Doesn’t work – Fatal PHP error

 *  [Florent](https://wordpress.org/support/users/frappi/)
 * (@frappi)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-fatal-php-error/)
 * 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](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-fatal-php-error/#post-9072093)
 * 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](https://wordpress.org/support/users/frappi/)
 * (@frappi)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-fatal-php-error/#post-9073473)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/multi-rating_d6dfe6.svg)
 * [Multi Rating](https://wordpress.org/plugins/multi-rating/)
 * [Support Threads](https://wordpress.org/support/plugin/multi-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/multi-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multi-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multi-rating/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Florent](https://wordpress.org/support/users/frappi/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-fatal-php-error/#post-9073473)
 * Status: not resolved